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

Single quotes for start/end time strings causing "Invalid duration specification" error #7

Open
IA21 opened this issue Jul 25, 2022 · 5 comments

Comments

@IA21
Copy link

IA21 commented Jul 25, 2022

The command ffmpeg -i in.mp3 -ss '00:13:10' -to '00:17:09' out.mp3 gives Invalid duration specification for ss: '00:13:10' error. Removing the quotes works. Its possible my ffmpeg version is old and maybe quotes are supported in later versions. In this case, maybe adding another checkbox for quotes around timestamps be helpful?

ffmpeg -version output:

ffmpeg version N-82966-g6993bb4 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil      55. 43.100 / 55. 43.100
libavcodec     57. 70.100 / 57. 70.100
libavformat    57. 61.100 / 57. 61.100
libavdevice    57.  2.100 / 57.  2.100
libavfilter     6. 68.100 /  6. 68.100
libswscale      4.  3.101 /  4.  3.101
libswresample   2.  4.100 /  2.  4.100
libpostproc    54.  2.100 / 54.  2.100
@EvanHahn
Copy link
Owner

Hmm, that's strange. It almost seems like something strange is happening with your shell, not this command specifically. But that might be wrong!

What shell are you using, and on what operating system? Do you see quote issues with other commands?

@IA21
Copy link
Author

IA21 commented Jul 25, 2022 via email

@EvanHahn
Copy link
Owner

Ah, okay.

I think it should switch to double quotes if we detect that you're on Windows. If you're willing to make a pull request, I'm happy to review it!

@IA21
Copy link
Author

IA21 commented Jul 28, 2022

I will try if I can find the time. But I have not made a proper pull request before so please bear with me if/when I submit something silly 😅

@EvanHahn
Copy link
Owner

All good!

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

No branches or pull requests

2 participants