7
2
I run the following from command line:
handbrakeCLI.exe -i SourceFile.mkv -o OutputFile.mkv --stop-at 120
According to the CLIGuide you can supply the --stop-at value as seconds (which is what I want, stop encoding 120 seconds into the file).
My purpose for this is to quickly create a very high quality video clip from a full movie for testing other encoding processes.
However, when I view my output file, it is the entire movie. Any ideas?
1Have you actually tried that? That command looks like what you want, but in my experiments it processed the ENTIRE video asset, when all I wanted was the first two minutes. Fail. – karlgrz – 2011-02-17T18:02:32.180
Yes I've used the command successfully. It's important to specify the duration keyword and a colon prior to the duration, otherwise it won't work. – Stefan Schmidt – 2011-02-23T06:37:16.897
GREAT point! Thanks for the follow up! I'm still going with FFmpeg, as I'm more comfortable with it and use it a lot. – karlgrz – 2011-03-02T15:17:37.910
1This used to work for me, but now I was encoding a file where the
--stop-atparameter was ignored (i.e. no matter what I set it to,HandBrakeCLIwould always encode the entire remaining file), while the--start-atparameter was respected. Any clues? – kynan – 2011-09-17T08:21:55.197Note that
--stop-at duration:120means encode 120 seconds and will not stop at 120 sec into the video when combined with--start-atand a duration > 0. This is a little counter-intuitive and is what confused me there. – kynan – 2011-09-17T08:30:00.597Confusing that you're supposed to put "duration" where it says "unit"! How is "duration" a unit? I wrote "s" and it didn't work. – Janus Troelsen – 2013-02-01T19:11:31.793