bilibili / flv.js

HTML5 FLV Player
Apache License 2.0
22.91k stars 3.39k forks source link

【求助】首屏加载有概率出现有声音但画面暂停的状态 #248

Open alert-0822 opened 6 years ago

alert-0822 commented 6 years ago

各位,小弟最近出现类似标题的问题,有办法解决吗?具体配置如下: { "type": "flv", “url”: myUrl, "hasAudio": true, "hasVideo": true, "isLive": true },{ "enableWorker": false, "enableStashBuffer": true, "stashInitialSize": 384, "fixAudioTimestampGap": false, "accurateSeek": true, "isLive": true, "lazyLoadMaxDuration": 180 } 如何解决类似问题呢,help

xqq commented 6 years ago

一直卡着?

alert-0822 commented 6 years ago

对,是的,一直卡在第一屏,但声音是有

alert-0822 commented 6 years ago

@xqq hi 谦谦,这个问题可以解决吗?

xqq commented 6 years ago

自己分析下视频流

wmwxzzh commented 6 years ago

我们也遇到这个问题,gpu日志报错[1809:775:0929/173545.222030:ERROR:gles2_cmd_decoder.cc(18008)] : [.DisplayCompositor-0x7fe0cd1ee200]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name [1809:775:0929/173545.222055:ERROR:gles2_cmd_decoder.cc(12468)] : [.DisplayCompositor-0x7fe0cd1ee200]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format

logcat: 00:00:00 00 origin_url file:///
00:00:00 00 frame_url file:///Users/weimingwang/Downloads/h5player/test/h5player.html
00:00:00 00 frame_title h5 video test page
00:00:00 00 url blob:null/0f691e25-65f7-449d-834e-a1841c840ff1
00:00:00 00 info ChunkDemuxer: buffering by DTS
00:00:00 04 pipeline_state kStarting
00:00:00 491 found_video_stream true
00:00:00 491 video_codec_name h264
00:00:00 492 found_audio_stream true
00:00:00 492 audio_codec_name aac
00:00:00 506 audio_dds false
00:00:00 506 audio_decoder FFmpegAudioDecoder
00:00:00 506 info Selected FFmpegAudioDecoder for audio decoding, config: codec: aac bytes_per_channel: 2 channel_layout: 2 channels: 1 samples_per_second: 44100 sample_format: 2 bytes_per_frame: 2 seek_preroll: 0ms codec_delay: 0 has extra data? false encryption scheme: Unencrypted discard decoder delay? false
00:00:00 506 debug Video rendering in low delay mode.
00:00:00 509 video_dds false
00:00:00 509 video_decoder GpuVideoDecoder
00:00:00 509 info Selected GpuVideoDecoder for video decoding, config: codec: h264 format: 1 profile: h264 baseline coded size: [1280,720] visible rect: [0,0,1280,720] natural size: [1280,720] has extra data? false encryption scheme: Unencrypted rotation: 0°
00:00:00 509 pipeline_state kPlaying
00:00:00 511 audio_buffering_state BUFFERING_HAVE_ENOUGH
00:00:00 632 height 720
00:00:00 632 width 1280
00:00:00 632 video_buffering_state BUFFERING_HAVE_ENOUGH
00:00:00 632 for_suspended_start false
00:00:00 632 pipeline_buffering_state BUFFERING_HAVE_ENOUGH
00:00:00 633 info Effective playback rate changed from 0 to 1
00:00:00 633 event PLAY
00:00:00 492 duration unknown
00:03:04 733 audio_buffering_state BUFFERING_HAVE_NOTHING
00:03:04 733 for_suspended_start false
00:03:04 733 pipeline_buffering_state BUFFERING_HAVE_NOTHING
00:03:04 797 audio_buffering_state BUFFERING_HAVE_ENOUGH
00:03:04 798 for_suspended_start false
00:03:04 798 pipeline_buffering_state BUFFERING_HAVE_ENOUGH
wmwxzzh commented 6 years ago

@xqq 请问为什么播放flv的时候画面卡住但是音频能一直播放,播放器无报错。 @alert-0822 后来问题解决了吗?