如何使用FFmpeg的男人或codeR或者不服大小分割FLV文件? [英] How to split flv file by size using FFmpeg or mencoder or smth else?
问题描述
我需要的FLV文件分割成Linux服务器上的已知大小的块。比如我原来的文件为9MB和块的大小为4MB。所以我应该有三部分 - 4MB,4Mb的1兆
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 1 Mb.
似乎FFmpeg的可以按时间分割仅
Seems that FFmpeg can split only by time.
男士codeR可以按时间(-ss TIME)和完成由大小(-endpos SIZE MB)开始。但是,如果第一个块开始第二显然是0,那么如何才能得到第二次开始下个块?
Mencoder can start by time (-ss TIME) and finish by size ( -endpos SIZE MB). But if start second of the first chunk is obviously 0, then how can I get start second for next chunks?
你有什么建议吗?
先谢谢了。
推荐答案
计算每〜块放的时间(秒);使用-ss点¯x-t X + avg_block_time用于分割视频
calculate ~time (sec) of every block & use -ss X -t X+avg_block_time for split video
这篇关于如何使用FFmpeg的男人或codeR或者不服大小分割FLV文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!