如何编写程序来从.3gp 文件中分离音频和视频轨道?
我想编写一个程序,从 .3gp 文件中分离音频和视频轨道。
(视频轨道的格式是h.263,音频是AMR。数据是从Android生成的。)
从网上查了很多信息,但我仍然不知道如何做。
首先,我发现h.263和AMR的标头分别是 0000 0000 0000 0000 1000 00 和 0x23, 0x21, 0x41, 0x4D, 0x52, 0x0A 。
但是,我无法从 .3gp 文件中找到标头。
有人可以帮助我吗?
I want to write a program that dispart the audio and video track from .3gp file.
(The format of video track is h.263 and audio is AMR. The data is generated from Android.)
A lot of information had been surveyed from internet but I still can not figure how to do it.
At first, I found out that the header of h.263 and AMR are 0000 0000 0000 0000 1000 00 and 0x23, 0x21, 0x41, 0x4D, 0x52, 0x0A , respectively.
Howevey, I can not find the header from .3gp file.
Does someone can help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 FFmpeg 解复用 .3gp 文件。不要尝试自己从头开始执行此操作...将媒体文件解析到解复用音频和视频所需的程度是一项艰巨的任务。字面意思是几个月。
有不同的方法可以做到这一点,但正如 leppie 所说,Doom9 是权威来源。一探究竟。 Google : ffmpeg demux 3gp 站点:doom9.org
Use FFmpeg to demux the .3gp file. Don't try to do this yourself from scratch...it's a huge task to parse a media file to the degree required to demux the audio and video. Literally months.
There are different ways to do this, but as leppie says, Doom9 is the authoritative source. Check it out. Google: ffmpeg demux 3gp site:doom9.org