[英]How do I create an mp4 file from a collection of H.264 frames and audio frames?
I have a program that captures and stores H.264 encoded video as well as audio into a proprietary format file.我有一个程序可以将 H.264 编码的视频和音频捕获并存储到专有格式文件中。 I need to be able to export that video and audio to an mp4 file.
我需要能够将该视频和音频导出为 mp4 文件。 I prefer C# but will use C++ if necessary.
我更喜欢 C#,但会在必要时使用 C++。 Any suggestions?
有什么建议?
To produce MPEG-4 Part 14 .MP4
file you need a multiplexer.要生成 MPEG-4 Part 14
.MP4
文件,您需要一个多路复用器。 There is a choice of multiplexers out there:有多种多路复用器可供选择:
API and complexity might vary because some of multiplexers are expected to be a part of pipeline, they are not completely standalone classes. API 和复杂性可能会有所不同,因为一些多路复用器预计会成为管道的一部分,它们不是完全独立的类。 You might want to check respective samples (and license agreements, perhaps, too) to see what is best for you.
您可能需要检查相应的示例(也许还有许可协议)以了解什么最适合您。
Take a look at libmp4v2.看看 libmp4v2。 Fairly straightforward to use..
使用起来相当简单..
http://code.google.com/p/mp4v2/ http://code.google.com/p/mp4v2/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.