hi list
finally after some nice kernelcompiling my usbwebcam is working. at least in camstream i recieve the images i want.
but if i use the cam with pdp the xv-window is splitted into two parts a green and a dark green one, no images are visible. but there are no errors on the printout.
what could this be? thx marc
pdp_v4l: opening /dev/video pdp_v4l: cap: name Philips 680 webcam type 1 channels 1 maxw 640 maxh 480 minw 128 minh 96 pdp_v4l: picture: brightness 32768 depth 24 palette 15 pdp_v4l: channel 0 name Webcam type 2 flags 0 pdp_v4l: switched to channel 0 pdp_v4l: buffer size 921600, frames 2, offset 0 460800 pdp_v4l: using VIDEO_PALETTE_YUV420P pdp_v4l: frame 0 0, format 15, width 320, height 240 pdp_v4l: Opened video connection (320x240) pdp_v4l: detected pwc watchdog: signaling pd... pdp_v4l: camera framerate set to 27 fps pdp_ctrack : reallocated buffers pdp_xv: autocreate window pdp_xvideo: grabbed port 103 on adaptor 0
hi list
finally after some nice kernelcompiling my usbwebcam is working. at least in camstream i recieve the images i want.
but if i use the cam with pdp the xv-window is splitted into two parts a green and a dark green one, no images are visible. but there are no errors on the printout.
i don't work on pdp, but i think i know what the problem is. you are most likely seeing an improper display of yuv color-space in an rgb display. pdp might have a color-space conversion object that would convert yuv to rgb and vice versa. a potential source of the problem you are seeing is the webcam reporting the wrong color space or pdp not detecting the right one to use. i don't really know a whole lot about v4l, but i seem to recall it supporting several color-spaces for capture devices.
cgc
what could this be? thx marc
pdp_v4l: opening /dev/video pdp_v4l: cap: name Philips 680 webcam type 1 channels 1 maxw 640 maxh 480 minw 128 minh 96 pdp_v4l: picture: brightness 32768 depth 24 palette 15 pdp_v4l: channel 0 name Webcam type 2 flags 0 pdp_v4l: switched to channel 0 pdp_v4l: buffer size 921600, frames 2, offset 0 460800 pdp_v4l: using VIDEO_PALETTE_YUV420P pdp_v4l: frame 0 0, format 15, width 320, height 240 pdp_v4l: Opened video connection (320x240) pdp_v4l: detected pwc watchdog: signaling pd... pdp_v4l: camera framerate set to 27 fps pdp_ctrack : reallocated buffers pdp_xv: autocreate window pdp_xvideo: grabbed port 103 on adaptor 0
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
hi marc,
as chris explained, this is a problem with colour spaces. pdp_v4l tries 3 capture modes and uses the first one that is reported to work.
i've received reports of similar problems on some bttv cards, where it seems the first format tried does not work properly, but doesn't generate an error either. you can fix this by "cutting a wire" in pdp_v4l.c, until i've found a better workaround.
there is a line:
// goto test;
change it in
goto test;
and recompile. this switches pdp_v4l to rgb capture, which should work. you can also move the "test:" label up one code block so it will try to capture in a packed instead of planar format.
tom
On Sat, 23 Aug 2003, marc_widmer wrote:
hi list
finally after some nice kernelcompiling my usbwebcam is working. at least in camstream i recieve the images i want.
but if i use the cam with pdp the xv-window is splitted into two parts a green and a dark green one, no images are visible. but there are no errors on the printout.
what could this be? thx marc
pdp_v4l: opening /dev/video pdp_v4l: cap: name Philips 680 webcam type 1 channels 1 maxw 640 maxh 480 minw 128 minh 96 pdp_v4l: picture: brightness 32768 depth 24 palette 15 pdp_v4l: channel 0 name Webcam type 2 flags 0 pdp_v4l: switched to channel 0 pdp_v4l: buffer size 921600, frames 2, offset 0 460800 pdp_v4l: using VIDEO_PALETTE_YUV420P pdp_v4l: frame 0 0, format 15, width 320, height 240 pdp_v4l: Opened video connection (320x240) pdp_v4l: detected pwc watchdog: signaling pd... pdp_v4l: camera framerate set to 27 fps pdp_ctrack : reallocated buffers pdp_xv: autocreate window pdp_xvideo: grabbed port 103 on adaptor 0
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
Tom Schouten wrote:
hi marc,
as chris explained, this is a problem with colour spaces. pdp_v4l tries 3 capture modes and uses the first one that is reported to work.
i cannot remember the exact model, but i have bought one of those philips webcams too for an installation and since there was only one single colour-space supported i have written the conversion-routines from yuv420p (i think that was it) to YUV422/RGB(A)/grey (the last of which was very easy ;-)). it should be in the CVS-version of Gem (GemPixUtil.cpp: fromYV12(char*yuvdata); YV12 is the FOURCC-name of yuv420p)
mfg.a.sdr IOhannes