Skip to content

播放进度, 前进后退不准确 #13

Closed Answered by kaiqinhu
letterk asked this question in Q&A 问答
Discussion options

You must be logged in to vote

我这里是所有视频都不正常, 在上千个视频中抽查了几十个, 最准确的是5秒变6秒, 最多的是5秒变50秒, 一般的电影基本都是5秒变十几秒, 最扯淡的是一些视频, 前进和后退秒数不一样, 还有一个视频, 后退在2秒和4秒之间交替

因为关键帧(I帧)的原因,H264/H265等编码中有I帧、P帧、B帧的区别,I帧是帧内编码,P帧和B帧要参考前/后帧进行编码;当你使用跳转时,播放器首先是定位至最近的关键帧,所以不是精确跳转,一般的视频关键帧的比例都低于1/10。具体可以参考H.264/H.265编码标准相关科普。

Replies: 10 comments

Comment options

You must be logged in to vote
0 replies

This comment has been hidden.

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Answer selected by hooke007
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #3 on August 14, 2021 07:54.