* Bugreport for libv4l: error out on webcam: error parsing JPEG header: Bogus jpeg format
@ 2010-07-15 19:30 Yuri
2010-07-19 12:22 ` Hans de Goede
0 siblings, 1 reply; 4+ messages in thread
From: Yuri @ 2010-07-15 19:30 UTC (permalink / raw)
To: linux-media
I use Logitech QuickCam Deluxe on FreeBSD-8.1.
It shows the image for a while but after 20sec-5min it errors out with
the message from libv4l, see below.
Could this be a bug in libv4l or it maybe it should be passed some
tolerance to errors option?
--- log ---
> pwcview -s vga
Webcam set to: 640x480 (vga) at 5 fps
libv4l2: error converting / decoding frame data: v4l-convert: error
parsing JPEG header: Bogus jpeg format
Error reading from webcam: Input/output error
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bugreport for libv4l: error out on webcam: error parsing JPEG header: Bogus jpeg format
2010-07-15 19:30 Bugreport for libv4l: error out on webcam: error parsing JPEG header: Bogus jpeg format Yuri
@ 2010-07-19 12:22 ` Hans de Goede
2010-07-19 16:53 ` Yuri
0 siblings, 1 reply; 4+ messages in thread
From: Hans de Goede @ 2010-07-19 12:22 UTC (permalink / raw)
To: Yuri; +Cc: linux-media
Hi,
On 07/15/2010 09:30 PM, Yuri wrote:
> I use Logitech QuickCam Deluxe on FreeBSD-8.1.
>
> It shows the image for a while but after 20sec-5min it errors out with
> the message from libv4l, see below.
>
> Could this be a bug in libv4l or it maybe it should be passed some
> tolerance to errors option?
>
This is not really a bug in libv4l, but more of a problem with error
tolerance in the application you are using. However many apps don't handle
any kind of errors all that well. So the latest libv4l will retry (get a new
frame) jpeg decompression errors a number of times.
I'll send you a mail with instructions how to install the latest libv4l.
The instructions are tailored for people who have an upside down mounted
webcam in their laptop (as that is what I get the most reports about), but
should work fine for you too :)
Regards,
Hans
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bugreport for libv4l: error out on webcam: error parsing JPEG header: Bogus jpeg format
2010-07-19 12:22 ` Hans de Goede
@ 2010-07-19 16:53 ` Yuri
2010-07-19 22:46 ` Hans de Goede
0 siblings, 1 reply; 4+ messages in thread
From: Yuri @ 2010-07-19 16:53 UTC (permalink / raw)
To: Hans de Goede; +Cc: linux-media
On 07/19/2010 05:22, Hans de Goede wrote:
> This is not really a bug in libv4l, but more of a problem with error
> tolerance in the application you are using. However many apps don't
> handle
> any kind of errors all that well. So the latest libv4l will retry (get
> a new
> frame) jpeg decompression errors a number of times.
You are right, application is quite rough and doesn't have any tolerance.
But why such bad bytes appear in the first place? I think they are sent
by the
camera deliberately to indicate something and Windows driver must be knowing
what do they mean. But libv4l just can't interpret them correctly.
Yuri
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bugreport for libv4l: error out on webcam: error parsing JPEG header: Bogus jpeg format
2010-07-19 16:53 ` Yuri
@ 2010-07-19 22:46 ` Hans de Goede
0 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2010-07-19 22:46 UTC (permalink / raw)
To: Yuri; +Cc: linux-media
Hi,
On 07/19/2010 06:53 PM, Yuri wrote:
> On 07/19/2010 05:22, Hans de Goede wrote:
>> This is not really a bug in libv4l, but more of a problem with error
>> tolerance in the application you are using. However many apps don't
>> handle
>> any kind of errors all that well. So the latest libv4l will retry (get
>> a new
>> frame) jpeg decompression errors a number of times.
>
> You are right, application is quite rough and doesn't have any tolerance.
>
> But why such bad bytes appear in the first place? I think they are sent
> by the
> camera deliberately to indicate something and Windows driver must be
> knowing
> what do they mean.
That is not very likely as they are in the middle of the jpeg data stream
(special bytes would normally be in the header or footer of each frame).
Most likely the cause is a not 100% usb connection, or some subtle linux
driver bug causing this.
Regards,
Hans
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-19 22:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-15 19:30 Bugreport for libv4l: error out on webcam: error parsing JPEG header: Bogus jpeg format Yuri
2010-07-19 12:22 ` Hans de Goede
2010-07-19 16:53 ` Yuri
2010-07-19 22:46 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox