开发者

How to convert 3GP video for Android to view?

I'm creating 3GP videos with the Android - however, when the 3GP files are posted on a site, the same Android phone cannot view it back. (The file works on the iPhone).

开发者_开发技巧What is right way to encode/resize the 3GP video so that the video player on Android can play it back?

Thanks


Solved this by converting it to MP4 and then recompiling the Nginx server to have the MP4 streaming module. By default, Nginx mimetype was set to [application/octet-stream] instead of [video/mp4].


This seemingly was resolved on Froyo handsets - at least, when a 3gp file is opened in a browser window using http, and not rtsp, the video plays fine. On 2.1 it doesn't.


To make mp4 video streamable, you should change it's 'atom' byte order. I'm using qt-faststart tool from ffmpeg package for this.

This tool changes the order of some meta-data inside mp4 container and as result allows to perform video "streaming" over HTTP.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜