[MPlayer-users] failure to use dvb://xxxx with DVB-S card
Nico
nsabbi at tiscali.it
Tue Feb 24 17:22:35 CET 2004
Hans Werschner wrote:
> Hi,
>
> I tried to use the 1.0pre3 and the CVS 20040223 version of mplayer to
> do a "mplayer dvb://ARD" tune in (in Germany)
> and constantly get a timeout for the tune trial. dvbstream is working
> fine and szap also.
>
> I have scanned the sources and discover that dvbin.c / dvb_tune.c are
> based on code of dvbstream. The source there
> in versions 0.4 and 0.5 both are using an initialized variable specInv
> (=INVERSION_AUTO) value when calling tune_it
> resp dvb_tune ind dvb_tune.c. This is OK for non DVB-S as this field
> gets a proper value but DVB-S does not set a value in dvbin.c as
> channel->inv is not set for DVB-S.
>
> When I follow the processing in dvb_tune.c, I find that the parameter
> is assigned "feparams.inversion=specInv;" also for DVB-S cards but
> must have an undefined value at this point. At least I am unsure that
> INVERSION_AUTO is the default.
>
> Can you verify my findings?
> Regards,
> Hans
>
OOps, you are right about the specInv field: in dvbin.c dvb_get_channels
should read
else //SATELLITE
{
fields = sscanf(line, sat_conf,
&ptr->name, &ptr->freq, &ptr->pol, &ptr->diseqc, &ptr->srate, &ptr->vpid, &ptr->apid1,
&ptr->tpid, &ptr->ca, &ptr->progid);
ptr->pol = toupper(ptr->pol);
ptr->freq *= 1000UL;
ptr->srate *= 1000UL;
ptr->tone = -1;
+++ ptr->inv = INVERSION_AUTO;
mp_msg(MSGT_DEMUX, MSGL_V,
"NUM: %d, NUM_FIELDS: %d, NAME: %s, FREQ: %d, SRATE: %d, POL: %c, DISEQC: %d, TONE: %d, VPID: %d, APID1: %d, APID2: %d, TPID: %d, PROGID: %d\n",
list->NUM_CHANNELS, fields, ptr->name, ptr->freq, ptr->srate, ptr->pol, ptr->diseqc, ptr->tone, ptr->vpid, ptr->apid1, ptr->apid2, ptr->tpid, ptr->progid);
}
I'll post a patch tonight.
Nico
More information about the MPlayer-users
mailing list