18

I am using ffmpeg to convert from video to an image sequence as follows:

ffmpeg -i video.webm image-%03d.png

The first image is labelled 001, but I want it to be labelled 098. Is it possible to set that value in the ffmpeg invocation?

1 Answer 1

31

The image sequence muxer has a start number option, so

ffmpeg -i video.webm -start_number 98 image-%03d.png
5
  • Does this still work? The arg is being ignored for me
    – jameslol
    Jun 17, 2020 at 6:52
  • Share full log.
    – Gyan
    Jun 17, 2020 at 7:46
  • 3
    I had to put the -start_number flag before the -i flag for it to get parsed. Jan 28, 2021 at 16:30
  • Moving it before -i results in an error: Option start_number not found. after -i it just gets ignored. Mar 9, 2022 at 3:07
  • @shockburner Simply reordering the arguments actually made it work on ffmpeg 4.4.2 built with Apple clang-1300.0.29.30, kudos! Dec 9, 2022 at 6:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.