Skip to contentSkip to conversation

About xawtv

DISCUSSION niamathullah sharief 1 participant 1 message Jan 9, 2009 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi michael i am getting this error when i run that command which you gave to me..

sharief@sharief-desktop:~/Desktop/video drivers$ gcc vgrab5.c -Wall -o vgrab5 sharief@sharief-desktop:~/Desktop/video drivers$ ./vgrab5 /dev/video0 > t.pgm ioctl (VIDIOC_S_FMT) failed, 22
VIDIOC_S_FMT: Invalid argument

  what is the error?what to do?

--- On Fri, 9/1/09, Michael Williamson <[email protected]> wrote:
From: Michael Williamson <[email protected]>
Subject: Re: About xawtv
To: [email protected]
Date: Friday, 9 January, 2009, 10:14 PM

Quoted 11 lines · niamathullah sharief

From: niamathullah sharief <[email protected]>
Subject: Re: About xawtv
To: "Michael Williamson" <[email protected]>
Cc: "video4linux list" <[email protected]>
Date: Thursday, January 8, 2009, 9:06 PM
Thanks for your valuable reply...first program is ok...buty what this secand program?and you told thatattached another program, "rover.c", that displays pictures using the
SDL library, which must be installed before compiling.

Quoted 2 lines

what to install before compilation?whether firat program or anything else?

Hi,

The first program, "vgrab5.c", should compile with the command line

   # gcc vgrab5.c -Wall -o vgrab5

Does it? Then, running the program should grab a picture from a video device, "/dev/video0" for example,

   # ./vgrab5 /dev/video0 > t.pgm

and save the picture as a ".pgm" file. You need a display program, like ImageMagicks program "display" to display the picture

    # display t.pgm

or

    # gimp t.pgm

But it is black & white only.

The other program, "rover.c", is for operating a robot. I sent it to you because it has example code for using the SDL library to display the pictures. You can try to compile it, with

   # gcc rover.c -Wall -lSDL -lm -o rover

Does it compile without errors? But even if it does compile, it is unlikely to be useful to you as it is.

-Mike

Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list