[linux-dvb] Record a transport stream with an USB2 tv card

John Martin linuxtv at martin-family.org.uk
Sat Jun 24 00:27:11 CEST 2006


Abdou,

Thanks for the changes. What version of dvbstream are these against? I have 
got the 0.5 sources and cannot access www.linuxstb.org for any later versions 
due to DNS errors.

Having rebuilt dvbstream, I get the following problem marked by <=====:

./dvbstream -f 505833330 -o:/home/john/tmp/test.ts 600 601
dvbstream v0.5 - (C) Dave Chapman 2001-2004
Released under the GPL.
Latest version available from http://www.linuxstb.org/
Open file /home/john/tmp/test.ts
Using DVB card "DiBcom 3000P/M-C DVB-T"
tuning DVB-T (in United Kingdom) to -972810928 Hz                    <=====
polling....
Getting frontend event
FE_STATUS:
polling....
FE_STATUS:
polling....
FE_STATUS:
polling....
FE_STATUS:
polling....
FE_STATUS:
polling....
FE_STATUS:
polling....

... and the process can only be stopped with kill -9.

So, I have changed the following line in dvbstream.c

        freq=atoi(argv[i]); // JWRM *1000UL;

and then get:

./dvbstream -f 505833330 -o:/home/john/tmp/test.ts 600 601
dvbstream v0.5 - (C) Dave Chapman 2001-2004
Released under the GPL.
Latest version available from http://www.linuxstb.org/
Open file /home/john/tmp/test.ts
Using DVB card "DiBcom 3000P/M-C DVB-T"
tuning DVB-T (in United Kingdom) to 505833330 Hz
polling....
Getting frontend event
FE_STATUS:
polling....
Getting frontend event
FE_STATUS: FE_HAS_SIGNAL
polling....
FE_STATUS: FE_HAS_SIGNAL
polling....
FE_STATUS: FE_HAS_SIGNAL
polling....

... and so on until kill -9.  Both times, I get a zero-length file.

Any ideas?  Anything to do with having an Athlon 64, perhaps?

John

On Friday 23 June 2006 17:32, Abdou NIANG wrote:
> Here are my changes in dvb_defaults.h
>
> (...)
> /* UNITED KINGDOM settings */
> #define DVB_T_LOCATION		    "in DAEWOO Research Center"
> #define BANDWIDTH_DEFAULT           BANDWIDTH_8_MHZ
> #define HP_CODERATE_DEFAULT         FEC_3_4
> #define LP_CODERATE_DEFAULT         FEC_NONE
> #define CONSTELLATION_DEFAULT       QAM_64
> #define TRANSMISSION_MODE_DEFAULT   TRANSMISSION_MODE_2K
> #define GUARD_INTERVAL_DEFAULT      GUARD_INTERVAL_1_8
> #define HIERARCHY_DEFAULT           HIERARCHY_NONE
> #endif
> (...)
>
> i've modified too one line in tune.c after in the tune_it function:
> (...)
>     case FE_OFDM:
> #ifdef NEWSTRUCT
>       if (freq < 1000000) freq*=1000UL;
>       feparams.frequency=freq;
>       //feparams.inversion=INVERSION_OFF;
>       feparams.inversion=specInv;            //abdou
>       feparams.u.ofdm.bandwidth=bandwidth;
>       feparams.u.ofdm.code_rate_HP=HP_CodeRate;
>       feparams.u.ofdm.constellation=modulation;
>       feparams.u.ofdm.transmission_mode=TransmissionMode;
>       feparams.u.ofdm.guard_interval=guardInterval;
>       feparams.u.ofdm.hierarchy_information=HIERARCHY_DEFAULT;
>
> #else
>       if (freq < 1000000) freq*=1000UL;
>       feparams.Frequency=freq;
>       //feparams.Inversion=INVERSION_OFF;
>       feparams.Inversion=specInv;         //abdou
>       feparams.u.ofdm.bandWidth=bandwidth;
>       feparams.u.ofdm.HP_CodeRate=HP_CodeRate;
>       feparams.u.ofdm.Constellation=modulation;
>       feparams.u.ofdm.TransmissionMode=TransmissionMode;
>       feparams.u.ofdm.guardInterval=guardInterval;
>       feparams.u.ofdm.HierarchyInformation=HIERARCHY_DEFAULT;
> #endif
>       fprintf(stderr,"tuning DVB-T (%s) to %d Hz\n",DVB_T_LOCATION,freq);
>       break;
> (...)
>
> The feparams.Inversion was equel to "INVERSION_OFF" and i give it "specInv"
> which is equal to INVERSION_AUTO
>
> I'm working in DAEWOO research center in france and we got a dvb-t
> transponder at the laboratory
>
> Regards
>
> > Message du 22/06/06 à 23h38
> > De : "John Martin" <linuxtv at martin-family.org.uk>
> > A : abdouniang at voila.fr
> > Copie à : linux-dvb at linuxtv.org
> > Objet : Re: [linux-dvb] Record a transport stream with an USB2 tv card
> >
> > On Thursday 22 June 2006 18:18, Abdou NIANG wrote:
> > >  Hi John
> > > I've done some changes in the dvb_default.h and now when i use the
> > > command
> > >
> > > #dvbstream -f 490000 601 600 611 610 > test.ts
> > >
> > > i got a good test.ts file and i can extract the video and audio pid
> > > using ts2ps
> > >
> > > #cat test.ts | ts2ps 600 601 > BBC1.pes
> > >
> > >
> > > #cat test.ts | ts2ps 610 611 > BBC2.pes
> > >
> > > the 2 .pes files is readable into mplayer or kaffeine
> >
> > Thank you. This is good news.  What did you change in dvb_default.h to
> > achieve this?
> >
> > > but when i use the command
> > >
> > > #dvbstream -f 490000 -o 8192 > test.ts
> > >
> > > my test.ts file isn't empty but it can't be read by mplayer or
> > > kaffeine. I think that the firmware of the Nova-t-USB2 doesn't permit
> > > me to dump the entire transport stream
> > >
> > > i intend to make a script doing:
> > >
> > > ==>scandvb (package dvb-apps) to have a channels.conf file with the
> > > audio and video pids ==>get all the pid and use the command : dvbstream
> > > -f 490000 -o pid1 pid2 ... > test.ts
> > >
> > > i will tell you the results
> >
> > Many thanks.
> >
> > > 2 Rue du Gal Delestraint
> > > 57070 Metz
> >
> > You must have a very impressive antenna system to pick up BBC
> > transmissions from south of Luxembourg!!?
> >
> > John
>
> El Hadji Abdou NIANG
> 2 Rue du Gal Delestraint
> 57070 Metz
> 0387793139



More information about the linux-dvb mailing list