Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试以非常小的值(甚至可能小于毫秒)浏览视频。为了到达我使用的下一帧[AVPlayer seekToTime:time toleranceBefore: kCMTimeZero toleranceAfter:kCMTimeZero],它给了我正确的位置。问题是,向后擦洗需要很长时间。
[AVPlayer seekToTime:time toleranceBefore: kCMTimeZero toleranceAfter:kCMTimeZero]
我知道原因是关键帧,玩家必须从最近的关键帧开始搜索才能到达该位置。
是否有可能重新编码视频以获得更多关键帧,或者完全不存在关键帧?
谢谢
是的,您可以对视频进行编码以包含所有关键帧,但文件会变得更大。它也需要时间/CPU来完成。此外,在每秒 30 帧的情况下,每 33 毫秒只有一帧,因此亚毫秒分辨率没有任何意义。