Does anyone have ideas on how to troubleshoot this? I have a webcam which works fine on my laptop, but gets garbled and truncated frames on the eBox 3310MX. The camera is a PS3 Eye camera. I initially noticed the problem when using OpenCV to grab frames, but I reproduced the issue in luvcview and in ffmpeg. Using ffmpeg was the most telling, since it bails out and reports that the frame was too small. For example, this is a recent run where it only got 17 frames and then failed:
justis:~$ ffmpeg -t 5 -f video4linux2 -s 640x480 -r 30 -i /dev/video0 -f mp4 webcam.mp4
FFmpeg version SVN-r0.5.6-4:0.5.6-3, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.6-3 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdc1394 --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Dec 31 2011 15:16:11, gcc: 4.4.5
[video4linux2 @ 0x9e37a60][3]Capabilities: 5000001
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 10126.280853, bitrate: 147456 kb/s
Stream #0.0: Video: rawvideo, yuyv422, 640x480, 147456 kb/s, 30 tbr, 1000k tbn, 30 tbc
File 'webcam.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'webcam.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 640x480, q=2-31, 200 kb/s, 90k tbn, 30 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[video4linux2 @ 0x9e37a60]The v4l2 frame is 28032 bytes, but 614400 bytes are expected
frame= 17 fps= 7 q=15.3 Lsize= 180kB time=2.17 bitrate= 680.8kbits/s
video:179kB audio:0kB global headers:0kB muxing overhead 0.499847%
It seems to work OK when I use an older Logitech webcam. The basic specs are the same, though. Here's the relevant portion that ffmpeg spits out when I use the Logitech camera:
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 1336425343.356615, bitrate: 147456 kb/s
Stream #0.0: Video: rawvideo, yuyv422, 640x480, 147456 kb/s, 30 tbr, 1000k tbn, 30 tbc
This is a debian 6.0.4 system and the kernel is: Linux 2.6.32-5-486 #1 Mon Mar 26 04:36:28 UTC 2012
Many thanks for any help you can provide.
Kind regards,
Justis Peters