halm | 6 Oct 2010 19:56
Picon

Acquiring / accessing video data

The usual v4l list newbie apologies: first time posting here, new to V4L(2),
sorry if this is
too obvious a question or the wrong forum.

I'm writing an app for Arago Linux running on a TI OMAP "evm" evaluation
board.  I didn't create
this system, but V4L2 seems to be there just fine.

I downloaded and built the capture example (
http://v4l2spec.bytesex.org/spec/capture-example.html).  I
added code to init_device() to initialize my particular camera (it's
listening via I2C for configuration settings),
and can run it no problem.  I'm certain that the camera is running since
after my I2C setup I can use an
oscilloscope and see sync and video.

The process_image() function simply prints '.' for every frame.  I wanted to
verify that image data
is really accessible and so I've added the following code to
process_image():

static void process_image( const void * p, size_t len )

{

#ifdef WAS_THIS

  fputc ('.', stdout);

#else //WAS_THIS
(Continue reading)

Raul Almeida | 9 Oct 2010 01:26
Picon

Add support to TW800X Capture Card

Hello folks,

I'm trying to add support to a card that is sold in Brazil as TopWay TW800x.
It has four Conexant 878A chips to provide 16 channels of video.
It don't has radio tuner and can't capture tv.
The only card id that partly works is card=131.
It partly works because I can see only one camera on all channels.
I already turned multi buffer off but it just can not capture other
channels.
I used both BtSpy and RegSpy to look for gpio_out_en, gpio_out_data and
other values but i don't really know the next step.
If anyone can help me I'll be glad.

If anyone has some sort of guide please send me.

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

Victor Gaspar Martin | 12 Oct 2010 23:28
Picon

VIDIOC_QBUF error 22, Invalid argument

Hi all!

this is my first post in this mailing list so I hope I'm not asking in the
wrong place.

I had an application based on this code:
  http://libv4l2cam.googlecode.com/svn/trunk/v4l2stereo/libcam.cpp
working fine without problems, but since I updated my Ubuntu to the 10.04 (I
suppose this is somehow related) it began to crash randomly with the
following error:
  VIDIOC_QBUF error 22, Invalid argument

I traced the error and it happens in the method Camera::Get() when using
IO_METHOD_MMAP in the following lines:
    if (-1 == xioctl(fd, VIDIOC_QBUF, &buf))
        errno_exit("VIDIOC_QBUF");
so when I try to read a frame from the camera.

Any hint of what could be going wrong?

Thank you very much.
Best regards,

--

-- 
VĂ­ctor Gaspar
------------------------------------------------------------------------------------------------------------------
Please consider your environmental responsibilities before printing this
email.
--
video4linux-list mailing list
(Continue reading)

Raul Almeida | 14 Oct 2010 00:14
Picon

Add support to TW800X Capture Card

I'll post some more info.
The chipsets are 4 conexant fusion 878A.
As far as I research I need to figure out a way to switch channels by
defining a custom xxx_muxsel function.
I collected some data from regspy..

Note that I have 2 boards connected to my system.

GPIO_DATA
CARD0
00335FF8|00335FF9|00335FFA|00335FFB
CARD1
00738FFC|00738FFD|00738FFE|00738FFF
CARD2
008F8FF8|008F8FF9|008F8FFA|008F8FFB
CARD3
00CF0FFC|00CF0FFD|00CF0FFE|00CF0FFF
CARD4
000F8FF8|000F8FF9|000F8FFA|000F8FFB
CARD5
004F0FFC|004F0FFD|004F0FFE|004F0FFF
CARD6
00B30FFC|00B30FFD|00B30FFE|00B30FFF
CARD7
00F30FF8|00F30FF9|00F30FFA|00F30FFB

INT_MASK
00000800

GPIO_DMA_CTL
(Continue reading)

Lukas Ruetz | 14 Oct 2010 21:03
Picon
Picon
Gravatar

bttv/bt878 unable to get fluent playback

Hello everyone,

I have a Haupauge Impact capture card (bt878) and the problem that the
playback of the captured PAL-video (no audio) isn't fluent. The video jumps
every few seconds as if there were frames dropped. It occures (or is only
visible) if there is bigger movement in the video. This behaviour is nearly
the same with mplayer, gstreamer and vlc depending on the output type.

First I thought this is maybe a problem of the prop. nvidia driver but there's
no difference to the nv driver.

I've tried the kernels 2.6.28, 2.6.32, 2.6.35 (ubuntu 9.04, 10.04, 10.10)
but it's always the same.

The card itself captures YUV422 - in my tests the players converted to
I420 or YV12

I use a DVD-player as source to ensure that the video is correct.

The PC (Quad-Core, 2GB RAM, Nvidia GF 7300) should not have a problem with
that.

root <at> test:~# uname -a
Linux allegra 2.6.35-22-generic-pae #34-Ubuntu SMP Sun Oct 10 11:03:48 UTC 
2010 i686 GNU/Linux

root <at> test:~# dmesg |grep -E 'bttv|bt87'
[   11.291571] bttv: driver version 0.9.18 loaded
[   11.291574] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   11.291622] bttv: Bt8xx card found (0).
(Continue reading)

Esben Stien | 15 Oct 2010 04:19
Favicon

Re: video loopback device

vasaka <at> gmail.com writes:

> I am an author of http://code.google.com/p/v4l2loopback/

Does this work with recent kernels?. It hasn't been touched for over a
year. Do you intend to maintain this?.

I find it strange that there aren't more cries for such an
application. There are so many v4l2 applications and we all want them to
be gstreamer apps or JACK VIDEO apps, but a bridge to be able to feed
v4l2 applications from gstreamer is so useful.

--

-- 
Esben Stien is b0ef <at> e     s      a             
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef <at>    e     e 
           jid:b0ef <at>     n     n

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

Marlos C. Machado | 15 Oct 2010 21:20
Picon

Camera Configurations

Hello,

I'm developing a game which uses a PSEye (Camera) in Ubuntu. I'm able
to play what the camera captures in the game but the camera is auto
adjusting its gain (V4L2_CID_AUTOGAIN). I don't want this behavior. I
intend to disable AUTOGAIN with v4l2 and get the frames with
gstreamer.

I've programmed this:

if((ret = query_ioctl(hdevice, currentctrl, &queryctrl)) == 0)

but this fails, meaning that "NEXT_CTRL flag not supported". How can I
easily disable autogain?

The code I tried to run is in here: http://gitorious.org/cameractls

Thanks in advance.

--

-- 
Marlos Cholodovskis Machado

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

Rohit Vashist | 18 Oct 2010 13:00

Query regarding V4l2 and VideoBuf buffers

Hi,

I am writing a modules where i have allocated a buffer using kmalloc.I need to pass this buffer to be accessed
by v4l2_driver.
I have my own buffer structure in which i embed my meta data.I want that this buffer to be recognised by v4l2_driver.
Can anyone just tell as to how to corelate this two things?

Thanks a lot

-Regards
 Rohit Vashist

SASKEN BUSINESS DISCLAIMER: This message may contain confidential, proprietary or legally privileged
information. In case you are not the original intended Recipient of the message, you must not, directly or
indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to
delete it and inform the sender. Any views expressed in this message are those of the individual sender
unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance
of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express
intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of
viruses. However the company accepts no liability for any damage caused by any 
 virus transmitted by this email.
Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html

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

Fred Seward | 19 Oct 2010 23:54
Favicon

cx23888 board setup

We have a custom x86 board with:

    - A soldered down cx23888

    - Four composite inputs feeding the cx23888. No tuner.
      We're only looking at the four composite inputs.

    - FC13 with a 2.6.33.4 kernel.

The cx23885 driver loads and I get /dev/video0 but when I try to
cat /dev/video0 I get data but it's not an mpeg file.

Can anyone point me to some documentation which tells how to set
up the cx23885_board board structure and what other
initialization might need to be done?

In the cx23885 driver I modified cx23885-cards.c to add an
entry for our hardware.

struct cx23885_board cx23885_boards[] = {

   [CX23885_BOARD_ECU] = {
       .name       = "custom board",
       .porta      = CX23885_ANALOG_VIDEO,
       .portb      = CX23885_MPEG_ENCODER,
       .clk_freq   = 50000000,
       .input          = {{
           .type   = CX23885_VMUX_COMPOSITE1,
           .vmux   = 0,
       }, {
(Continue reading)

Florian Klink | 23 Oct 2010 14:58
Picon
Gravatar

em28xx: Terratec Grabby no sound

 Hi,

 I recently bought a Terratec Grabby. The device has a S-Video and 3 
 Cinch
 cables (sound left, sound right, video). I want to record some video
 cassettes with it. (with a cinch-scart adapter).

 I checked the signal, there is audio and video on it.

 When I try to "play" the capture device with e.g. mplayer, I see "no
 sound", even with various options.

 I can hear sound only by doing "arecord -D hw:2,0 -r 32000 -c 2 -f 
 S16_LE |
 aplay -", but as soon as mplayer is starting, I can't hear anything
 anymore.

 ...which means that using alsa as the sound device with mplayer doesn't
 work either.

 Am I missing something?

 I checked the source code, Terratec Grabby support was introduced with
 4557af9c5338605c85fe54f5ebba3d4b14a60ab8:

 -----------------------------------------
 diff --git a/drivers/media/video/em28xx/em28xx-cards.c 
 b/drivers/media/video/em28xx/em28xx-cards.c
 index 7cb93fb..b4c78f2 100644
 --- a/drivers/media/video/em28xx/em28xx-cards.c
(Continue reading)


Gmane