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

Needs time-based profile support! #1

Open
Thulinma opened this issue Jul 31, 2015 · 2 comments
Open

Needs time-based profile support! #1

Thulinma opened this issue Jul 31, 2015 · 2 comments

Comments

@Thulinma
Copy link

Great idea, but this needs time-based profile support!
Perhaps something like this, with times forced to be contiguous and in milliseconds?

{
    "version" : 1,
    "manifest_ttl": 2,
    "adaptation_sets" : [
        {
            "mime_type" : "video/mp4",
            "segment_template" : {
                "init": "http://example.com/ace6123d-021d-41e2-bc31-4a082df189f9/$representation$/init.m4f",
                "media": "http://example.com/ace6123d-021d-41e2-bc31-4a082df189f9/$representation$/segment$time$.m4f",
                "times": [0, 500, 1000, 2500, 5000, 7500, 10000, 12500, 15000, 17500]
            },
            "representations" : {
                "c6a8533d-ff8f-437e-80d7-780f86a07ecd" : {
                    "bandwidth": 400000,
                    "codecs": "avc1.4d4015",
                    "height": 240,
                    "width": 426
                },
                "98bb279a-73bf-40b6-9c6a-f633ce8d2759" : {
                    "bandwidth": 800000,
                    "codecs": "avc1.4d401e",
                    "height": 480,
                    "width": 852
                }
            }
        },
        {
            "language" : "en",
            "mime_type" : "audio/mp4",
            "segment_template": {
                "init": "http://example.com/ace6123d-021d-41e2-bc31-4a082df189f9/$representation$/init.m4f",
                "media": "http://example.com/ace6123d-021d-41e2-bc31-4a082df189f9/$representation$/segment$time$.m4f",
                "times": [0, 5000, 10000, 15000]
            },
            "representations": {
                "c578f804-74aa-4aa5-887c-8837c81cc11d" : {
                    "bandwidth": 64000,
                    "codecs": "mp4a.40.2"
                }
            }
        }
    ]
}
@philcluff
Copy link
Contributor

Hey Thulinma!

Thanks for your contribution, sorry it took me a long time to get back to you.

Its certainly something I'm very interested in supporting - it also has interesting applications for advertisement insertion, by effectively forcing a discontinuity at a particular segment.

One thing I'm concerned about is the number of variants that we allow in SASH. I'm also interested in making it highly declarative when it comes to which variant should be used for player behaviour and manifest parsing/verification. I'm probably talking myself into having a "variant" field at the top level in the manifest.

I'll leave this issue open until I've included this in the designs.

Thanks again,

@Thulinma
Copy link
Author

Let me know if you want any input or need test streams.
I'm actually the lead programmer for the MistServer project, and we're totally adding support for SASH! But currently our code base cannot handle anything other than time based streams. So we're stuck for now :-(

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