Re: Bad TS from dvb-t recording?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Torbjörn Lundquist wrote:
Hmm. So this should do it:
dvbstream -f 522000 -o -tm 8 0 1248 1249 5180 > recordings/test.ts But VLC does not play that file (mplayer does). I tried to add almost all pids in the stream but with no luck with VLC. Here are the pids I got from dvbsnoop:

This is how I do it. I created a channels.conf with scan. A line from it looks like this:

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

The last three numbers are video, audio and PMT.

The following very very ugly script takes two arguments, the path to the channels.conf and the channel name, and starts dvbstream:

---snip---
#!/usr/bin/php -q
<?php

exec("/bin/grep ".$argv[2]." ".$argv[1], $input);

$exploded = explode(":", $input[0]);

$foo = exec("/usr/bin/dvbstream -udp -net 192.168.23.2:1234 -f ".$exploded[1]." 0 ".$exploded[10]." ".$exploded[11]." ".$exploded[12]);

?>
---snip---

With this I can watch TV in VLC on my workstation by doing:

watch-tv.php /home/fnord/.tzap/channels.conf SVT24

..and going to Open Network Stream in VLC and clicking OK.

Hope it helps.

/fnord


_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux