LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2358|回复: 5

mplayer怎么指定解码器播放呢?

[复制链接]
发表于 2009-7-9 15:41:00 | 显示全部楼层 |阅读模式
fedora11的mplayer好像优先用ffmpeg解码,而不会去用w32codecs,怎么样指定解码器呢?

错误如下
mplayer chap01.avi
MPlayer 29092-4.4.0 (C) 2000-2009 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 chap01.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [tscc]  800x600  16bpp  15.000 fps   49.9 kbps ( 6.1 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat 10
Selected video codec: [ffcamtasia] vfm: ffmpeg (FFmpeg TechSmith Camtasia Screen Codec)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 2 ch, u8, 128.0 kbit/100.00% (ratio: 16000->16000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[pulse] working around probably broken pause functionality,
        see http://www.pulseaudio.org/ticket/440
AO: [pulse] 8000Hz 2ch u8 (1 bytes per sample)
Starting playback...
Unsupported PixelFormat 10
Unsupported PixelFormat 10
VDec: vo config request - 800 x 600 (preferred colorspace: Unknown 0x0000)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Unsupported PixelFormat 10
Unsupported PixelFormat 10
VDec: vo config request - 800 x 600 (preferred colorspace: Unknown 0x0000)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.

FATAL: Could not initialize video filters (-vf) or video output (-vo).


Exiting... (End of file)
发表于 2009-7-9 19:13:04 | 显示全部楼层
自己编译一个吧,应该有参数可以指定不用ffmpeg
回复 支持 反对

使用道具 举报

发表于 2009-7-9 19:40:27 | 显示全部楼层
Post by billkof;2004783
fedora11的mplayer好像优先用ffmpeg解码,而不会去用w32codecs,怎么样指定解码器呢?

错误如下
mplayer chap01.avi
MPlayer 29092-4.4.0 (C) 2000-2009 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 chap01.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [tscc]  800x600  16bpp  15.000 fps   49.9 kbps ( 6.1 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat 10
Selected video codec: [ffcamtasia] vfm: ffmpeg (FFmpeg TechSmith Camtasia Screen Codec)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 2 ch, u8, 128.0 kbit/100.00% (ratio: 16000->16000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[pulse] working around probably broken pause functionality,
        see http://www.pulseaudio.org/ticket/440
AO: [pulse] 8000Hz 2ch u8 (1 bytes per sample)
Starting playback...
Unsupported PixelFormat 10
Unsupported PixelFormat 10
VDec: vo config request - 800 x 600 (preferred colorspace: Unknown 0x0000)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Unsupported PixelFormat 10
Unsupported PixelFormat 10
VDec: vo config request - 800 x 600 (preferred colorspace: Unknown 0x0000)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.

FATAL: Could not initialize video filters (-vf) or video output (-vo).


Exiting... (End of file)


man mplayer
解码/过滤器选项
       -ac <[-|+]编解码器1,[-|+]编解码器2,...[,]>
              按 照在 codecs.conf 中音频编解码器的名称, 指定使用它们的优先级列表。编解码器名称前使用 "-" 表示忽略
              它。编解码器名称前使用 "+" 表示锁定它, 这有可能会崩溃!  如果列表尾有 "," MPlayer 使用没有列出的编解
              码器作为后备。
              注意: 可用的编解码器其完整列表请参见 -ac help。

              示例:
                 -ac mp3acm
                      锁定 l3codeca.acm MP3 编解码器。
                 -ac mad,
                      先尝试 libmad, 其它作为后备。
                 -ac hwac3,a52,
                      先尝试通过硬件解码AC-3, 然后是软件AC-3, 最后是其它。
                 -ac hwdts,
                      先尝试通过硬件解码DTS, 然后是其它。
                 -ac -ffmp3,
                      跳过 FFmpeg 的 MP3 编解码器。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-10 00:27:56 | 显示全部楼层
codecs.conf没有这个文件阿
回复 支持 反对

使用道具 举报

发表于 2009-7-10 00:43:33 | 显示全部楼层
Post by billkof;2004923
codecs.conf没有这个文件阿


加-ac参数吧..
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-10 02:24:45 | 显示全部楼层
可以播放了,但是很卡,我是intel 集成显卡,mplayer -vc camtasia -vo gl   chap01.avi
MPlayer 29092-4.4.0 (C) 2000-2009 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 chap01.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [tscc]  800x600  16bpp  15.000 fps   49.9 kbps ( 6.1 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Forced video codec: camtasia
Opening video decoder: [vfw] Win32/VfW video codecs
Loading codec DLL: 'tsccvid.dll'
Loaded DLL driver tsccvid.dll at 7f840000
VDec: vo config request - 800 x 600 (preferred colorspace: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
VDec: using BGR 15-bit as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
VO: [gl] 800x600 => 800x600 BGR 15-bit  [flip]
Selected video codec: [camtasia] vfm: vfw (TechSmith Camtasia Screen Codec)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 2 ch, u8, 128.0 kbit/100.00% (ratio: 16000->16000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[pulse] working around probably broken pause functionality,
        see http://www.pulseaudio.org/ticket/440
AO: [pulse] 8000Hz 2ch u8 (1 bytes per sample)
Starting playback...
No bind found for key 'MOUSE_BTN2'.                         ?% 0 0              
A:   9.6 V:   8.4 A-V:  1.183 ct: -0.008 127/127  0% 61%  0.0% 50 0            

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表