video-dev / hls.js

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
https://hlsjs.video-dev.org/demo
Other
14.9k stars 2.58k forks source link

出现音画不同步 #4992

Closed goccult closed 6 months ago

goccult commented 2 years ago

What do you want to do with Hls.js?

问题描述:使用hls.js 1.2.4版本(https://hls-js-357e5663-c334-422c-88d9-fcfbf938b5dc.netlify.app/demo/) 播放该视频源 https://cos-private.seewo.com/knowledge-capsule-pri/V--RNiRYPwqXsaMCWHWt4.m3u8?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDJUXMxJRLzPaeMp20jDSTFl23pLcdPwDF%26q-sign-time%3D1666869609%3B1666880409%26q-key-time%3D1666869609%3B1666880409%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D198d4b6f6f4dd2d142e598a4825fad2936948c5d 会出现音画不同步问题。

What have you tried so far?

测试过在xgplayer官方demo中播放该视频源是正常的 https://v2.h5player.bytedance.com/generate/ (xgplayer官方demo)

robwalch commented 2 years ago

Looks like the media inserted contains overlapping timestamps. Use DISCONTINUITY tags around this content or re-encode it so that it doesn't have overlapping audio samples:

hls.js:23088 [warn] > Audio frame @ 36.059s overlaps nextAudioPts by -1031 ms. hls.js:23088 [warn] > Audio frame @ 42.026s overlaps nextAudioPts by -558 ms. hls.js:23088 [warn] > Audio frame @ 74.379s overlaps nextAudioPts by -995 ms.

goccult commented 2 years ago

但是在其他播放器内播放都是正常,例如vlc、xgplayer,这个问题可以做优化吗