Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好,bbcallen,能帮我看看播放高清视频经常会buffering不能继续播放的问题吗?谢谢 #47

Closed
huhailong opened this issue Jul 11, 2014 · 9 comments

Comments

@huhailong
Copy link

No description provided.

@chodison
Copy link
Contributor

你是咋样的流?我用起来测试都蛮好的。

@huhailong
Copy link
Author

http://ips.ifeng.com/video19.ifeng.com/video09/2014/06/16/1989823-102-086-0009.mp4
我用这个流,在大多数手机上都是播放20分钟或30分钟左右就会出现buffering一直加载,一直停止加载状态,无法播放了,下面是log,请您帮我看看,谢谢
07-11 11:22:11.757: E/IJKMEDIA(8384): AVC: nal size 18792
07-11 11:22:11.757: E/IJKMEDIA(8384): AVC: nal size 18792
07-11 11:22:11.757: E/IJKMEDIA(8384): no frame!
07-11 11:22:11.796: D/IJKMEDIA(8384): ffp_toggle_buffering_l: start
07-11 11:22:11.796: W/IJKMEDIA(8384): FFP_MSG_BUFFERING_START:
07-11 11:22:11.804: I/tv.danmaku.ijk.media.player.IjkMediaPlayer(8384): Info (701,0)
07-11 11:22:11.804: D/tv.danmaku.ijk.media.widget.VideoView(8384): onInfo: (701, 0)
07-11 11:22:11.804: D/tv.danmaku.ijk.media.widget.VideoView(8384): onInfo: (MEDIA_INFO_BUFFERING_START)
07-11 11:22:11.828: V/LvOutput(126): initCheck: 0
07-11 11:22:11.828: V/LvOutput(126): detachEffects: detach processing for output 2, stream 3, session 34
07-11 11:22:11.828: V/LvOutput(126): detachEffects: no output processing was attached to this stream
07-11 11:22:11.828: V/AudioPolicyManagerBase(126): stopOutput() output 2, stream 3, session 34
07-11 11:22:11.828: V/AudioPolicyManagerBase(126): changeRefCount() stream 3, count 0
07-11 11:22:11.828: V/AudioPolicyManagerBase(126): getNewDevice() selected device 0
07-11 11:22:11.828: V/AudioPolicyManagerBase(126): setOutputDevice() output 2 device 0000 force 0 delayMs 184
07-11 11:22:11.828: V/AudioPolicyManagerBase(126): setOutputDevice() prevDevice 0002
07-11 11:22:11.828: V/AudioPolicyManagerBase(126): setOutputDevice() setting same device 0000 or null device for output 2
07-11 11:22:11.828: V/AudioPolicyManagerBase(126): checkOutputForStrategy(0002,0002,3)
07-11 11:22:11.828: V/AudioPolicyManagerBase(126): getOutputsForDevice device 0002 -> 0

@huhailong
Copy link
Author

下面是我用mediainfo分析的码流信息:
General
Complete name : http://ips.ifeng.com/video19.ifeng.com/video09/2014/06/16/1989823-102-086-0009.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 290 MiB
Duration : 37mn 2s
Overall bit rate : 1 094 Kbps
Writing application : Lavf55.19.104

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L2.1
Format settings, CABAC : No
Format settings, ReFrames : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 37mn 2s
Bit rate : 1 024 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.044
Stream size : 271 MiB (94%)
Writing library : x264 core 140
Encoding settings : cabac=0 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=36 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=100 / keyint_min=10 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1024 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=4096 / vbv_bufsize=4096 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:0.00

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 37mn 2s
Duration_LastFrame : 27ms
Bit rate mode : Constant
Bit rate : 66.2 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 17.4 MiB (6%)

@bbcallen bbcallen added the bug label Jul 11, 2014
@psnow
Copy link

psnow commented Jul 15, 2014

我也碰到同样的问题,debug发现,ffmpeg读包的时候会buffer住。即:av_read_frame有时会消耗2s左右,这段时间把队列中的数据都消耗完了。长时间后确实碰到过buffering,然后不能播放的情况。但没不知原因。

@huhailong
Copy link
Author

嗯,就是这个问题,而且这个问题经常遇到,是个普遍的问题,您有什么好办法解决它吗?或者想办法规避掉这个问题?

@psnow
Copy link

psnow commented Jul 15, 2014

我也只是碰到,没有解决。我觉得在网络中存在这个现象也正常,但是长时间buffering后不能播放,不知道什么原因,你找到根本原因了吗?或者有什么其他的发现。

------------------ 原始邮件 ------------------
发件人: "huhailong"notifications@github.com;
发送时间: 2014年7月15日(星期二) 中午11:43
收件人: "bbcallen/ijkplayer"ijkplayer@noreply.github.com;
抄送: "紫雪"190729915@qq.com;
主题: Re: [ijkplayer] 您好,bbcallen,能帮我看看播放高清视频经常会buffering不能继续播放的问题吗?谢谢 (#47)

嗯,就是这个问题,而且这个问题经常遇到,是个普遍的问题,您有什么好办法解决它吗?或者想办法规避掉这个问题?


Reply to this email directly or view it on GitHub.

@huhailong
Copy link
Author

请问您那边有什么进展吗?

@chodison
Copy link
Contributor

chodison commented Feb 2, 2015

这个是http点播流,是特定机型才出现么?我播放完几遍没发现

@bbcallen
Copy link
Contributor

Feel free to reopen if any more question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants