bilibili / flv.js

HTML5 FLV Player
Apache License 2.0
22.93k stars 3.38k forks source link

直播中,插播视频文件后拖动进度条,播放器观看端声音会超前显示 #329

Open ZhangDewei opened 6 years ago

ZhangDewei commented 6 years ago

您好,我当前使用的版本是 1.2 ,因为新版本在公司里接收直播流的时候上来就出现音视频不同步的问题,所以使用了低版本。现在在我们直播的时候插入一个视频,当这个视频被拖动之后,在观看端就音视频不同步了,求助这个问题该如何解决……谢谢,当前flvjs是配合videojs一起使用的

ZhangDewei commented 6 years ago

还请开发老师帮忙给写解决思路,非常感谢

xqq commented 6 years ago

Please provide the flv.js logcat and corresponding logcat in chrome://media-internals

ZhangDewei commented 6 years ago

render_id: 10 player_id: 3 origin_url: http://t-webinar.e.vhall.com/ frame_url: http://t-webinar.e.vhall.com/362122348 frame_title: 大大啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 url: blob:http://t-webinar.e.vhall.com/d1bf8fc3-9168-4f81-b50c-105831b34ed0 info: Effective playback rate changed from 0 to 1 pipeline_state: kStopped found_video_stream: true video_codec_name: h264 found_audio_stream: true audio_codec_name: aac audio_dds: false audio_decoder: FFmpegAudioDecoder debug: Video rendering in low delay mode. video_dds: false video_decoder: GpuVideoDecoder error: Failed to reconcile encoded audio times with decoded output. audio_buffering_state: BUFFERING_HAVE_ENOUGH video_buffering_state: BUFFERING_HAVE_ENOUGH height: 720 width: 1280 for_suspended_start: false pipeline_buffering_state: BUFFERING_HAVE_ENOUGH event: WEBMEDIAPLAYER_DESTROYED duration: unknown seek_target: 1.521999 杨振 15:53:29 Property Value audio_buffering_state BUFFERING_HAVE_ENOUGH audio_codec_name aac audio_dds false audio_decoder FFmpegAudioDecoder debug Video rendering in low delay mode. duration unknown error Failed to reconcile encoded audio times with decoded output. event WEBMEDIAPLAYER_DESTROYED for_suspended_start false found_audio_stream true found_video_stream true frame_title 大大啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 frame_url http://t-webinar.e.vhall.com/362122348 height 720 info Effective playback rate changed from 0 to 1 origin_url http://t-webinar.e.vhall.com/ pipeline_buffering_state BUFFERING_HAVE_ENOUGH pipeline_state kStopped player_id 3 render_id 10 seek_target 1.521999 url blob:http://t-webinar.e.vhall.com/d1bf8fc3-9168-4f81-b50c-105831b34ed0 video_buffering_state BUFFERING_HAVE_ENOUGH video_codec_name h264 video_dds false video_decoder GpuVideoDecoder width 1280 Log property filter Timestamp Property Value 00:00:00 00 origin_url http://t-webinar.e.vhall.com/ 00:00:00 00 frame_url http://t-webinar.e.vhall.com/362122348 00:00:00 00 frame_title 大大啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 00:00:00 00 url blob:http://t-webinar.e.vhall.com/d1bf8fc3-9168-4f81-b50c-105831b34ed0 00:00:00 00 info ChunkDemuxer: buffering by DTS 00:00:00 02 pipeline_state kStarting 00:00:02 893 found_video_stream true 00:00:02 893 video_codec_name h264 00:00:02 893 found_audio_stream true 00:00:02 893 audio_codec_name aac 00:00:02 895 audio_dds false 00:00:02 895 audio_decoder FFmpegAudioDecoder 00:00:02 895 info Selected FFmpegAudioDecoder for audio decoding, config: codec: aac bytes_per_channel: 2 channel_layout: 3 channels: 2 samples_per_second: 44100 sample_format: 2 bytes_per_frame: 4 seek_preroll: 0ms codec_delay: 0 has extra data? false encrypted? false discard decoder delay? false 00:00:02 896 debug Video rendering in low delay mode. 00:00:03 08 video_dds false 00:00:03 08 video_decoder GpuVideoDecoder 00:00:03 08 info Selected GpuVideoDecoder for video decoding, config: codec: h264 format: 1 profile: h264 high coded size: [1280,720] visible rect: [0,0,1280,720] natural size: [1280,720] has extra data? false encrypted? false rotation: 0° 00:00:03 08 pipeline_state kPlaying 00:00:03 08 error Failed to reconcile encoded audio times with decoded output. 00:00:03 09 audio_buffering_state BUFFERING_HAVE_ENOUGH 00:00:03 164 video_buffering_state BUFFERING_HAVE_ENOUGH 00:00:03 167 height 720 00:00:03 167 width 1280 00:00:03 167 for_suspended_start false 00:00:03 167 pipeline_buffering_state BUFFERING_HAVE_ENOUGH 00:00:03 167 info Effective playback rate changed from 0 to 1 00:00:03 167 event PLAY 00:00:02 893 duration unknown 00:00:04 05 seek_target 1.521999 00:00:04 05 pipeline_state kSeeking 00:00:04 05 audio_buffering_state BUFFERING_HAVE_NOTHING 00:00:04 05 video_buffering_state BUFFERING_HAVE_NOTHING 00:00:04 06 pipeline_state kPlaying 00:00:04 06 error Failed to reconcile encoded audio times with decoded output. 00:00:04 07 audio_buffering_state BUFFERING_HAVE_ENOUGH 00:00:04 22 video_buffering_state BUFFERING_HAVE_ENOUGH 00:00:04 23 for_suspended_start false 00:00:04 23 pipeline_buffering_state BUFFERING_HAVE_ENOUGH 00:02:01 382 pipeline_state kStopping 00:02:01 383 pipeline_state kStopped 00:02:01 383 event WEBMEDIAPLAYER_DESTROYED