How to split flv file by size using FFmpeg or mencoder or smth else?

后端 未结 2 610
灰色年华
灰色年华 2021-01-23 07:43

I need to split an flv file into chunks of the known size on linux server. For example my original file is 9Mb and the chunk size is 4Mb. So I should get 3 parts - 4Mb, 4Mb and

相关标签:
2条回答
  • 2021-01-23 08:02

    There is a commandline utility which does just that: http://mpgtx.sourceforge.net/

    mpgtx -3 movie.mpg -b mysplit
    

    will split the movie into 3 chunks with the names mysplit-1.mpg, mysplit-2.mpg, mysplit-3.mpg

    That said, I seem to have trouble with the audio when I use this - but I don't know if you'd have that problem too.

    0 讨论(0)
  • 2021-01-23 08:07

    calculate ~time (sec) of every block & use -ss X -t X+avg_block_time for split video

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