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

My hls video has a section that will be skipped #7349

Open
vaseala opened this issue Sep 21, 2024 · 7 comments
Open

My hls video has a section that will be skipped #7349

vaseala opened this issue Sep 21, 2024 · 7 comments
Assignees
Labels
flag: bot ignore Asks CI bots that maintain issues to ignore this issue type: question A question from the community

Comments

@vaseala
Copy link

vaseala commented Sep 21, 2024

Have you read the Tutorials?
Yes

Have you read the FAQ and checked for duplicate open issues?
Yes

If the question is related to FairPlay, have you read the tutorial?

Not relate to FairPlay

What version of Shaka Player are you using?
4.11.4

What browser and OS are you using?
latest chrome and macOS

Please ask your question
I created a github repository to reproduce this issue:https://github.com/issuebox/video-problem

Start the local service and open http://localhost:5173/shaka

When the video is played to around 48 seconds, it will jump directly to 60 seconds, and the video between 48s-60s cannot be played

After playing to 65s, when I adjust the progress bar to about 40s, it jumps to 60s, and then I can't reposition it to 42s

@vaseala vaseala added the type: question A question from the community label Sep 21, 2024
@avelad
Copy link
Member

avelad commented Sep 23, 2024

For me your manifest is poorly generated:

#EXTM3U
## Generated with https://github.com/shaka-project/shaka-packager version v3.2.0-53b8668-release

#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-MEDIA:TYPE=AUDIO,URI="audio-flac/main.m3u8",GROUP-ID="audio",LANGUAGE="zh",NAME="CHINESE",DEFAULT=NO,AUTOSELECT=YES,CHANNELS="6"

#EXT-X-MEDIA:TYPE=AUDIO,URI="audio-aac/main.m3u8",GROUP-ID="audio",LANGUAGE="zh",NAME="ENGLISH",DEFAULT=NO,CHANNELS="2"

#EXT-X-STREAM-INF:BANDWIDTH=34233597,AVERAGE-BANDWIDTH=22854301,CODECS="avc1.640029,flac,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=24.390,AUDIO="audio",CLOSED-CAPTIONS=NONE
video/main.m3u8

You are mixing two different audio codecs in the same variant.

Your content should be:

#EXTM3U
## Generated with https://github.com/shaka-project/shaka-packager version v3.2.0-53b8668-release

#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-MEDIA:TYPE=AUDIO,URI="audio-flac/main.m3u8",GROUP-ID="audio-flac",LANGUAGE="zh",NAME="CHINESE",DEFAULT=NO,AUTOSELECT=YES,CHANNELS="6"

#EXT-X-MEDIA:TYPE=AUDIO,URI="audio-aac/main.m3u8",GROUP-ID="audio-aac",LANGUAGE="zh",NAME="ENGLISH",DEFAULT=NO,CHANNELS="2"

#EXT-X-STREAM-INF:BANDWIDTH=34233597,AVERAGE-BANDWIDTH=22854301,CODECS="avc1.640029,flac",RESOLUTION=1920x1080,FRAME-RATE=24.390,AUDIO="audio-flac",CLOSED-CAPTIONS=NONE
video/main.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=34233597,AVERAGE-BANDWIDTH=22854301,CODECS="avc1.640029,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=24.390,AUDIO="audio-aac",CLOSED-CAPTIONS=NONE
video/main.m3u8

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Sep 23, 2024
@vaseala
Copy link
Author

vaseala commented Sep 23, 2024

Thank you for your reply @avelad
The m3u8 I submitted in the previous version has a problem, which makes the video unable to play in shaka-player. I have submitted the modified m3u8

Now when it plays to about 50 seconds, the video will jump about 10 seconds and jump directly to about 61 seconds. I don’t know what causes it. I hope you can clone the repository and help me analyze it.

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Sep 23, 2024
@avelad
Copy link
Member

avelad commented Sep 23, 2024

It seems that there is some problem with the video, if I use disableVideo everything works fine (only the audio is played). If I use disableAudio the issue persists (only the video is played).

The manifest is created correctly, so there is some problem in the segment that produces the gap.

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Sep 23, 2024
@vaseala
Copy link
Author

vaseala commented Sep 23, 2024

But with hls.js , it can play all the seconds of the video.
In the same repository, open http://localhost:5173/hls .
and with desktop vlc player, It works ok.

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Sep 23, 2024
@avelad
Copy link
Member

avelad commented Sep 23, 2024

@shaka-bot shaka-bot added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Sep 27, 2024
@joeyparrish joeyparrish added flag: bot ignore Asks CI bots that maintain issues to ignore this issue and removed status: waiting on response Waiting on a response from the reporter(s) of the issue labels Sep 27, 2024
@shaka-project shaka-project deleted a comment from shaka-bot Sep 27, 2024
@avelad
Copy link
Member

avelad commented Oct 29, 2024

Related issue in hls.js video-dev/hls.js#6711

@vaseala
Copy link
Author

vaseala commented Oct 30, 2024

Related issue in hls.js video-dev/hls.js#6711

Yes, it is probably because there is something wrong with the video itself, and there is indeed a problem under hls.
In hls.js, for this video, by modifying some settings, this problem can be corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag: bot ignore Asks CI bots that maintain issues to ignore this issue type: question A question from the community
Projects
None yet
Development

No branches or pull requests

4 participants