Saturday, January 26, 2013

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

4 comments:

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

    ReplyDelete
  2. If it's possible to switch audio tracks on the fly?

    ReplyDelete
  3. no.
    you can restart stream from the same timestamp

    ReplyDelete