You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IJKAVMoviePlayerController use the ios defalut mediaplayer. not ffplay.
if yout want use ffplay,pls use IJKFFMoviePlayerController.
when the play seek to position.Reduced the probe size make it fast.
What's the prope size? Can it be modified when the video playing? I have both m3u8 and other video format like MP4. Is it will effect the MP4 playing?
发自网易邮箱大师
在2017年03月27日 10:23,test 写道:
IJKAVMoviePlayerController use the ios defalut mediaplayer. not ffplay.
if yout want use ffplay,pls use IJKFFMoviePlayerController.
when the play seek to position.Reduced the probe size make it fast.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Hi 0ct0cat,
Could you try my Video address? I has tried a lot of ways to do it, but still can not resolved it. I have to use Vitamio as a temporary resolution.
@drivedreams
i test this stream,it's can't seek.
maybe there is a problem in mpegts.c.
after seek, hls.c work normal,it's can find right url to read and down ts data.
but the av_read_frame stop work.i think it's demux's bug.
Why do the bilibili app not have this problem? Do you have any idea to resolve it?
发自网易邮箱大师
在2017年04月07日 16:13,test 写道:
@drivedreams
i test this stream,it's can't seek.
maybe there is a problem in mpegts.c.
after seek, hls.c work normal,it's can find right url to read and down ts data.
but the av_read_frame stop work.i think it's demux's bug.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Activity
0ct0cat commentedon Mar 22, 2017
maybe you need modify the ffmpeg.make the probe size smaller.
0ct0cat commentedon Mar 22, 2017
the default probe is 5s. too long
Nimger commentedon Mar 23, 2017
使用IJKFFMoviePlayerController的话,我也碰到这问题,后来我直接改用IJKAVMoviePlayerController来显示,拖动进度就很快了,看了下IJKFFMoviePlayerController的日志,拖动的时候,会一个个ts请求下去,直到找到需要的ts,这样不慢才怪,不知道有什么法子直接定位到所需要的ts
Android4MediaPlayer commentedon Mar 25, 2017
有sample url吗
0ct0cat commentedon Mar 27, 2017
IJKAVMoviePlayerController use the ios defalut mediaplayer. not ffplay.
if yout want use ffplay,pls use IJKFFMoviePlayerController.
when the play seek to position.Reduced the probe size make it fast.
drivedreams commentedon Mar 28, 2017
drivedreams commentedon Mar 28, 2017
Hi 0ct0cat,
I checked the codes of ijkplayer, IJKFFMoviePlayerController is used in IOS. How to resolve my problem on android?
0ct0cat commentedon Mar 29, 2017
there is a member probesize in AVFormatContext ,you can set it's value to control the demuxer probe size.
this method can use on android & ios
aasdsjk commentedon Mar 29, 2017
how to set probesize ,and where can i set it's value?
0ct0cat commentedon Mar 30, 2017
just like this
pls->ctx->probesize = 32 * 1024;
in hls.c
hls_read_header
aasdsjk commentedon Mar 30, 2017
thank you
aasdsjk commentedon Mar 30, 2017
I haved tried this, and i make pls->ctx->probesize = 4 * 1024. But it is not helpful. Does it work?
drivedreams commentedon Apr 5, 2017
Hi 0ct0cat,
Could you try my Video address? I has tried a lot of ways to do it, but still can not resolved it. I have to use Vitamio as a temporary resolution.
0ct0cat commentedon Apr 7, 2017
@drivedreams
i test this stream,it's can't seek.
maybe there is a problem in mpegts.c.
after seek, hls.c work normal,it's can find right url to read and down ts data.
but the av_read_frame stop work.i think it's demux's bug.
drivedreams commentedon Apr 9, 2017
24 remaining items
drivedreams commentedon Nov 14, 2017
@raymond1012 是否应该把这个bug 上面的解决方案已经验证了
drivedreams commentedon Nov 14, 2017
@raymond1012 是不是应该把上面的解决方案应用到源码中,这样可以关闭很多issue
Android4MediaPlayer commentedon Nov 14, 2017
能提供下sample url吗
drivedreams commentedon Nov 15, 2017
@Android4MediaPlayer 我提供的Url现在都是动态变化的。给你了也很快就会失效不具备代表性。这个BUG应该对于所有的点播的M3U8视频都都会出现,而且是必现的。随便找个M3U8测试下呗。
[what] Stop playback afte seek while playing m3u8 VOD with EXT-X-DISC…
yeshibuzhong commentedon Jun 21, 2018
@CloudIAU 你好, 我按照你说的方案添加了以后(我将ffplay里边的几个hls.c都做了修改), 使用编译好的ijk播放视频的时候只要快进就崩溃.信息如下:

请问哪里出了问题, 万分感谢!!!
linjiansheng commentedon Jun 25, 2018
@yeshibuzhong 是不是 seq_no >= pls->n_segments?
linjiansheng commentedon Jun 26, 2018
@Android4MediaPlayer @CloudIAU
ffmpeg 9e9d67d5489be7403017b9279d33334a03835601 vformat/hls: fix duration
这个提交有一些问题:
上面这段代码目的是为了在有 #EXT-X-DISCONTINUITY 修复pts,加上 previous_duration。
1,上面修复pts代码应该放在 av_read_frame 后面,即
另外一个问题就是为什么要做这个判断 seq_no < pls->n_segments?
这边测试 发现 seg no 没有对上,看过去像是 pls->cur_seq_no 已经+1, open 了新的 ts文件, 但是 av_read_frame 返回的还是 上一个 ts文件的最后一个包。这个是不是因为 read_data 读取buf 在ffmpeg io 中被缓存了?日志如下:
yeshibuzhong commentedon Jun 30, 2018
@drivedreams 你好, 我按照CloudIAU方法, 快进的时候回崩溃掉, 我用的是ijk0.88 最新版, 请问你知道怎么回事吗?
上边有我的崩溃信息
xm2017 commentedon Oct 18, 2018
@CloudIAU 大佬这段代码有pull 到源码上么
chenzh2017 commentedon Nov 18, 2019
各位大佬,这个问题解决了吗,现在测试的情况来看,拖放的时候加载依然缓慢,比mp4格式的拖放要慢很多
longshao1234 commentedon Jan 10, 2020
@chenzh2017,一样的,遇到了,mp4播放不会慢,但是用么m3u8播放就会加长,让后循环播放不得行
shenhuihui commentedon Oct 26, 2020
你好,请问iOS上怎么解决这个问题
nicolasiJasica commentedon Apr 6, 2021
播放M3u8的视频的时候,最好:
1.将max-buffer-size探测的长度尽可能的缩小
2.enable-accurate-seek关闭这个属性
其他的都是用默认配置就好,亲测有效,播放下载的M3u8视频 拖动进度, 效果挺好(大概1-2秒),没那么长的缓冲时间了