如何在 ios 设备上将 mov 转换为 mp4

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12548304/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:20:14  来源:igfitidea点击:

How can I convert mov to mp4 on ios device

iphoneiosvideoios4avfoundation

提问by Artem Kiselev

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

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

I will really appreciate your help!

我将非常感谢您的帮助!

Thanks!

谢谢!

回答by Steve McFarlin

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.

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