Hi,

> > Kopete should then be fixed :-)
>
> I thought so. ;-)

So do I :-)

> > Seriously, applications which don't support V4L2 properly should be
> > ported. MJPEG decoding is quite easy and has been implemented in lots of
> > places.
> >
> > I had a quick look at Kopete, and fixing V4L2 support wouldn't be that
> > difficult. That's a good candidate for a junior job.
>
> A good candidate for a job would first be some documentation of kopete.
> There are three or four places dealing with webcams. Since having no
> idea how to handle webcams, webstreams or outputs to screen, it took me
> some time to figure out, where to search for the lack of MJPEG-support.
>
> If I'm right, it's kopete-0.12.2/kopete/libkopete/avdevice/, espeacially
> videodevice.cpp, function VideoDevice::GetFrame(). For a first hack,
> here one could read the MJPEG-Frame and put it to some supported format
> (YUV420P or something). There are about ten or twenty other files to be
> fixed.

I had a look on kopete SVN sources and did some tests with my Quickcam Pro 
5000. Actually, it doesn't work at all OotB. With further investigation, I 
found that kopete only supports YUV420P and [RGB|BGR][24|32], where the uvc 
driver only supports YUYV and MJPEG.

With some fiddling, it was very easy to add YUYV in kopete and actually I have 
a patch that works, except that the colors are wrong (almost grayscale, my 
YUYV color decoding code must be wrong). I added hooks for MJPEG, but 
actually I have no MJPEG decoder. If someone can give me an example code for 
MJPEG decoding, I would be glad to release an kopete patch for MJPEG support.

> > > My problem right now is: Is there any program that can simulate a
> > > /dev/video-device? I know of streaming-software streaming to the
> > > internet, but this does not help for use with kopete, does it?
> >
> > As Pierre mentioned, there's a v4l loopback module. I've never played
> > with it, and I don't know how stable/efficient/complete it is.
>
> I found no way of reading my webcam and sending the stream back to the
> loopback-input.

vloopback is V4L1 only. It is not likely to work with linux-uvc.

-a.


_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to