bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.43k stars 8.11k forks source link

How to step forward/backward frame by frame accurately? 怎样精确地逐帧步进/步退? #4309

Open chenqiu1024 opened 6 years ago

chenqiu1024 commented 6 years ago

I'm working on an iOS player based on ijkplayer. I'd like to do accurate forwarding/backwarding, one frame per step. But if I use code like this: _ijkplayer.currentPlaybackTime = _ijkplayer.currentPlaybackTime + 0.033f; or _ijkplayer.currentPlaybackTime = _ijkplayer.currentPlaybackTime - 0.033f; It does not seek to the location one frame later/before, always somewhere seconds later/before. Why? And what is the proper way to do accurate stepping forward/backward?

wnpllrzodiac commented 6 years ago

trickplay mode?

chenqiu1024 commented 6 years ago

@wnpllrzodiac 可以详细解释一下嘛?

chenqiu1024 commented 6 years ago

Anyone could help?