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

Torbjörn Lundquist torbjorn.lundquist at googlemail.com
Mon Mar 12 08:59:37 CET 2007


Thanks Fnord, not _so_ ugly script! Seen worse. I have two questions:

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.

2. How do you do recordings? Are you recording the complete MUX and then
streaming one program?

Cheers
/Torbjörn


2007/3/10, Mattias Bergsten <fnord at fnord.nu>:
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20070312/976c0823/attachment.htm


More information about the linux-dvb mailing list