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

Packaging DASH stream with time based index without splitting mp4 file #957

Open
jinyeng opened this issue Apr 25, 2024 · 2 comments
Open

Comments

@jinyeng
Copy link

jinyeng commented Apr 25, 2024

I want to keep the fragmented mp4 file without splitting it and use the SegmentTemplate with time based indexing. I have tried all possible combinations however unable to have it working without splitting the file. Only if I use the --smooth option with --no-split the file is not split in to segment and also it uses the time based template. Checking if there is some option that I am missing ?

Here is the smooth example, however it generates additional ism files and it uses following template
media="stream.ism/QualityLevels($Bandwidth$)/Fragments(video=$Time$)"

Here is command

mp4dash -f --smooth /home/sample/a.2.mp4 /home/sample/v10000.2.mp4 /home/sample/v1000.2.mp4 /home/sample/v600.2.mp4 /home/sample/v300.2.mp4 -o /home/sample/mpd --mpd-name=410776960.mpd --no-split

@barbibulle
Copy link
Contributor

You should get a non-split file with the on-demand profile of DASH. Use the --profile on-demand option with mp4dash. The template isn't really time-based, since in that case the client locates the segments with the segment index that's included in the file, so we can call that index-based rather than time-based. I suppose that still gets you what you want.

@jinyeng
Copy link
Author

jinyeng commented Apr 29, 2024

To clarify the above --no-split with on-demand profile, it generates a Byte range based format, with SegmentBase.

Is that the Index you are referring to ? Or index as in number based format where files are not split, and using a seg-1.m4s, seg-2.m4s ... format ?

Tricky part is my CDN does not support caching for the byterange based format, so I am looking at an option that still uses the Fragmented MP4 but with time or number based url instead of using the byte range header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants