tgotwig / vidmerger

📼 Merge video & audio files via CLI
https://tgotwig.github.io/vidmerger
113 stars 10 forks source link

Fails on videos where filename contains a space character #44

Open timkrins opened 4 months ago

timkrins commented 4 months ago

OS: Mac Ventura 13.1 Installation method: homebrew.

vidmerger .

----------------------------------------------------------------
📜 Order of merging:

- 01 Video.mp4
- 02 Video.mp4

⏳ Waiting 3 seconds to read
----------------------------------------------------------------
🔎 FPS mismatches detected

Will be merged directly:

- 02 Video.mp4 (29.91 fps)

Will be merged indirectly, generating new files from listed below with 29.91 fps and merges with listed above:

- 01 Video.mp4 (29.94 fps)
----------------------------------------------------------------
🚀 Start FPS Changer, calling:

- ffmpeg -i ./01 Video.mp4 -r 29.91 /var/folders/fr/8w940jhd6p1fr4980hmjwr0h0000gn/T/sN2feV2Z/01 Video.mp4
ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.1.0.2.5)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.1.1_3 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopenvino --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
[in#0 @ 0x60000105c000] Error opening input: No such file or directory
Error opening input file ./01.
Error opening input files: No such file or directory
Ok(Output { status: ExitStatus(unix_wait_status(65024)), stdout: "", stderr: "" })
thread 'main' panicked at src/helpers/io_helper.rs:52:18:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Renaming the files to exclude spaces: find . -name "* *" -type f | rename 's/ /_/g'

----------------------------------------------------------------
📜 Order of merging:

- 01_Video.mp4
- 02_Video.mp4

(snip)

✅ Video with chapters created successfully.