某些极端情况下,视频中只有最开始也就是第一帧是I帧,当seek到其他时间点时总是直接从头开始播放,怎么seek到哪个时间点就在那个时间点播放,而不是seek到关键帧播放
是的
在 2017年9月12日 下午3:07,xiaowu4 notifications@github.com写道:
某些极端情况下,视频中只有最开始也就是第一帧是I帧,当seek到其他时间点时总是直接从头开始播放,怎么seek到哪个时间点就在那个时间点播放,
而不是seek到关键帧播放—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Bilibili/ijkplayer/issues/3570, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEOmlouRMbDRFrigKpMPo9rj8_miX4Slks5shi3LgaJpZM4PUMnR
.
再请问一下,是将这个参数设为1吗?我将ff_ffplay.c中的该参数全部设为了1,还有ff_ffplay_def.h中的ffp的默认值也设为了1,但是还是没有效果,还有其他需要设置的吗
还需要将OPTION_OFFSET(enable_accurate_seek), OPTION_INT(0, 0, 1) },改为OPTION_OFFSET(enable_accurate_seek), OPTION_INT(1, 0, 1) },感谢
setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "enable-accurate-seek", 1);
2017-09-12 15:41 GMT+08:00 xiaowu4 notifications@github.com:
还需要将OPTION_OFFSET(enable_accurate_seek), OPTION_INT(0, 0, 1)
},改为OPTION_OFFSET(enable_accurate_seek), OPTION_INT(1, 0, 1) },感谢—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Bilibili/ijkplayer/issues/3570#issuecomment-328768412,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEOmljdx0-OWF0xlYfbhDDl1u6JxUhlBks5shjXHgaJpZM4PUMnR
.
精准seek为什么要加个参数控制,难道有什么坑?
为什么没有直接写死成1。
我设置了 enable-accurate-seek 1 后还是不能精准seek。0.7.8.1版本,看git提交记录是有加enable-accurate-seek相关逻辑代码的。
有个视频seek 到 0至8s,最终都是从8s开始播放,seek其它位置没问题。
MEDIA_INFO_MEDIA_ACCURATE_SEEK_COMPLETE
java层收到这个回调之后,视频立马跳到了错误位置。
enable-accurate-seek 开启后,播放m3u8视频会seek失败,不止何故
我设置了 enable-accurate-seek 1也还是不行啊
亲测 可行,iOS
[options setPlayerOptionIntValue:1 forKey:@"enable-accurate-seek"]
Most helpful comment
setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "enable-accurate-seek", 1);
2017-09-12 15:41 GMT+08:00 xiaowu4 notifications@github.com: