Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-28 Thread Mitar
Hi! On Wed, Oct 27, 2010 at 7:43 PM, Hans de Goede hdego...@redhat.com wrote: Are you sure you cannot make some time for this? Sorry, probably not. At least not in the near future. Mitar -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Janne Grunau
On Wed, Oct 27, 2010 at 11:08:35AM +0200, Hans de Goede wrote: Hi, On 10/27/2010 01:51 AM, Mitar wrote: Hi! On Sun, Oct 24, 2010 at 6:04 PM, Mitarmmi...@gmail.com wrote: Has anybody tried to improve MJPEG support in libv4l? With newer cameras this becomes important. I have made

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Hans de Goede
Hi, On 10/27/2010 12:49 PM, Janne Grunau wrote: snip With using ffmpeg MJPEG decoding it takes my computer on average 43.616 ms to decode the frame what is 0.0087 us per pixel. That is a great improvement, but using ffmpeg in libv4l is not an option for multiple reasons: 1) It is GPL

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Mitar
Hi! On Wed, Oct 27, 2010 at 3:23 PM, Hans de Goede hdego...@redhat.com wrote: If and only if libjpeg-turbo turns out to be much slower this is something to consider. But the first thing to do here is see if we can solve this in a way which is acceptable to all downstream users of libv4l, and

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Mitar
Hi! On Wed, Oct 27, 2010 at 12:49 PM, Janne Grunau j...@jannau.net wrote: While the patch is not the cleanest, there shouldn't be a problem of making ffmpeg mjpeg decoding optional. In which way not the cleanest? I am always searching for ways to improve my further work. So please elaborate.

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Hans de Goede
Hi, On 10/27/2010 03:59 PM, Mitar wrote: Hi! On Wed, Oct 27, 2010 at 3:23 PM, Hans de Goedehdego...@redhat.com wrote: If and only if libjpeg-turbo turns out to be much slower this is something to consider. But the first thing to do here is see if we can solve this in a way which is

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-26 Thread Mitar
Hi! On Sun, Oct 24, 2010 at 6:04 PM, Mitar mmi...@gmail.com wrote: Has anybody tried to improve MJPEG support in libv4l? With newer cameras this becomes important. I have made a patch which makes libv4l uses ffmpeg's avcodec library for MJPEG decoding. Performance improvements are

To slow libv4l MJPEG decoding with HD cameras

2010-10-24 Thread Mitar
Hi! Logitech HD Pro Webcam C910 supports 2592x1944 at 10 FPS MJPEG stream. This is really great but the problem is that libv4l decoding of MJPEG is too slow for real-time on the fly decoding at this framerate. I use 2.6.36-rc6-amd64 and Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz and 0.8.1