<br><br><div><span class="gmail_quote">On 11/5/07, <b class="gmail_sendername">Sam Hadley-Jones</b> <<a href="mailto:sam@samborambo.ws">sam@samborambo.ws</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> Date: Sat, 3 Nov 2007 17:50:29 +1300 (NZDT)<br>> From: "Steven Ellis" <<a href="mailto:steven@openmedia.co.nz">steven@openmedia.co.nz</a>><br>> Subject: [mythtvnz] VLC, DVB and Freebox<br>> To:
<a href="mailto:mythtvnz@lists.linuxnut.co.nz">mythtvnz@lists.linuxnut.co.nz</a><br>> Message-ID:<br>> <<a href="mailto:32954.192.168.0.254.1194065429.squirrel@webmail.stevencherie.homelinux.net">32954.192.168.0.254.1194065429.squirrel@webmail.stevencherie.homelinux.net
</a>><br>><br>> Content-Type: text/plain;charset=iso-8859-1<br>><br>> Ok the aim is to be able to record from all of the freeview channels at<br>> the same time via the mythtv freebox plugin. This is an interim solution
<br>> until we get working multirec support in the stable tree.<br>><br>> I'm working off 0.20.1 + fixes so the freebox support only allows for rtsp<br>> streams hence the slightly more complicated solution. Hopefully someone on
<br>> list can work out a way to do this a bit better.<br>><br>> Part 1 - Extract DVB streams using VLC and pass as UDP Unicast streams to<br>> localhost.<br>><br>> Tried multicast here but it hosed my wireless connection big time. The
<br>> following provided me with three UDP streams over UDP.<br>><br>> vlc -v --color --ttl 12 --ts-es-id-pid --programs=1025,1035,1036,1904 dvb: \<br>> --dvb-frequency=12483000 --dvb-srate=22500000 --dvb-voltage=18 \
<br>> --sout-standard-access=udp --sout-standard-mux=ts --sout \<br>> '#duplicate{dst=std{access=udp,dst=<a href="http://127.0.0.1:5556">127.0.0.1:5556</a>,sap,name="MaoriTV"},select="program=1025",dst=std{access=udp,dst=
<a href="http://127.0.0.1:5557">127.0.0.1:5557</a>,sap,name="TVNZ6"},select="program=1904",dst=std{access=udp,dst=<a href="http://127.0.0.1:5558">127.0.0.1:5558</a>,sap,name="TVONE"},select="program=1035"}'
<br>><br>> These can be tested with VLC by typing<br>><br>> vlc udp://@:5556<br>><br>> Part 2 - Provide the UDP streams as rtsp streams via a second instance of VLC<br>><br>> This is the annoying bit. Can't work out how to get a single VLC instance
<br>> to control both sets of streams. First I create a file called vlm.udp.conf<br>> containing<br>><br>> new maori vod enabled<br>> setup maori mux mp2t<br>> setup maori input udp://@:5556<br>><br>> new tvnz6 vod enabled
<br>> setup tvnz6 mux mp2t<br>> setup tvnz6 input udp://@:5557<br>><br>> new tvone vod enabled<br>> setup tvone mux mp2t<br>> setup tvone input udp://@:5558<br>><br>> And then start vlc as follows<br>
><br>> vlc --ttl 12 -v --vlm-conf vlm.udp.conf --rtsp-host <a href="http://0.0.0.0:5555">0.0.0.0:5555</a><br>><br>> Now I can connect to this host from anywhere on the network using VLC to<br>> grap an RTSP stream
<br>><br>> vlc rtsp://mythtest:5555/maori<br>> vlc rtsp://mythtest:5555/tvone<br>><br>> >From this I can now setup a freebox channel list.<br>><br>> So first up - has anyone else tried this, and how well does it work for you?
<br>><br>> Secondly anyone played with VLC enought to find a way to just use a single<br>> instance.<br>><br>> Thirdly - An ideal VLC solution would be to use the duplicate stream<br>> features within a VLM config, but that doesn't appear to be possible.
<br>><br>> Steve<br>><br>> --------------------------------------------<br>> Steven Ellis - Technical Director<br>> OpenMedia Limited - The Home of myPVR<br>> email - <a href="mailto:steven@openmedia.co.nz">
steven@openmedia.co.nz</a><br>> sales - <a href="mailto:sales@openmedia.co.nz">sales@openmedia.co.nz</a><br>> support - <a href="mailto:support@openmedia.co.nz">support@openmedia.co.nz</a><br>> website - <a href="http://www.openmedia.co.nz">
http://www.openmedia.co.nz</a><br><br>Steve,<br><br>I had this working a few weeks ago. VLC worked well in one instance with<br>both transports but I didn't go as far as setting up mythtv with the m3u<br>playlist. The reason I didn't pursue it was that, with VLC running and
<br>no one connected, the CPU usage was at 15% each on a AMD64 Dual Core<br>4000+. However, usage didn't increase no matter how many clients I had<br>connected. Here's my config file (note that the LNB voltage is wrong -
<br>still haven't bothered getting up on the roof and changing the LNB<br>polarity!):<br><br>new TVNZ broadcast enabled<br><br>setup TVNZ input "dvb://"<br>setup TVNZ option dvb-adapter=0<br>setup TVNZ option dvb-frequency=1183000
<br>setup TVNZ option dvb-voltage=13<br>setup TVNZ option dvb-srate=22500000<br>setup TVNZ option programs=1035,1036,1025,1903,1904<br>setup TVNZ option ts-es-id-pid<br>setup TVNZ mux mp2t<br><br>setup TVNZ output<br>#duplicate{dst=standard{access=udp,mux=ts,url=localhost:1231,sap,group="Freeview",name="TVONE"},select="program=1035",dst=standard{access=udp,mux=ts,url=localhost:1232,sap,group="Freeview",name="TVTWO"},select="program=1036",dst=standard{access=udp,mux=ts,url=localhost:1233,sap,group="Freeview",name="MAORI"},select="program=1025",dst=standard{access=udp,mux=ts,url=localhost:1234,sap,group="Freeview",name="TVNZSE"},select="program=1903",dst=standard{access=udp,mux=ts,url=localhost:1235,sap,group="Freeview",name="TVNZ6"},select="program=1904"}
<br><br>new Canwest broadcast enabled<br><br>setup Canwest input "dvb://"<br>setup Canwest option dvb-adapter=1<br>setup Canwest option dvb-frequency=1156000<br>setup Canwest option dvb-voltage=13<br>setup Canwest option dvb-srate=22500000
<br>setup Canwest option programs=1920,1921,1929,1930<br>setup Canwest option ts-es-id-pid<br>setup Canwest mux mp2t<br><br>setup Canwest output<br>#duplicate{dst=standard{access=udp,mux=ts,url=localhost:1236,sap,group="Freeview",name="TV3"},select="program=1920",dst=standard{access=udp,mux=ts,url=localhost:1237,sap,group="Freeview",name="C4"},select="program=1921",dst=standard{access=udp,mux=ts,url=localhost:1238,sap,group="Freeview",name="RNZN"},select="program=1929",dst=standard{access=udp,mux=ts,url=localhost:1239,sap,group="Freeview",name="RNZC"},select="program=1930"}
<br><br>control Canwest play<br>control TVNZ play</blockquote><div><br>Ahhh I see you are ouputing to UDP, whereas the current stable myth (with the freebox tuner) wants rtsp. I have had trouble getting vlc to output the dvb stream to rtsp, hence Stephen's double use of vlc.
<br><br>The newer iptv tuner (in trunk) should accept a wider variety of inputs.<br> </div></div>