我有22,1 GB的电影数据,我想放在几张DVD上

时间:2017-03-07 14:48:23

标签: ffmpeg

我有22,1 GB的电影数据,我想放在几张DVD上。

我希望ffmpeg从许多小文件创建一个长22.1 GB的mp4文件,然后根据需要将它们分成多个4.7 GB的mp4文件(应该适用于5张DVD),因此保留了顺序。

我需要哪个命令?

我从ffmpeg -f concat -safe 0 -i mylist.txt -c copy -fs 5046586573 output1.mp4开始,mylist.txt包含

# this is a comment
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'

然后查看持续时间,然后继续ffmpeg -ss duration -f concat -safe 0 -i mylist.txt -c copy -fs 5046586573 output2.mp4

哪一个命令一次完成?

1 个答案:

答案 0 :(得分:0)

如果您还想使用mp4box加入文件,请使用

mp4box -cat 1.mp4 -cat 2.mp4 -cat 3.mp4 -splits 4928307 newprefix.mp4

这会让你

newprefix_001.mp4
newprefix_002.mp4
...

mp4box只能在关键帧处拆分,因此如果GOP没有以拆分大小结束(非常可能),则段可能会超过拆分大小。因此,安全的做法是指定一个GOP小于预期限制的大小。因此,将视频流比特率乘以10.除以8192转换为千字节,然后从实际的段大小限制中减去。