如何在 ios 设备上将 mov 转换为 mp4 [英] How can I convert mov to mp4 on ios device

查看:75
本文介绍了如何在 ios 设备上将 mov 转换为 mp4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写应将 mov 文件转换为 mp4 的 ios 应用程序.有没有办法使用 AVFoundation 或类似的东西?

I am writing ios app that should convert mov file to mp4. Is there any ways to that using AVFoundation or something similar?

非常感谢您的帮助!

谢谢!

推荐答案

你需要做 AV 媒体转码,还是只是更换容器?标准(非流媒体)MOV 容器将/应该与 MP4 容器兼容(检查来自 iOS 的一些测试文件显示它们是相同的).因此,您可以将文件重命名为 MP4.这确实假设容器中的媒体受 MP4 容器支持.仅供参考,MP4 的 ISO 规范基于 Quicktime 文件格式.此外,如果您在设备上录制媒体,则可以选择 MP4 作为媒体的容器.

Do you need to do AV media transcoding, or just change the container? A standard (not streaming) MOV container will/should be compatible with a MP4 container (inspection of a few test files from iOS show they are identical). So it is possible that you could just rename the file to MP4. This does assume the media in the container is supported by the MP4 container. FYI, The ISO spec for MP4 is based on the Quicktime file format. Also, if you are recording the media on the device then you can select MP4 as the container for the media.

这篇关于如何在 ios 设备上将 mov 转换为 mp4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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