문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top