[linux-dvb] dvbstream and pid 8192

Christophe Thommeret hftom at free.fr
Thu Oct 5 21:40:30 CEST 2006


Le Jeudi 05 Octobre 2006 21:27, Mario Rossi a écrit :
> I'm trying to save the full TS with my Hauppauge Win TV Nova T USB2.
> I'm using dvbstream and the special pid 8192.
>
> This is the command line
>
> ./dvbstream -f 505833330 -I 2 -qam 16 -cr 3_4 -crlp 3_4 -bw 8 -o:temp.xxx
> 8192
>
> (uk-CrystalPalace dvb-t for BBC)
>
> and the generated file is empty.
> Reading in the mailing list in the last 3/4 months it seems that the
> fimware must support this feature.
>
> But reading the source code it seems to me that there is a problem.
> Basically a map of "pid -> file" is created so to save each pid in the
> right file.
> The problem is that when requesting the pid 8192 the map contains the
> entry 8192 while none of the pid returned by the card is 8192 (the
> opposite would be strange...).
>
> This is the code in the main loop
>
>                 for (j = 0; j < MAX_CHANNELS; j++) {
>                      if (pids_map[i].pids[j] == pid) {
>
> at line 1033 of dvbstream.c.
>
> In the debugger I can see that "pid" gets the values of the actual
> pids present in the stream, while pids_map[i].pids[j] is 8192 or -1.
>
> Has it ever worked for anybody? How? Maybe not saving to a file, but
> specifying another output?
>
> But it is trivial to fix it, one just has to read from the "dvr" and
> write everything to a file, running the line
>
> write("fd for the full stream", buf, TS_SIZE);
>
> in any case.
> At least that creates a file and with mplayer I can pick the pid I want.
>
> What is the best way to achieve it?
> Tuning the right frequency and at the same time copying
> /dev/dvb/adapter0/dvr0 to a specified file?

dvbstream -f ..........................  -o 8192 > stream.ts

-- 
Christophe Thommeret



More information about the linux-dvb mailing list