I'm using'-to' option for trimming a video and ffmpeg says 'to' option not recongnized if ffmpeg.exe is run from a folder other than where ffmpeg.exe is located through cmd.exe. The location of ffmpeg.exe is in windows system path.
1 Answer
This could happen if an old version of ffmpeg
was used with latest supported options. In my case I had 2 different versions of ffmpeg
in Windows system path. Below are the 2 version I had on my machine:
- New version
N-75185-gf58e011 Copyright (c) 2000-2015 built with gcc 4.9.3 (GCC)
which supports-to
option. - Old version
N-34549-g13b7781 Copyright (c) 2000-2011 Nov 6 2011 with gcc 4.6.1
which doesn't support-to
.
Using Windows task manager I was able to figure out that an old version of ffmpeg
was being used when the video trim failed with -to
option. Removing the old version from system path solved my issue.
ffmpeg.exe
is being reported when you are running it from another directory?