Combining TV channel video and Radio station only
Posted: 09 Dec 2012 17:08
Is it possible to combine the Video (and audio) from a TV channel (accessed over HTTP) with multiple audio channels from different streams? (The streams are DVB-T (Radio 5) and DVB-S (RTL) transport streams)
Basically I want to take the video (and audio) from RTL, and add to that as extra audio channels the audio commentary from both BBC Radio 5 Live, and BBC Radio 5 Live Sports Extra. All these channels are served from TVHeadend over HTTP. The result should then be output over multicast (which TV Headend then subscribes too) allowing XBMC to view a "fake" tv channel which includes the video from RTL and the BBC Radio 5 commentary.
When viewing the fake channel I would then use XBMC to switch between the audio streams (i.e. German/RTL, BBC R5L, BBC R5LSX) and adjust the audio delay (the audio is always ahead of the video handily!). Ideally I would be able to label the audio outputs or specify what language they are (e.g. I could say that R5L is English and R5LSX is French meaning (with the original audio continuing to identify itself as German) I can tell which feed is which) but this is less important.
The following batch file outputs the video and original audio from RTL and (via TV Headend) I can view it in XBMC however the additional audio streams are not available. I've tried various things but without knowing the correct terminology it's hard to find one that works.
Playing the stream in a separate instance of VLC using the URL udp://@239.255.12.42:1234/ shows the same - i.e. only the original audio.
Basically I want to take the video (and audio) from RTL, and add to that as extra audio channels the audio commentary from both BBC Radio 5 Live, and BBC Radio 5 Live Sports Extra. All these channels are served from TVHeadend over HTTP. The result should then be output over multicast (which TV Headend then subscribes too) allowing XBMC to view a "fake" tv channel which includes the video from RTL and the BBC Radio 5 commentary.
When viewing the fake channel I would then use XBMC to switch between the audio streams (i.e. German/RTL, BBC R5L, BBC R5LSX) and adjust the audio delay (the audio is always ahead of the video handily!). Ideally I would be able to label the audio outputs or specify what language they are (e.g. I could say that R5L is English and R5LSX is French meaning (with the original audio continuing to identify itself as German) I can tell which feed is which) but this is less important.
The following batch file outputs the video and original audio from RTL and (via TV Headend) I can view it in XBMC however the additional audio streams are not available. I've tried various things but without knowing the correct terminology it's hard to find one that works.
Code: Select all
set vlc="c:\Program Files\VideoLAN\VLC\vlc.exe"
rem RTL Video (and German audio) URL
set rtl="http://192.168.6.61:9981/playlist/channelid/593"
rem BBC Radio 5 Live Audio Stream
set bbc5lname="BBC Radio 5 Live"
set bbc5l="http://192.168.6.61:9981/playlist/channelid/61"
rem BBC Radio 5 Live Sports Extra Audio Stream
set bbc5lxname="BBC R 5 Live Sports Xtra"
set bbc5lx="http://192.168.6.61:9981/playlist/channelid/62"
set multicastdest=udp:239.255.12.42:1234
%vlc% %rtl% %bbc5l% %bbc5lx% --sout "#gather:std{access=http,mux=ts,dst=%multicastdest%}" --sout %multicastdest% --ttl 12