Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on videos where filename contains a space character #44

Open
timkrins opened this issue Feb 22, 2024 · 1 comment
Open

Fails on videos where filename contains a space character #44

timkrins opened this issue Feb 22, 2024 · 1 comment

Comments

@timkrins
Copy link

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.
@golimarrrr
Copy link

Nice catch. Characters "(" and ")" should be removed too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants