EvanHahn / ffmpeg-buddy

a lil webpage that helps you write ffmpeg commands
https://evanhahn.github.io/ffmpeg-buddy/
Other
148 stars 11 forks source link

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

Open IA21 opened 2 years ago

IA21 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

What shell are you using, and on what operating system

cmd on windows 10.

Do you see quote issues with other commands

other ffmpeg commands?

On Mon, Jul 25, 2022, 5:13 PM Evan Hahn @.***> wrote:

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?

— Reply to this email directly, view it on GitHub https://github.com/EvanHahn/ffmpeg-buddy/issues/7#issuecomment-1193971598, or unsubscribe https://github.com/notifications/unsubscribe-auth/AELGKQFTHDROIYXNCD3NAODVV2AIBANCNFSM54RX765A . You are receiving this because you authored the thread.Message ID: @.***>

EvanHahn commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

All good!