Nginx support for HLS

Hi,

I am going to deploy a streaming server and stream video using HLS and
want
to use Nginx. I have a few special requirements that I wanted to
understand
whether Nginx supports.

It would be great if anyone knows whether Nginx could be configured to
do
the following over HLS:

  • Support multiple audio tracks for the same video so on one hand the
    viewer,prior to playing the video, could choose a soundtrack language
    (i.e.
    English, French etc.) and on the other hand I wont need to duplicate the
    video for each language. Also, if this is possible - do I need to embed
    all
    audio tracks into the same video file in advance or are they going to be
    separate files, combined on the fly?

  • Support DRM, so the video can be encrypted on the disk and
    “certificates”
    be generated on the fly to the viewers after they got identified?

Thank you in advance,
Ilan

Posted at Nginx Forum:

On Sat, Jul 26, 2014 at 4:11 AM, ishiber [email protected] wrote:

  • Support multiple audio tracks for the same video so on one hand the
    viewer,prior to playing the video, could choose a soundtrack language (i.e.
    English, French etc.) and on the other hand I wont need to duplicate the
    video for each language. Also, if this is possible - do I need to embed all
    audio tracks into the same video file in advance or are they going to be
    separate files, combined on the fly?

  • Support DRM, so the video can be encrypted on the disk and “certificates”
    be generated on the fly to the viewers after they got identified?

​Those are backend behavior.
Why are you asking about all that on the nginx (ie webserver) ML?

Keep in mind: reading ‘DRM’ could turn people away from helping you.
Closed mind concepts = Closed mind help​

​= How much are you willing to pay for it? :oP
It is strange to see people removing the ability to share videos using
technology provided to them for free by the FOSS way of thinking…

Btw I am sure that you would be considering Nginx Plus. :oD​

B. R.

Thanks B. R. for the info and clarification. Just to make it clear - I
am
not planning to protect any content, however, some of the files that I’m
gonna stream might come from origins that require DRM so my options are
either to choose a system that allows it or pass.

Also, Nginx has modules that do HLS processing on the fly (e.g.
generating
playlists) so if the above is also available, it would be great. What
would
be the right ML for this discussion?

Cheers,
Ilan

Posted at Nginx Forum:

Hi,

On 26 Jul 2014, at 06:11, ishiber [email protected] wrote:

video for each language. Also, if this is possible - do I need to embed all
audio tracks into the same video file in advance or are they going to be
separate files, combined on the fly?

All audio/video tracks are copied from the mp4 to the HLS.
So the viewer can choose any tracks at client side (if the client
software can do that).
If you want nginx to choose the tracks on certain criteria while
generating HLS,
thats not supported now, but this feature is in the roadmap.

  • Support DRM, so the video can be encrypted on the disk and “certificates”
    be generated on the fly to the viewers after they got identified?

DRM is not supported in the HLS module, but its in the roadmap as well.

You can write to [email protected] for more details and feature
requests.