[linux-dvb] Bad TS from dvb-t recording?
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:
exec("/bin/grep ".$argv." ".$argv, $input);
$exploded = explode(":", $input);
$foo = exec("/usr/bin/dvbstream -udp -net 192.168.23.2:1234 -f
".$exploded." 0 ".$exploded." ".$exploded." ".$exploded);
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