本文介绍了如何在MJPEG流为3GP或MP4格式的视频文件保存到Android上的SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已保存了MJPEG流的SD卡作为xxx.mjpeg。然而,在Android中不支持MJPEG视频文件。所以我怎么能连接code MJPEG视频转换成3GP或MP4格式,然后将它们存储在SD卡,最后,我可以在我的Andr​​oid手机播放的3GP或MP4视频,先谢谢了。

i have saved the mjpeg stream to the sdcard as xxx.mjpeg .However, the mjpeg video file was not supported in android. so how could i encode mjpeg video into 3gp or mp4 format and then store them on sdcard ,at last ,i can play back the 3gp or mp4 video on my android phone ,thanks in advance.

推荐答案

我不知道主板的ffmpeg的源状态在那里的。我已经建造它长回来。

I am not aware of state of mobo's ffmpeg source out there. I had built it long back.

我试过RockPlayer的的ffmpeg的端口。这有无忧无虑的构建。我能到今天成功地在NDK_r4b构建它。

I tried the rockplayer's ffmpeg port. This has hassle free build.I was able to build it today successfully on NDK_r4b.

您可以从这里下载源代码/ A>

You can download the source from here : http://www.rockplayer.com/tech_en.html

修改config.mk改变你的刀具路径和运行build_andriod.sh(拼写是错误的,但它的工作原理:))

modify the config.mk to change your tool paths and run build_andriod.sh (spelling is wrong, but it works :) )

让我知道如何去

这篇关于如何在MJPEG流为3GP或MP4格式的视频文件保存到Android上的SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 10:20