public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Sietse Achterop <s.achterop@rug.nl>
To: linux-media@vger.kernel.org
Subject: xawtv and v4lctl with usbvision  kernel driver
Date: Mon, 16 Nov 2009 16:01:11 +0100	[thread overview]
Message-ID: <4B016937.7010906@rug.nl> (raw)

    Dear all,

Context:
 debian/lenny with usb frame grabber:
     Zoran Co. Personal Media Division (Nogatech) Hauppauge WinTV Pro (PAL/SECAM)
 This uses the usbvision driver.

The problem is that while xawtv works OK with color, v4lctl ONLY shows the frames
in black-and-white.

I understood that the usbvision driver needs some attention, e.g. a command like
"v4lctl setinput 2" is not working, it will keep using setting 0.
Because I need 2 (S-video) I patched the driver to always use 2 by setting
channel=2 in "usbvision_muxsel" to permanently select that channel.
With that usbvision module loaded I am getting pictures, but in BLACK_AND_WHITE,
as mentioned.

When starting "xawtv", it works fine!

With a simple opencv application I do an
	CvCapture* capture = cvCaptureFromCAM( cnum );
                 ...
	cam = (CvCaptureCAM_V4L*)capture;
                 ...
        ioctl(cam->deviceHandle,VIDIOC_G_FMT,&format))
                 ...
and find that the format is YV12, but the picture is black-and-white.
But YV12 is a color format.

The question is, how to get proper color pictures when using v4lctl or other
simple applications with this driver.

  Thanks in advance,
    Sietse Achterop


             reply	other threads:[~2009-11-16 15:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-16 15:01 Sietse Achterop [this message]
2009-11-16 15:52 ` xawtv and v4lctl with usbvision kernel driver Devin Heitmueller
2009-11-17 11:06   ` Sietse Achterop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B016937.7010906@rug.nl \
    --to=s.achterop@rug.nl \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox