[FFmpeg-user] Controlling Numbering of Extracted Still Frames?
christophgerstbauer at gmail.com
Sun Jun 15 08:44:03 CEST 2014
Am 14.06.14 12:05, schrieb Moritz Barsnick:
> Hi Sam,
> On Fri, Jun 13, 2014 at 20:24:04 -0400, Sam Logan wrote:
>> When you convert a video to still frames via:
>> ffmpeg -i "Foobar.mp4" "Frame%05d.png"
>> How can I get FFmpeg to instead number the outputted files starting at
>> some other value besides 1, such as 0?
> What you are creating implies the "image2" muxer. Check its documentation:
> So this should do the right thing for you:
> ffmpeg -i "Foobar.mp4" -f image2 -start_number 0 "Frame%05d.png"
> And in this case, you can continue to omit the implicit muxer:
> ffmpeg -i "Foobar.mp4" -start_number 0 "Frame%05d.p
> P.S.: Despite being a programmer, it often riddles me why anyone would
> like to start counting with 0. ;-)
Hi Moritz, I think because the timecode of the first frame of film and
video content is also starting with frame "00" (e.g. 10:00:00:00)
More information about the ffmpeg-user