[gst-devel] v4lsrc (or saa7134 driver) problem.

Rob Kramer robk at starhub.net.sg
Mon Dec 19 06:32:07 CET 2005


Hi all,

I'm trying to use gstreamer to display output from my SAA7134 tuner card. In 
0.8, v4l2src works fine, v4lsrc does not. In 0.10, v4l2src is missing and 
v4lsrc still doesn't work.

What's the status of v4l2src in bad-plugins? Is it deprecated or does it need 
to be revived?

I'm trying to find out what's up with v4lsrc and my device (/dev/video0). It 
seems that the device reports that it is busy after the first round of 
gst_v4lsrc_try_capture(), as seen in the output below. I don't know if the 
device should be busy after VIDIOCSYNC completed successfully. This could be 
a kernel driver issue of course.. Does anyone have an idea?

Cheers,

   Rob


Command:
GST_DEBUG=v4lsrc:5 strace gst-launch-0.10 -v v4lsrc ! sdlvideosink &> out

Snipped output: (don't know how to disable all those terminal control codes)

gettimeofday({1134996634, 799987}, NULL) = 0
write(2, "DEBUG (0x9837230 - 0:00:01.10951"..., 172DEBUG (0x9837230 - 
0:00:01.109512000) ^[[00m              v4lsrc^[[00m(^[[333m22694^[[00m) 
^[[00mgstv4lsrc.c(387):gst_v4lsrc_get_caps:<v4lsrc0>^[[00m Checking supported 
palettes
) = 172
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = 0
mmap2(NULL, 3735552, PROT_READ|PROT_WRITE, MAP_SHARED, 17, 0) = 0xb6f73000
ioctl(17, VIDIOCMCAPTURE, 0xbf817e04)   = 0
ioctl(17, VIDIOCSYNC, 0xbf817e14)       = 0
munmap(0xb6f73000, 3735552)             = 0
gettimeofday({1134996634, 837051}, NULL) = 0
write(2, "DEBUG (0x9837230 - 0:00:01.14657"..., 199DEBUG (0x9837230 - 
0:00:01.146576000) ^[[00m              v4lsrc^[[00m(^[[333m22694^[[00m) 
^[[00mgstv4lsrc.c(393):gst_v4lsrc_get_caps:<v4lsrc0>^[[00m Added palette 7 
(YUV-4:2:2 (packed)) to supported list
) = 199
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = -1 EBUSY (Device or resource busy)    
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = -1 EBUSY (Device or resource busy)    
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = -1 EBUSY (Device or resource busy)    
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = -1 EBUSY (Device or resource busy)    
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = -1 EBUSY (Device or resource busy)    
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = -1 EBUSY (Device or resource busy)    
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = -1 EBUSY (Device or resource busy)    
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = -1 EBUSY (Device or resource busy)    
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = -1 EBUSY (Device or resource busy)    
ioctl(17, VIDIOCGMBUF, 0xbf817d7c)      = -1 EBUSY (Device or resource busy)    
gettimeofday({1134996634, 839079}, NULL) = 0                                    
write(2, "DEBUG (0x9837230 - 0:00:01.14860"..., 167DEBUG (0x9837230 - 
0:00:01.148604000) ^[[00m              v4lsrc^[[00m(^[[333m22694^[[00m) 
^[[00mgstv4lsrc.c(398):gst_v4lsrc_get_caps:<v4lsrc0>^[[00m 1 palette(s) 
supported                 ) = 167                                                                         


-- 
I explode like a bomb. No-one is spared. 
My power is my mass times the speed of light squared.

    - MC Hawking




More information about the gstreamer-devel mailing list