3gpp and mp4 on android

人走茶凉 提交于 2019-12-12 04:55:17

问题


I uploaded some video file from Android phone which was shoot by the built in video recorder app. The video file format is shown as mp4 when it is played.

When I uploaded to amazon s3, the result is a file of extention 3gpp.

Why is that? What should I do to convert the file in s3 from 3gpp to mp4 format?


回答1:


Firstly, the actual video file itself should not have changed unless you have used some conversion services also, or converted as part of your upload procedure - to test this you can take one of your video files from S3 and change the extension from .3gpp to .mp4 and check it plays properly.

You don't include your upload code, but to make sure that S3 knows the correct file type make sure you set the 'content-type' field in the HTTP multipart MIME post you send to S3. For mp4 files this should be:

  • content_type=video/mp4


来源:https://stackoverflow.com/questions/29158553/3gpp-and-mp4-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!