ios - 在 iOS 上以 30fps 播放 200fps 视频

标签 ios video avfoundation avassetreader mpmediaplayercontroller

我正在寻找在 iPhone 上以慢动作 (30fps) 播放视频 @200fps 的可能性。 MPMediaPlayer 不是解决方案。视频(600 帧~3 秒)在 2 秒内播放。我想要 30fps ~ 20 秒。

我已将 currentplaybackrate(myMPMoviePlayerController) 设置为 0.2 和 0.1,但视频只持续 5 秒...我不知道为什么。

是否可以在 iphone 上播放 @200 fps 的视频? 它兼容吗?在这个documentation仅提及 30 fps 的最大帧速率。如果我将我的视频转换为 30 fps(所以我得到 20 sec@30 fps),我不能实时播放(快 6 倍)

能否在AVFoundation Framework中实现?

有什么建议吗?

非常感谢

最佳答案

您可以使用 currentPlaybackRate MpMediaPlayer 并像这样指定播放速度:

[myMPMoviePlayerController setCurrentPlaybackRate:0.2];

您甚至可以反向播放具有负值的剪辑

关于ios - 在 iOS 上以 30fps 播放 200fps 视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10428073/

相关文章:

iOS Fido2 BLE 认证器注册响应问题

android - 如何在Android中以编程方式捕获没有音频的视频?

audio - 在 Windows Phone 8 中以编程方式下载媒体文件

iphone - 将 AVAudioPlayer 音量设置为用户的铃声音量?

audio - 如何调用 CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer?

ios - UITableView 信号 SIGABRT

iphone - 如何在 xcode 中的某个特定间隔后在圆形进度 View 中添加多种颜色?

swift - AVPlayerItem 的 selectedMediaOption(在 :) disagrees with available selection options following seek(to:) call

ios - 如何设置 UIScrollview 和动画的优先级

html - 介绍页面中的响应式图像和视频