[vdr] ERROR (dvbdevice.c,658): Ungültiger Dateideskriptor with mplayer and vs.h=240 when ask for get eVideoSystem (was [ANNOUNCE] VDR developer version 1.3.34)

Frank dac440 at gmx.net
Sat Nov 5 00:45:37 CET 2005


----- Original Message ----- 
From: "Klaus Schmidinger" <Klaus.Schmidinger at cadsoft.de>
To: <vdr at linuxtv.org>
Sent: Friday, November 04, 2005 4:24 PM
Subject: Re: [vdr] [ANNOUNCE] VDR developer version 1.3.34


> Frank wrote:
> > Hello Klaus,
> >
> > i have a problem with mplayer, when playing with vs.h == 240, and vdr.
> > If i want get eVideoSystem cDvbDevice::GetVideoSystem(void) defined in
> > device.h (with a call "cDevice::PrimaryDevice()->GetVideoSystem()" in
> > plugin) from vdr it returns vsPAL
> > with writing an error in dvbdevice.h in logfile.
> >
> > If plugin calls the driver direct it get the correct result, do you
know,
> > why the call to vdr will fail?
>
> I just tested this here and didn't get an error message.
>
> What error message do you actually get?

Hello Klaus,

thanks for the answer.

With following lines (only for test and with plain vdr 1.3.35):

  bool NTSC = false;
  isyslog("skinelchi: ask for NTSC and OSD");
  if (cDevice::PrimaryDevice()->GetVideoSystem() == vsNTSC)
    NTSC = true;
  isyslog("skinelchi: %s", NTSC ? "NTSC" : "PAL");
  bool PAL = false;
  if (cDevice::PrimaryDevice()->GetVideoSystem() == vsPAL)
    PAL = true;
  isyslog("skinelchi: %s", PAL ? "PAL" : "NTSC");
  if (fd_video >= 0) {
/*  fd_video is set before with this:
    char *dev = NULL;
    asprintf(&dev, DEV_DVB_VIDEO, cDevice::PrimaryDevice()->CardIndex(), 0);
    fd_video = open(dev, O_RDONLY | O_NONBLOCK);
    oldbm = NULL;
    free(dev);*/
    if (ioctl(fd_video, VIDEO_GET_SIZE, &vs) == 0) {
        if (vs.h == 480 || vs.h == 240)
     PAL = false;
 }
    }
  isyslog("skinelchi: %s", PAL ? "PAL" : "NTSC");

i get the following lines after messages from mplayer in user.log

Nov  5 00:04:47 vdr logger: *** Starting mplayer.sh Version 0.8.4
Nov  5 00:04:47 vdr logger: *** DEBUG: Variable CFGFIL has value
"/etc/vdr/plugins/vdrmplayer.sh.conf"
Nov  5 00:04:47 vdr logger: *** Use Option USERDEF at your own risk!
Nov  5 00:04:48 vdr logger: *** INFO: Source Video has Resolution of 352 x
240 ...
Nov  5 00:04:48 vdr logger: *** INFO: For Sqare Pixels we would scale to 320
x 218 ...
Nov  5 00:04:51 vdr vdr[5139]: skinelchi: ask for NTSC
Nov  5 00:04:51 vdr vdr[5139]: ERROR (dvbdevice.c,658): Ungültiger
Dateideskriptor
Nov  5 00:04:51 vdr vdr[5139]: skinelchi: PAL
Nov  5 00:04:51 vdr vdr[5139]: ERROR (dvbdevice.c,658): Ungültiger
Dateideskriptor
Nov  5 00:04:51 vdr vdr[5139]: skinelchi: PAL
Nov  5 00:04:51 vdr vdr[5139]: skinelchi: NTSC

looks like the filedescriptor "fd_video" will not be valid, but with vs.h =
480 and if i ask the driver for myself it works.

Frank




More information about the vdr mailing list