pwc
[Top] [All Lists]

Re: [pwc] philips toucam fun II and 4fl2

To: Philips Webcam Linux Driver <>
Subject: Re: [pwc] philips toucam fun II and 4fl2
From: Luc Saillard <>
Date: Wed, 8 Jun 2005 17:00:08 +0200
On Wed, Jun 08, 2005 at 05:37:36PM +0300,  wrote:
> On Wed, Jun 08, 2005 at 05:28:24PM +0300,  wrote:
> > $ mplayer -tv driver=v4l2:device=/dev/video1:fps=15:width=640:height=480 
> > tv://
> > MPlayer 1.0pre7-3.4.3 (C) 2000-2005 MPlayer Team
> 
> Here is tail of strace of the same thing.
> 
> open("/dev/video1", O_RDWR|O_LARGEFILE) = 3
> ioctl(3, VIDIOC_QUERYCAP or VT_OPENQRY, 0x86232a4) = 0
> ioctl(3, VIDIOC_G_FMT or VT_SENDSIG, 0x8623358) = 0
> ioctl(3, VIDIOC_G_STD, 0xbfffdff8)      = -1 EINVAL (Invalid argument)
> write(2, "v4l2: ioctl get standard failed:"..., 50v4l2: ioctl get standard 
> failed: Invalid argument
> ) = 50
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> 
> Isn't VIDIOC_G_STD supported by pwc driver, or is Mplayer just really
> messed up and gives a wrong pointer?

No VIDIOC_G_STD is not supported, because if you read the spec at
http://v4l2spec.bytesex.org/spec/vidioc-g-std.html, i can to not implement
this ioctl.

Try this patch to mplayer to avoid the test. Sorry i don't have a computer
with a webcam now.

--- libmpdemux/tvi_v4l2.c.orig  2005-06-08 16:57:38.000000000 +0200
+++ libmpdemux/tvi_v4l2.c       2005-06-08 16:58:35.000000000 +0200
@@ -372,7 +372,7 @@ static int getstd(priv_t *priv)
     if (ioctl(priv->video_fd, VIDIOC_G_STD, &id) < 0) {
        mp_msg(MSGT_TV, MSGL_ERR, "%s: ioctl get standard failed: %s\n",
               info.short_name, strerror(errno));
-       return -1;
+       return 0;
     }
     do {
        priv->standard.index = i++;

Luc
_______________________________________________
pwc mailing list

http://lists.saillard.org/mailman/listinfo/pwc

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU