<div>Thanks Fnord, not _so_ ugly script! Seen worse. I have two questions:</div>
<div> </div>
<div>1. What version of dvbstream do you use and where ? I run 0.5 but cannot find any newer. But I see that your options are not supported by my version.</div>
<div> </div>
<div>2. How do you do recordings? Are you recording the complete MUX and then streaming one program?</div>
<div> </div>
<div>Cheers</div>
<div>/Torbjörn<br><br> </div>
<div><span class="gmail_quote">2007/3/10, Mattias Bergsten <<a href="mailto:fnord@fnord.nu">fnord@fnord.nu</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Torbjörn Lundquist wrote:<br>> Hmm. So this should do it:<br>><br>> dvbstream -f 522000 -o -tm 8 0 1248 1249 5180 > recordings/test.ts
<br>><br>> But VLC does not play that file (mplayer does). I tried to add almost<br>> all pids in the stream but with no luck with VLC.<br>><br>> Here are the pids I got from dvbsnoop:<br><br>This is how I do it. I created a
channels.conf with scan. A line from it<br>looks like this:<br><br>SVT24:626000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:1249:1248:5200<br><br>The last three numbers are video, audio and PMT.
<br><br>The following very very ugly script takes two arguments, the path to the<br>channels.conf and the channel name, and starts dvbstream:<br><br>---snip---<br>#!/usr/bin/php -q<br><?php<br><br>exec("/bin/grep ".$argv[2]." ".$argv[1], $input);
<br><br>$exploded = explode(":", $input[0]);<br><br>$foo = exec("/usr/bin/dvbstream -udp -net <a href="http://192.168.23.2:1234">192.168.23.2:1234</a> -f<br>".$exploded[1]." 0 ".$exploded[10]." ".$exploded[11]." ".$exploded[12]);
<br><br>?><br>---snip---<br><br>With this I can watch TV in VLC on my workstation by doing:<br><br>watch-tv.php /home/fnord/.tzap/channels.conf SVT24<br><br>..and going to Open Network Stream in VLC and clicking OK.<br>
<br>Hope it helps.<br><br>/fnord<br><br></blockquote></div><br>