How to choose the segment sequence start number?

后端 未结 2 1608
慢半拍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?

    0 讨论(0)
  • 2021-01-27 12:40

    Use the -segment_start_number 1 output option.

    See the segment muxer documentation for more information and options.

    0 讨论(0)
提交回复
热议问题