-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unable to play video with only one segment #173
Comments
To clarify, is the player starting playback from the first segment and then failing when it attempts to fetch the non-existent second segment, or is the player trying and failing to start playback from the non-existent second segment to begin with? |
He starts from the first, gets it and keeps trying to get the second. |
So, the video doesn't start at all? If not, what happens if you call |
I was running 1.4.1 and with 5s buffer it doesn't try to load the second chunk, but it doesn't start to play either. I've just tried build from master (4d91772) - the video shows it's 20 seconds long, plays the 10 seconds, stops at 10s and tries to get the second chunk. I'll get MPD for testing on Monday. |
@tdrews I've sent you the MPD by email. |
So, here's what's happening: because To resolve this the MPD should indicate However, there is a small bug in the player as well: the player should assume the last segment does not extend past |
Thanks for clarification. I did some deep digging into our tracks again: Video track
Audio track
The video is exactly 10.000 seconds long. The audio is 10.148 long, because the AAC is padding to the closest block size. So the stream is correctly longer than 10 seconds. I guess that pretty much every video track that is aligned with segment length will have an additional audio segment. That solves our mystery. Thanks a lot for assistance. |
I'm using 10 second segments for videos, which is perfectly fine for normal videos. However, I have a few videos that are 10 seconds long, therefore they have only one segment.
When I try to play them, shaka-player tries to fetch the second segment, but there's no second segment (to be precise, the server returns empty file with HTTP 304 Not Modified).
The MPD looks like this:
(I've skipped the remaining Representations in the 2nd Adaptation set as they're pretty much the same just with different bitrate).
The player just keeps buffering while trying to fetch the 2nd segment. Any idea why is that happening?
The text was updated successfully, but these errors were encountered: