Jan Frey | 1 Mar 2008 01:00
Picon

Re: HVR-1300 mpg hw encoding - how to configure the board's firmware?

Hi Ricardo,

On Wednesday 16 January 2008, Ricardo Cerqueira wrote:
> Hi all;
>
> On Wed, 2008-01-16 at 21:43 +0100, Pirlouwi wrote:
> > But, if I don't follow this procedure, and if I simply do point 3.,
> > then I cannot change the frequency of the tuner, and blackbird keeps
> > recording on the old tv frequency.
> >
> >
> >
> > Anyone can help me understand this behavior?
>
> I think it's related to something I found yesterday. It seems the
> cx22702 reset by the blackbird is being a bit to broad and resetting
> more than it should.
>
> Try the following, and see if your behavior goes away:
>
> 1 - clone a clean copy of http://linuxtv.org/hg/~rmcc/blackbird/
> 2 - Comment line 1252 of linux/drivers/media/video/cx88/cx88-blackbird.c
> (cx22702 reset)
> 3 - compile, install, and retry.
>
> I'm still trying to figure this one out, but taking out that reset
> solved the channel-change issue for me.

This patch works fine for me in the context of the same problem.

(Continue reading)

Carl Karsten | 1 Mar 2008 01:18

[patch] vivi: registered as /dev/video%d

Now that vivi can be something other than /dev/video0, it should tell us what it 
  is.  This works for n_devs>1.

sudo modprobe vivi n_devs=3

[115041.616401] vivi: V4L2 device registered as /dev/video0
[115041.616445] vivi: V4L2 device registered as /dev/video1
[115041.616481] vivi: V4L2 device registered as /dev/video2
[115041.616486] Video Technology Magazine Virtual Video Capture Board 
successfully loaded.

Carl K

diff -r 127f67dea087 linux/drivers/media/video/vivi.c
--- a/linux/drivers/media/video/vivi.c  Tue Feb 26 20:43:56 2008 +0000
+++ b/linux/drivers/media/video/vivi.c  Fri Feb 29 18:15:01 2008 -0600
 <at>  <at>  -47,6 +47,8  <at>  <at> 
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
  #include <linux/freezer.h>
  #endif
+
+#define MODULE_NAME "vivi"

  /* Wake up at about 30 fps */
  #define WAKE_NUMERATOR 30
 <at>  <at>  -1338,6 +1340,7  <at>  <at>  static int __init vivi_init(void)
                         video_nr++;

                 dev->vfd = vfd;
+               printk(KERN_INFO "%s: V4L2 device registered as /dev/video%d\n", 
(Continue reading)

Carl Karsten | 1 Mar 2008 08:45

v4l2 api compliance test

I am using my current problem as a reason to improve the overall v4l2 
development process.  So if it seems overkill for my problem, it might be.  But 
before I go putting effort into fixing what is there, I better make sure it 
doesn't already exist somewhere else.

Background on my problem:

I am helping debug a v4l2 driver, which really means report bugs about it.  My 
ultimate goal is to use it with transcode's import_v4l2 module, but that needs 
some work too.

Reporting bugs on the driver is a bit frustrating because we don't have a stable 
test platform.  I thought had found here:
http://www.video4linux.org/browser/v4l2-apps/test/
But after spending the day with those apps, I am not sure how to apply them to 
testing the driver and get useful tests.

I think a README should be in this dir, and mention vivi, the test driver.  it 
is the obvious counterpart for developing tests.  So that is my current focus: 
get a test app that will run against vivi and give expected results.

Here is what I found from the various apps int he test dir:

driver-test doesn't do much.  I am hoping to replace it.

ioctl-test looks pretty good for what it is, but could use a little work on 
making the results easier to understand.

In documenting the tests, something just caused my test box to go to sleep.
[ 2067.460263] vivi/0: [d6cb2180/4] timeout
(Continue reading)

Peter Nabbefeld | 1 Mar 2008 23:00
Picon
Picon

Problems with microdia webcam


Hello!

I'm new to video4linux, and I've got a "0c45:624e Microdia" webcam. I've 
already installed the microdia driver from google newsgroup, /dev/v4l 
and /dev/video0 exist.

I've tried to use camorama, vidcat, xsane. Camorama freezes, vidcat with 
default size says "VIDIOCMCAPTURE: Resource temporarily unavailable". 
Calling vidcat with "vidcat -d /dev/video0 -s 640x480" seems at least to 
wait for picture data, but nothing happens. Xsane does detect my camera, 
but when I try to "scan", it also freezes. Seems, the apps are waiting 
for data, but no data arrives for some reason.

Any ideas?

Kind regards

Peter Nabbefeld

BTW: Are there any Java bindings for V4L? Then I could probably try to 
write my own hacks to find out what happens ...

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request <at> redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

Elvis Chen | 1 Mar 2008 22:33
Picon
Favicon

newbie programming help: grabbing image(s) from /dev/video0, example code?


Greetings,

I'm a researcher in computer-science.  I'm very new to V4L2 but am reasonably proficient in  C++
programming.  I seek your help in getting something simple done, in the meanwhile I'm trying to learn V4L2
programming API (http://v4l2spec.bytesex.org/)

We have 2 Hauppauge WInTV PVR-150 installed on a ubuntu 7.10 x86_64 machine.  They appear to the linux as
/dev/video0 and /dev/video1, respectively.  What we like to do is to capture still images (or video) via
s-video inputs on each card, and perform image-processing algorithms on them (in C++) and display the
resultant images on the screen (C++/OpenGL).  Basically what I want to do is very simple:  open a
linux/video device, capture an image, store it as a C array/buffer, display it, and refresh the C array/buffer.

Both cards work with kdetv and mplayer, so hardware-wise they work fine.

My first attempt was to find a small/simple API to access the linux/video device.  I came across videodog 
(http://linux.softpedia.com/get/Multimedia/Video/VideoDog-9261.shtml) but it looks like it
isn't been developed anymore (no source either).  Currently I'm trying to learn V4L2 (and trying to
utilize the sample capture.c).

Can anyone please give me a pointer on where I should start learning the V4L2 API?  Are there more example
codes available?

any help is very much appreciated,

_________________________________________________________________

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request <at> redhat.com?subject=unsubscribe
(Continue reading)

JoJo jojo | 1 Mar 2008 22:36
Picon

Re: Problems with microdia webcam

Hi Peter

Your webcam is currently not supported by any free kernel driver.

-JoJo

On Sun, Mar 2, 2008 at 3:30 AM, Peter Nabbefeld <Peter.Nabbefeld <at> gmx.de> wrote:
>
>  Hello!
>
>  I'm new to video4linux, and I've got a "0c45:624e Microdia" webcam. I've
>  already installed the microdia driver from google newsgroup, /dev/v4l
>  and /dev/video0 exist.
>
>  I've tried to use camorama, vidcat, xsane. Camorama freezes, vidcat with
>  default size says "VIDIOCMCAPTURE: Resource temporarily unavailable".
>  Calling vidcat with "vidcat -d /dev/video0 -s 640x480" seems at least to
>  wait for picture data, but nothing happens. Xsane does detect my camera,
>  but when I try to "scan", it also freezes. Seems, the apps are waiting
>  for data, but no data arrives for some reason.
>
>  Any ideas?
>
>  Kind regards
>
>  Peter Nabbefeld
>
>
>
>  BTW: Are there any Java bindings for V4L? Then I could probably try to
(Continue reading)

Carl Karsten | 1 Mar 2008 23:21

Re: newbie programming help: grabbing image(s) from /dev/video0, example code?

Elvis Chen wrote:
> Greetings,
> 
> I'm a researcher in computer-science.  I'm very new to V4L2 but am reasonably proficient in  C++
programming.  I seek your help in getting something simple done, in the meanwhile I'm trying to learn V4L2
programming API (http://v4l2spec.bytesex.org/)
> 
> We have 2 Hauppauge WInTV PVR-150 installed on a ubuntu 7.10 x86_64 machine.  They appear to the linux as
/dev/video0 and /dev/video1, respectively.  What we like to do is to capture still images (or video) via
s-video inputs on each card, and perform image-processing algorithms on them (in C++) and display the
resultant images on the screen (C++/OpenGL).  Basically what I want to do is very simple:  open a
linux/video device, capture an image, store it as a C array/buffer, display it, and refresh the C array/buffer.
> 
> Both cards work with kdetv and mplayer, so hardware-wise they work fine.
> 
> My first attempt was to find a small/simple API to access the linux/video device.  I came across videodog 
(http://linux.softpedia.com/get/Multimedia/Video/VideoDog-9261.shtml) but it looks like it
isn't been developed anymore (no source either).  Currently I'm trying to learn V4L2 (and trying to
utilize the sample capture.c).
> 
> 
> Can anyone please give me a pointer on where I should start learning the V4L2 API?  Are there more example
codes available?

http://lwn.net/Articles/203924/

I think the code you need may be in
http://www.video4linux.org/browser/v4l2-apps/test

btw - I am on a campaign to get better tests, so if you are in the mood, use one 
(Continue reading)

Michael Williamson | 1 Mar 2008 23:49
Picon
Favicon

question

Hi,

With CX100 frame grabbers, it is possible to poll the
even/odd video field bit through the ISA bus. 
This is useful to have for cameras with electronic
shutters to make long exposures. Is it possible to do
with v4l2/bt848 PCI devices?

Thanks,
-Mike

      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request <at> redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

Dâniel Fraga | 2 Mar 2008 00:22
X-Face
Picon

When uvcvideo will be merged in the official kernel?

http://linux-uvc.berlios.de/

	I'd like to know if there's a chance that uvcvideo will be
merged in the official kernel... Is there a timeline or something like
that? Thanks.

--

-- 
Linux 2.6.24: Arr Matey! A Hairy Bilge Rat!
http://u-br.net http://www.abusar.org/FELIZ_2008.html
John Petrucci - "Lost Without You" (Suspended Animation)

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request <at> redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

Daniel Glöckner | 2 Mar 2008 00:48
Picon

Re: newbie programming help: grabbing image(s) from /dev/video0, example code?

On Sat, Mar 01, 2008 at 09:33:08PM +0000, Elvis Chen wrote:
> We have 2 Hauppauge WInTV PVR-150 installed on a ubuntu 7.10 x86_64 machine.
> They appear to the linux as /dev/video0 and /dev/video1, respectively.

On this card video0 and video1 are for MPEG captures.
Use video32 and video33 for YUV captures.

The only possible YUV format is 4:2:0 with rearranged bytes.
Read Documentation/video4linux/cx2341x/README.hm12.

> My first attempt was to find a small/simple API to access the linux/video device.

No need to find another API, V4L2 is small enough:

#include <linux/videodev2.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>

static unsigned char image[720*480*3/2];

int main()
{
  struct v4l2_format vf;
  int i=1,fd=open("/dev/video32",O_RDWR);
  ioctl(fd,VIDIOC_S_INPUT,&i);
  memset(&vf,0,sizeof(vf));
  vf.type=V4L2_BUF_TYPE_VIDEO_CAPTURE;
  vf.fmt.pix.width=720;
  vf.fmt.pix.height=480;
(Continue reading)


Gmane