问题描述
我想以慢动作在iOS设备上显示视频。
I'd like to show a video on an iOS device in slow motion.
我的视图包含一个视频(约2秒长)和一个滑块。
My view contains a video (~2 seconds long) and a slider.
用户可以逐帧移动滑块并逐步(向前和向后)穿过电影。
The user can move the slider and step (forwards and backwards) through the movie frame by frame.
MPMoviePlayerController
缺乏逐帧步骤的能力。
MPMoviePlayerController
lacks the ability to step frame by frame.
我读过 MVAssetReader
,但我没有具体的想法如何使用它。
I read about MVAssetReader
, but I have no concrete idea how to use this.
我没有固定的帧率,所以它应该从视频的元数据。我真的需要展示每一帧。
I don't have a fixed framerate, so it should take this information out of the metadata of the video. I really need to show every frame.
有人能给我一个线索吗?
Can someone give me a clue?
推荐答案
AV播放器演示WWDC 2010示例代码的示例代码可以帮助您完成任务
AV Player Demo Sample code of WWDC 2010 Sample Code can be helpful in your task
使用AV Foundation在WWDC 2010 AV编辑中解释从视频剪切缩略图关于使用示例代码编辑音频和视频的框架和许多其他事项
Cutting Thumbnails from Video is Explained in WWDC 2010 AV Editing with AV Foundation Framework and lots of other things regarding editing audio and video with sample codes
如果您有开发者帐户(付费),那么您可以在iTunes上观看视频
If you have Developer account(paid) then you can watch video on iTunes
这篇关于iOS Frame by Frame视频播放前进/后退的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!