[linux-dvb] Bad TS from dvb-t recording?

Mattias Bergsten fnord at fnord.nu
Sat Mar 10 21:00:27 CET 2007

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:


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:

#!/usr/bin/php -q

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

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

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


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.


More information about the linux-dvb mailing list