Pablo
Posts: 34
Joined: Wed Aug 15, 2012 2:37 pm

eyeToy - error Bogus Huffman

Sun Sep 08, 2013 10:14 pm

hello there,

I'm trying to get pics with a ps2 eyetoy. The better I got was black pics with some warnings. The camera works great on my Ubuntu laptop

Tried : fswebcam -d /dev/video0 fsnap0.jpg

and got

(...)
gd-jpeg: JPEG library reports unrecoverable error: Bogus Huffman table definition
(...)

Code: Select all

fswebcam -d /dev/video0 fsnap0.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 320x240.
--- Capturing frame...
gd-jpeg: JPEG library reports unrecoverable error: Bogus Huffman table definition
Captured frame in 0.00 seconds.
--- Processing captured image...
Writing JPEG image to 'fsnap0.jpg'.
uvccapture..

Code: Select all

sudo uvccapture -v -S80 -B80 -C80 -G80 -x640 -y480
Using videodevice: /dev/video0
Saving images to: snap.jpg
Image size: 640x480
Taking snapshot every 0 seconds
Taking images using mmap
Unable to query buffer (22).
 Init v4L2 failed !! exit fatal 
and I get black pics with motion.

I think I tried something else, but just don't remember

any idea? :)

binaryspastic
Posts: 1
Joined: Sat Sep 28, 2013 2:22 pm

Re: eyeToy - error Bogus Huffman

Sun Sep 29, 2013 9:30 am

Hi Pablo. Did you get anywhere with this? I have the exact same problem.

Pablo
Posts: 34
Joined: Wed Aug 15, 2012 2:37 pm

Re: eyeToy - error Bogus Huffman

Sun Sep 29, 2013 1:01 pm

Not yet :(

BadRob
Posts: 1
Joined: Tue Oct 29, 2013 3:43 am

Re: eyeToy - error Bogus Huffman

Tue Oct 29, 2013 4:29 am

I previously gave up trying to get two eyetoy usb cameras to stream simultaneously from one pi (too many corrupted frames) and moved onto using a pi-cam.

I have just tried to see if I can get a single eyetoy and a pi-cam to stream simultaneously - but i finding that while the eyetoy is detected (lsusb) and connected (/dev/video0) i can not get an image from it.

I have tried:
- motion
- mjpg-streamer
- fswebcam
- fflpay

None of these tools will display an image but two complain about about a bogus huffman (corrupt jpg image)

If i look at the live stream in mjpg-streamer i see a green screen with the top 10% moving static

I tested this on a totally different setup with a different raspberry pi, a different eyetoy camera and a different sdcard running the same version of the raspbian distro

I am sure I made more progress the first time i tried this with two eyetoy usb cameras, so I replaced the sdcard with a previous version of raspbian and the eyetoy usb camera images are now visible.

EyeToy works: (uname -a)
Linux raspberrypi 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l GNU/Linux

EyeToy doesn't seem to work: (uname -a)
Linux wormhole 3.6.11+ #557 PREEMPT Wed Oct 2 18:49:09 BST 2013 armv6l GNU/Linux

I am thinking this shows that there may be an issue with the eyetoy driver in the latest raspbian version? (which you need to get the pi-cam to play nicely)

Can anyone with a sony eyetoy usb camera confirm these findings?

Cheers
Rob

Sonny_Jim
Posts: 45
Joined: Tue Oct 23, 2012 4:15 pm

Re: eyeToy - error Bogus Huffman

Tue Dec 03, 2013 1:17 pm

Bit of a necro post, but I can confirm the same. Last year I was using a PS2 Eyetoy + motion and it worked fine. I've just tried it with a recent kernel and it's stopped working. I get weird errors like:
Unsupported marker type 0xf5
Invalid JPEG file structure: SOS before SOF
Bogus Huffman table definition

I'm going to try and roll back the kernel version with rpi-update to double check, but it would suck to have to use an older kernel version to get it working again.

EDIT: Yup, definitely a kernel update broke it, rolled back to kernel #399 and it works fine :-(
EDIT2: As a temporary fix, you can install an earlier kernel with rpi-update:

Code: Select all

sudo rpi-update 5ea0f44b673eaa52c578fcd6480495f19cd53d97&&sudo reboot

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1926
Joined: Thu Jul 11, 2013 2:37 pm

Re: eyeToy - error Bogus Huffman

Tue Dec 03, 2013 9:03 pm

Can you post a lsusb -t?
Edit, nevermind: It's a USB1.1 webcam.
http://ubuntuforums.org/showthread.php?t=2131983

There is currently a limitation in the USB driver that means that for USB1.1 isochronous traffic, only 188 bytes of data are transferred per frame (1ms). This can be worked around by adding dwc_otg.fiq_split_enable=0 to /boot/cmdline.txt.

While this fixes the 188-byte transfer size limit, the transfer will be prone to disruption from external sources - it possible to capture images successfully from a USB1.1 webcam but at a low framerate.
Rockets are loud.
https://astro-pi.org

labude
Posts: 1
Joined: Tue Mar 04, 2014 7:30 pm

Re: eyeToy - error Bogus Huffman

Tue Mar 04, 2014 7:37 pm

i had the same troubles with my ov519 webcam i bought years ago from conrad electronic. Editing the cmdlint.txt didn't help, but the kernel downgrade did! Thanks a lot!

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1926
Joined: Thu Jul 11, 2013 2:37 pm

Re: eyeToy - error Bogus Huffman

Wed Mar 05, 2014 10:38 am

The fiq_fsm rewrite now handles USB1.1 webcams quite well.

http://www.raspberrypi.org/phpBB3/viewt ... 28&t=70437
Rockets are loud.
https://astro-pi.org

Return to “Troubleshooting”