-
Notifications
You must be signed in to change notification settings - Fork 506
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
Segment Template with Duration #400
Comments
@ltrayanov Our segment template system currently supports Segment Number and Segment Time. I have not heard of segment template with duration. Could you explain to me how that should work? |
@vaage The manifest of the a template with duration includes info about all future segments and clients don't need to do manifest updates to learn about future segments. The ffmpeg argument is: -use_template 1 \ # Use templated names for output The segment template in the generated mpd file should look like: SegmentTemplate timescale="1000000" duration="1000000" initialization="init-$RepresentationID$.mp4" media="test-$RepresentationID$-$Number%05d$.mp4" startNumber="1"> Thats the only way I achieved a low latency live stream. |
@ltrayanov Did part of your message get erased by mistake? You say "the segment template in the generated mpd file should like like:" and then there is nothing. |
@ltrayanov Looks like you are looking for SegmentTemplate with constant duration. We have experimental support for this in Shaka Packager under flags: |
@vaage Sorry about that. The segment template in the generated mpd file should look like: |
@ltrayanov Thank you for sharing that. Did what @kqyang suggest work for you? |
@vaage I will try the flags on Tuesday next week and post an update. Thanks! |
@vaage thanks for sharing the flags, I am currently running:
Which gives me:
So correctly, there are no |
Renamed Segment Template with Duration to better reflect what this issue is. We'll be working on Low Latency with Chunked CMAF in Q1 2019, which can further reduce the latency. Stay tuned. Closing this issue as it is addressed. Feel free to reply or re-open it if there are other questions. |
I tried so many variations of arguments in ffmpeg without any success. |
@michael-riha You can feed the output from ffmpeg to Shaka Packager. Packager generates a chunk with multiple (moof+mdat)s if you set |
Hi,
I am working on a project of packaging a low latency live stream. One of the suggestions that I receive was to use a SegmentTemplate with duration. We tried that with ffmpeg and our glass to glass latency was around 2sec. Added benefit was the lower network activity since minimumUpdatePeriod was set very high.
How can we set the ShakaPackager to use a Segment Template with Duration? Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: