How to choose the segment sequence start number?

后端 未结 2 1609
慢半拍i
慢半拍i 2021-01-27 12:08

I\'m using FFmpeg to split a file into chunks using the segment muxer.

The output is named output%03d.mp4, but the first output file is output000.mp4

2条回答
  •  借酒劲吻你
    2021-01-27 12:30

    Use the -start_number option to declare a starting number for the sequence. This is useful if your sequence does not start with img001.jpg but is still in a numerical order. The following example will start with img100.jpg:

    ffmpeg -f image2 -start_number 100 -i img%d.jpg /tmp/a.mpg
    

    For more see at 3.2 How do I encode single pictures into movies?

提交回复
热议问题