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
Roman, it's a very cool feature, thanks. I'm strongly waiting for HDS, its helps to replace any early known commercial solution.
ReplyDeleteThanks
ReplyDeleteIf it's possible to switch audio tracks on the fly?
ReplyDeleteno.
ReplyDeleteyou can restart stream from the same timestamp