Mp4 track selector

In version 0.9.2 of nginx-rtmp I have added track selector for mp4 playback. If your mp4 has multiple audio (or video) tracks then you can provide track index to play. Argument names are aindex and vindex.

Examples:

rtmp://localhost/vod/file.mp4?aindex=1

rtmp://localhost/vod/file.mp4?vindex=1

# ignore video track
rtmp://localhost/vod/file.mp4?vindex=-1

rtmp://localhost/vod/file.mp4?aindex=0&vindex=2

Advertisements
  1. #1 by Max on January 26, 2013 - 7:58 am

    Roman, it’s a very cool feature, thanks. I’m strongly waiting for HDS, its helps to replace any early known commercial solution.

  2. #3 by Kirill Fries-Raevskiy on April 11, 2013 - 7:22 pm

    If it’s possible to switch audio tracks on the fly?

    • #4 by rarut on April 11, 2013 - 7:25 pm

      no.
      you can restart stream from the same timestamp

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: