先目前将一个sn9c291+ov9712的模块驱动在fedora上加载成功,可是在使用mplayer却无法播放,不知道为何?
前后对比发现dev目录下多了video0,video1 设备节点已经出来,video1 是H264的节点
[root@localhost mplayer]#
mplayer tv:// -tv driver=v4l2:width=1280:height=720:device=/dev/video1:outfmt=0x34363248 -fps 24
MPlayer SVN-r37243-4.4.4 (C) 2000-2014 MPlayer Team
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: USB 2.0 Camera
Capabilities: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: YUYV
==================================================================
WARNING: UNTESTED OR UNKNOWN OUTPUT IMAGE FORMAT REQUESTED (0x34363248)
This may cause buggy playback or program crash! Bug reports will
be ignored! You should try again with YV12 (which is the default
colorspace) and read the documentation!
==================================================================
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
v4l2: ioctl streamon failed: No space left on device
[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.
OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.
==========================================================================
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 @ 0xb97a3a00] bicubic scaler, from yuyv422 to bgra using MMXEXT
VO: [x11] 640x480 => 640x480 BGRA
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...
[swscaler @ 0xb97a3a00] Warning: data is not aligned! This can lead to a speedloss
V: 0.0 31/ 31 ??% ??% ??,?% 0 0
MPlayer interrupted by signal 11 in module: video_read_frame
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a ‘gdb‘ backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn‘t happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it‘s MPlayer‘s fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can‘t and
won‘t help unless you provide this information when reporting a possible bug.
[root@localhost mplayer]# mplayer tv:// -tv driver=v4l2:width=1280:height=720:device=/dev/video1:outfmt=0x34363248
MPlayer SVN-r37243-4.4.4 (C) 2000-2014 MPlayer Team
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: USB 2.0 Camera
Capabilities: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: unknown (0x34363248)
==================================================================
WARNING: UNTESTED OR UNKNOWN OUTPUT IMAGE FORMAT REQUESTED (0x34363248)
This may cause buggy playback or program crash! Bug reports will
be ignored! You should try again with YV12 (which is the default
colorspace) and read the documentation!
==================================================================
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
v4l2: ioctl streamon failed: No space left on device
[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.
OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg‘s libavcodec codec family
libavcodec version 55.71.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
[h264 @ 0xb76089a0]no frame!
Error while decoding frame!
[h264 @ 0xb76089a0]no frame!
Error while decoding frame!
[h264 @ 0xb76089a0]no frame!
Error while decoding frame!
[h264 @ 0xb76089a0]no frame!
Error while decoding frame!
[h264 @ 0xb76089a0]no frame!
Error while decoding frame!
[h264 @ 0xb76089a0]no frame!
sn9c291 驱动加载成功,mpayer无法播放,布布扣,bubuko.com
原文地址:http://blog.csdn.net/lubing20044793/article/details/38308063