Android上的3gpp和mp4 [英] 3gpp and mp4 on android

查看:259
本文介绍了Android上的3gpp和mp4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Android手机上传了一些视频文件,这些文件是由内置的录像机应用程序拍摄的.播放时,视频文件格式显示为mp4.

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.

当我上传到Amazon s3时,结果是扩展名为3gpp的文件.

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

那是为什么?如何将s3中的文件从3gpp转换为mp4格式?

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

推荐答案

首先,除非您也使用了某些转换服务,或者将其转换为上传过程的一部分,否则实际的视频文件本身就不会发生变化-要对此进行测试可以从S3提取一个视频文件,并将扩展名从.3gpp更改为.mp4并检查其是否可以正常播放.

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.

您不包括上传代码,但是要确保S3知道正确的文件类型,请确保在发送给S3的HTTP多部分MIME帖子中设置内容类型"字段. 对于mp4文件,应为:

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

这篇关于Android上的3gpp和mp4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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