ffmpeg可以将Mp4元信息放在文件的开头吗? [英] Can ffmpeg place Mp4 metainfo at the beginning of the file?

查看:280
本文介绍了ffmpeg可以将Mp4元信息放在文件的开头吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我了解,默认情况下,ffmpeg在生成mp4时将所有元信息放在文件末尾. 来源: http: //www.stoimen.com/blog/2010/11/12/how-to-make-mp4-progressive-with-qt-faststart/

As I understand, ffmpeg by default places all meta info at the end of the file when generating mp4s. Source: http://www.stoimen.com/blog/2010/11/12/how-to-make-mp4-progressive-with-qt-faststart/

我需要做的是创建视频,一次创建一帧,然后流式传输.如果标题信息位于文件的结尾",则这是不可能的.但是有可能将其移到开始或以其他方式解决此问题吗?我绝对希望不必切换到另一个库来代替它..我们已经对该项目进行了超额预算.

What I need to do is create the video, one frame at a time and then stream it. This is impossible if the header info is at the 'end' of the file. But is it possible to move this to the beginning or otherwise work around this? I would definitely prefer to not have to switch to another library and use it instead.. we're already over-budget on this project.

必须在代码中完成,因为我一次要转换一帧,然后希望立即将其流式传输,而不是像这样的命令.

Has to be done within code as I am converting one frame at a time and would like to then instantly stream it instead of command like.

推荐答案

ffmpeg 在命令行上支持-movflags faststart.参见 http://salman-w.blogspot.co .il/2013/08/fast-start-enabled-videos-with-ffmpeg.html 了解更多信息.

ffmpeg supports -movflags faststart on command line. See http://salman-w.blogspot.co.il/2013/08/fast-start-enabled-videos-with-ffmpeg.html for more info.

这篇关于ffmpeg可以将Mp4元信息放在文件的开头吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆