简体   繁体   English

AVAssetExportSession在iPad上有效,在iPhone上无音频

[英]AVAssetExportSession works on iPad, no audio on iPhone

I have the exact same code running on both the iPad and iPhone versions of my app and the code works fine on the iPad (the video is being exported properly with audio), but the exported video on the iPhone doesn't have any sound. 我在我的应用程序的iPad和iPhone版本上运行的代码完全相同,并且代码在iPad上运行正常(视频已正确导出为音频),但在iPhone上导出的视频没有声音。 I even ran the iPhone version on the iPad and it worked fine, which means that nothing should be wrong with the code itself. 我什至在iPad上运行了iPhone版本,并且运行良好,这意味着代码本身没有错。

Any insight on why the iPhone isn't exporting the video with audio would be much appreciated. 对于为什么iPhone不将音频导出视频的任何见解,将不胜感激。

I have done some research and somebody mentioned that memory issues could be causing some export problems. 我已经做过一些研究,有人提到内存问题可能导致某些导出问题。 The memory and CPU usage are fairly high during the video processing/exporting, but never high enough to receive a memory warning. 在视频处理/导出过程中,内存和CPU使用率相当高,但是从没有足够高到无法接收到内存警告的程度。

Thanks in advance. 提前致谢。

您没有提到是否在iPhone上逐行浏览代码,设置断点,观察每个变量以确保值正确等,这是第一步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM