FLV到MP4转换 [英] Flv to mp4 conversion

查看:227
本文介绍了FLV到MP4转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Android的播放FLV文件。因此,我认为是FLV文件转换成MP4或3GP(对此有Android中脱codeR)。的OpenCore可用于转化。我已经调查的OpenCore code,有在的OpenCore一类/安卓/外部/的OpenCore / fileformats / MP4 /作曲家创建mp4文件。它有像

I want to play the flv files in Android. So what I thought is to convert the flv file to mp4 or 3gp(for which there is a decoder in Android). OpenCore can be used to convert. I have looked into opencore code, there is a class in opencore "/android/external/opencore/fileformats/mp4/composer" to create the mp4 file. It has apis like

AddTrack 
AddSampleToTrack

我应该给输入作为框架,但在我FLV的将得到索伦森视频和MP3音频帧(做一些琐碎的字符串操作,除去头后)。我可以用这些直接输入到上面的API或有转换FLV到MP4什么好的办法?同时,我也看着/安卓/外部/的OpenCore /节点/ pvmp4ffcomposernode,但它不能读取端口知道如何输入发送到这个类。

I should give the input as frames, but in Flv I will get the Sorenson Video and Mp3 audio frame(after doing some trivial string operations to remove the headers). Can I use these directly as input to above apis or is there any good way to convert flv to mp4? And also I have looked into "/android/external/opencore/nodes/pvmp4ffcomposernode" but it reads from ports not able to know how to send input to this class.

让我知道你的想法。

推荐答案

我一直在使用的ffmpeg解决。
我已经移植的ffmpeg和libfaac到Android。它的伟大工程。

I have solved using ffmpeg. I have ported ffmpeg and libfaac to Android. It works great.

这篇关于FLV到MP4转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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