'Error decompressing JPEG' in mplayer

1 view
Skip to first unread message

Till Bayer

unread,
Jan 14, 2009, 9:24:02 AM1/14/09
to micr...@googlegroups.com
Hi all!

I have the Medion cam 0c45:624e. It has worked before with older
versions of the driver, but I could not set the gain correctly with
those. That works with the current version (from today), but running
mplayer as described on the how to page, I still get a distorted picture
and a string of errors of this type:

ibv4lconvert: Error decompressing JPEG: fill_nbits error: need 4 more bits

This has been mentioned several times on this list already, but I'm
still not sure how to fix it.


Cheers,

Till

GWater

unread,
Jan 14, 2009, 9:28:29 AM1/14/09
to micr...@googlegroups.com
Till Bayer schrieb:
> --~--~---------~--~----~------------~-------~--~----~
> Lets make microdia webcams plug'n play, (currently plug'n pray)
> To post to this group, send email to micr...@googlegroups.com
> Visit us online https://groups.google.com/group/microdia
> -~----------~----~----~----~------~----~------~--~---
>

Hi Till,

Vasily mentioned that libv4l can drop the broken JPEG frames.

Do you have a patch for that, Vasily? Any chance this patch gets into
libv4l?

GWater

signature.asc

Vasily Khoruzhick

unread,
Jan 14, 2009, 9:48:19 AM1/14/09
to micr...@googlegroups.com
On Wednesday 14 January 2009 16:28:29 GWater wrote:
> Hi Till,
>
> Vasily mentioned that libv4l can drop the broken JPEG frames.
>
> Do you have a patch for that, Vasily? Any chance this patch gets into
> libv4l?
>
> GWater

Mmm, can't remember that I mentioned anything about jpeg+libv4l+broken
frames :)

signature.asc

GWater

unread,
Jan 14, 2009, 9:53:35 AM1/14/09
to micr...@googlegroups.com
Vasily Khoruzhick schrieb:

Oh,
yeah sorry. Brian mentioned that hypothetically such a thing could
implemented.

So no patch yet.

GWater

signature.asc

Till Bayer

unread,
Jan 14, 2009, 10:33:48 AM1/14/09
to micr...@googlegroups.com

Why are there broken frames in the first place? I get about 20 of these
errors per second...


Till

GWater

unread,
Jan 14, 2009, 10:35:31 AM1/14/09
to micr...@googlegroups.com
Till Bayer schrieb:

No living soul among us knows...

GWater


signature.asc

Brian Johnson

unread,
Jan 15, 2009, 12:48:22 AM1/15/09
to micr...@googlegroups.com
Yes its fairly straight forward to patch libv4l to drop jpeg frames
that get an error during the decode step. This is in fact already
being done for the pixart jpeg format. I've attached a patch whcih
should be applied to the latest version of libv4l which will also try
broken frames for the sn9c20x driver. Please test it and let me know
if this fixes the flickering issues.
0001-Drop-bad-jpeg-frames-on-sn9c20x-cameras.patch

Till Bayer

unread,
Jan 15, 2009, 8:17:48 AM1/15/09
to micr...@googlegroups.com
Brian Johnson wrote:
> Yes its fairly straight forward to patch libv4l to drop jpeg frames
> that get an error during the decode step. This is in fact already
> being done for the pixart jpeg format. I've attached a patch whcih
> should be applied to the latest version of libv4l which will also try
> broken frames for the sn9c20x driver. Please test it and let me know
> if this fixes the flickering issues.
>
>
Hi Brian,

it does fix it here. Thanks!


Till

GWater

unread,
Jan 24, 2009, 9:59:58 AM1/24/09
to micr...@googlegroups.com
Brian Johnson schrieb:
> --~--~---------~--~----~------------~-------~--~----~
> Lets make microdia webcams plug'n play, (currently plug'n pray)
> To post to this group, send email to micr...@googlegroups.com
> Visit us online https://groups.google.com/group/microdia
> -~----------~----~----~----~------~----~------~--~---
>
>

I finally got to test this patch.

1. The image is good, no bad frames are shon.

2. The error messages are still there. They are a bit annoying but I'm
not sure if we should suppress them. What do you think?

GWater

signature.asc

Brian Johnson

unread,
Jan 24, 2009, 8:31:50 PM1/24/09
to micr...@googlegroups.com
I don't really have an issue with the error messages so long as my
image isn't flickering. I basiclly just left the behavior when
dropping frames alone and just made it do that for our driver as well
ias when using the pixart jpef format.

GWater

unread,
Jan 25, 2009, 5:34:20 AM1/25/09
to micr...@googlegroups.com
Brian Johnson schrieb:
> --~--~---------~--~----~------------~-------~--~----~
> Lets make microdia webcams plug'n play, (currently plug'n pray)
> To post to this group, send email to micr...@googlegroups.com
> Visit us online https://groups.google.com/group/microdia
> -~----------~----~----~----~------~----~------~--~---
>

OK,
then please submit this to libv4l - a lot of USB1 users will be happy.

GWater

signature.asc
Reply all
Reply to author
Forward
0 new messages