Skip to content

Instantly share code, notes, and snippets.

@jvcleave
Created November 21, 2012 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvcleave/4123245 to your computer and use it in GitHub Desktop.
Save jvcleave/4123245 to your computer and use it in GitHub Desktop.
RaspberryPI successful webcam test command
pi@raspberrypi /dev/v4l/by-id $ mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 30
MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: VF0610 Live! Cam Socialize HD
Capabilities: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
[gl] no GLX support present
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x202b080] BICUBIC scaler, from yuyv422 to rgb565le using C
VO: [x11] 640x480 => 640x480 BGR 16-bit
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
FPS forced to be 30.000 (ftime: 0.033).
Starting playback...
v4l2: select timeout
V: 0.0 2/ 2 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 3/ 3 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 5/ 5 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 7/ 7 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 8/ 8 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 10/ 10 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 11/ 11 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 13/ 13 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 14/ 14 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 16/ 16 ??% ??% ??,?% 0 0
v4l2: select timeout
V: 0.0 18/ 18 0% 434% 0.0% 0 0
v4l2: select timeout
V: 0.0 19/ 19 0% 428% 0.0% 0 0
v4l2: select timeout
V: 0.0 21/ 21 0% 416% 0.0% 0 0
v4l2: select timeout
V: 0.0 22/ 22 0% 412% 0.0% 0 0
v4l2: select timeout
V: 0.0 24/ 24 0% 403% 0.0% 0 0
v4l2: select timeout
V: 0.0 25/ 25 0% 398% 0.0% 0 0
v4l2: select timeout
V: 0.0 27/ 27 0% 392% 0.0% 0 0
v4l2: select timeout
V: 0.0 29/ 29 0% 387% 0.0% 0 0
v4l2: select timeout
V: 0.0 30/ 30 0% 384% 0.0% 0 0
v4l2: select timeout
V: 0.0 32/ 32 0% 380% 0.0% 0 0
v4l2: select timeout
V: 0.0 33/ 33 0% 378% 0.0% 0 0
v4l2: select timeout
V: 0.0 35/ 35 0% 374% 0.0% 0 0
v4l2: select timeout
V: 0.0 36/ 36 0% 372% 0.0% 0 0
v4l2: select timeout
V: 0.0 38/ 38 0% 369% 0.0% 0 0
v4l2: select timeout
V: 0.0 39/ 39 0% 367% 0.0% 0 0
MPlayer interrupted by signal 2 in module: video_read_frame
V: 0.0 40/ 40 0% 366% 0.0% 0 0
v4l2: select timeout
v4l2: ioctl set mute failed: Invalid argument
v4l2: 0 frames successfully processed, 1 frames dropped.
Exiting... (Quit)
pi@raspberrypi /dev/v4l/by-id $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment