分类: BSD
2012-02-13 18:43:28
#mplayer -tv driver=v4l2:width=352:height=288:device=/dev/video0 tv://
以前出错的原因是mplayer没有 使用v4l2.
重安装mplayer,选用v4l.或者vi Makefile
找到v4l这一行,然后改off为on
不过还有以下问题:
$ mplayer -tv driver=v4l2:width=352:height=288:device=/dev/video0 tv://
MPlayer SVN-r34449-snapshot-4.6.3 (C) 2000-2011 MPlayer Team
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski
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:
Capabilities: video capture read/write streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: YUYV
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.
Xlib: extension "GLX" missing on display ":0.0".
[gl] no GLX support present
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 320x240 => 320x240 Planar YV12
[swscaler @ 0x80c38f810] using unscaled yuv420p -> bgra special converter
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...
libv4l2: error dequeuing buf: Invalid argument
v4l2: ioctl set mute failed: Invalid argument
v4l2: 95 frames successfully processed, 94 frames dropped.
Exiting... (Quit)