[Libav-user] ffmpeg 'av_seek_frame()' not work in bink video

문경현 ghoflvhxj at naver.com
Mon Jul 20 05:41:13 EEST 2020





I'm trying to play video in my game by using ffmpeg-avformatlib library.
'av_seek_frame()' work correctly when open '.avi' file.
but if open .bik file, it's not work however the function return 0(success) and seek to 0 frame.
anyone who know about this problem? :( please tell me please...
void CMovie::Play(const Time startFrame, const Time endFrame, const bool loop/* = false*/) { ... if (m_bStart) { av_seek_frame(GetFormatContext(), GetVideoStreamIndex(), startFrame, AVSEEK_FLAG_FRAME); m_bStart = false; } ... }
i uploaded sample video player and video which call 'av_seek_frame()' to seek.
play fire.bik and click left or right button, you can see seek to 0 frame. it's same as my program.
check it please.https://drive.google.com/file/d/1DVrX3EOzjxSfEA4EYpeSREaE2RLhB28Q/view?usp=sharing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200720/6d73c068/attachment.html>


More information about the Libav-user mailing list