Problems using ToUcam PRO II with 'streamer' and 'xawtv'

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Problems using ToUcam PRO II with 'streamer' and 'xawtv'

Postby kenhall4 » Tue Jul 19, 2005 10:32 pm

I'm having problems getting my ToUcam PRO II webcam to work properly with the 'streamer' and 'xawtv' programs. I'm using Mandrake Community 10.1. I'm wanting to produce video files in AVI format, so I'm trying commands such as

streamer -f rgb24 -r 3 -t 00:00:10 -o test.avi

Of the available options with avi (rgb15, rgb24, mjpeg and jpeg) only jpeg works. With the other options I get output (using the -d option) such as:

streamer -d -f rgb24 -r 3 -t 00:00:10 -o test.avi
checking writer files [multiple image files] ...
video name=ppm ext=ppm: ext mismatch [need avi]
video name=pgm ext=pgm: ext mismatch [need avi]
video name=jpeg ext=jpeg: ext mismatch [need avi]
checking writer raw [single file, raw video data] ...
video name=rgb ext=raw: ext mismatch [need avi]
video name=gray ext=raw: ext mismatch [need avi]
video name=422 ext=raw: ext mismatch [need avi]
video name=422p ext=raw: ext mismatch [need avi]
video name=4mpeg ext=yuv: ext mismatch [need avi]
video name=4mpeg-o ext=yuv: ext mismatch [need avi]
checking writer avi [Microsoft AVI (RIFF) format] ...
video name=rgb15 ext=avi: name mismatch [need rgb24]
video name=rgb24 ext=avi: OK
avi / video: 24 bit TrueColor (LE: bgr) / audio: none
vid-open: trying: v4l2-old...
vid-open: failed: v4l2-old
vid-open: trying: v4l2...
v4l2: open
v4l2: device info:
pwc 10.0.7 / Philips 740 webcam @ usb-0000:00:03.1-2
vid-open: ok: v4l2
movie_init_writer start
setformat: 24 bit TrueColor (LE: bgr) (320x240): failed
setformat: 24 bit TrueColor (BE: rgb) (320x240): failed
setformat: 32 bit TrueColor (BE: -rgb) (320x240): failed
no way to get: 320x240 24 bit TrueColor (LE: bgr)
movie writer initialisation failed
v4l2: close

With the successful jpeg option I get:

streamer -d -f jpeg -r 3 -t 00:00:10 -o test.avi
checking writer files [multiple image files] ...
video name=ppm ext=ppm: ext mismatch [need avi]
video name=pgm ext=pgm: ext mismatch [need avi]
video name=jpeg ext=jpeg: ext mismatch [need avi]
checking writer raw [single file, raw video data] ...
video name=rgb ext=raw: ext mismatch [need avi]
video name=gray ext=raw: ext mismatch [need avi]
video name=422 ext=raw: ext mismatch [need avi]
video name=422p ext=raw: ext mismatch [need avi]
video name=4mpeg ext=yuv: ext mismatch [need avi]
video name=4mpeg-o ext=yuv: ext mismatch [need avi]
checking writer avi [Microsoft AVI (RIFF) format] ...
video name=rgb15 ext=avi: name mismatch [need jpeg]
video name=rgb24 ext=avi: name mismatch [need jpeg]
video name=mjpeg ext=avi: name mismatch [need jpeg]
video name=jpeg ext=avi: OK
avi / video: JPEG (JFIF) / audio: none
vid-open: trying: v4l2-old...
vid-open: failed: v4l2-old
vid-open: trying: v4l2...
v4l2: open
v4l2: device info:
pwc 10.0.7 / Philips 740 webcam @ usb-0000:00:03.1-2
vid-open: ok: v4l2
movie_init_writer start
setformat: JPEG (JFIF) (320x240): failed
v4l2: new capture params (320x240, YU12, 115200 byte)
setformat: 12 bit YUV 4:2:0 (planar) (320x240): ok
v4l2: new capture params (320x240, YU12, 115200 byte)
writer_video_thread start [pid=6828]
convert_thread start [pid=6828]
convert-in : 320x240 12 bit YUV 4:2:0 (planar) (size=115200)
convert-out: 320x240 JPEG (JFIF) (size=230400)
movie_init_writer end (h=0x806cd80)
movie_writer_start
v4l2: buf 0: video-cap 0x0+460800, used 460800
v4l2: buf 1: video-cap 0x71000+460800, used 460800
v4l2: start ts=1121809989029003000
v4l2: waiting for a free buffer, a/v: -0.00s [0]
movie_writer_stop/r: -0.00s [0], a/v: -0.00s [0]
fifo conv: EOF 1/1
fifo video: EOF 1/1
convert_thread done [pid=6828]
writer_video_thread done
v4l2: buf 0: video-cap 0x0+460800, used 460800
v4l2: buf 1: video-cap 0x71000+460800, used 460800
v4l2: closell: audio 0/0, video 1/16, convert 2/16

What's going wrong here?

I also can't get xawtv to work. I get:

xawtv
This is xawtv-3.93, running on Linux/i686 (2.6.8.1-25mdksmp)
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
ioctl: VIDIOC_G_STD(std=0x403331a040333000 [NTSC_M,NTSC_M_JP,SECAM_B,SECAM_D,SECAM_K,SECAM_K1,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)]): Invalid argument
ioctl: VIDIOC_S_CTRL(id=9963778;value=0): Invalid argument
ioctl: VIDIOC_S_CTRL(id=9963776;value=57): Invalid argument
ioctl: VIDIOC_S_CTRL(id=9963777;value=30): Invalid argument
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
v4l2: oops: select timeout

and the xawtv window is all black (the red light comes on at the top of the webcam). This also has a tendency to jam up my system, requiring a reboot.

I originally used the driver supplied with Mandrake, then I added the pwc patch from http://www.saillard.org/linux/pwc/patches, but this hardly made any difference (the debug output from streamer was rather less verbose and v4l was now v4l2).

Any help would be gratefully received.

Ken
kenhall4
 
Posts: 12
Joined: Tue Jul 19, 2005 9:58 pm
Location: Warrington, UK

Return to Help!

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest