当前位置: 代码迷 >> 驱动开发 >> mplayer 移植后无法播放视频解决思路
  详细解决方案

mplayer 移植后无法播放视频解决思路

热度:375   发布时间:2016-04-28 11:01:12.0
mplayer 移植后无法播放视频
昨天我移植了一下mplayer,可是播放视频的时候却播放不了,播放MP3非常的流畅
出的错误信息如下:
/qt/MP/MPlayer-1.0pre8 # ./mplayer panda.mpg
MPlayer 1.0pre8-4.1.2 (C) 2000-2006 MPlayer Team
CPU: ARM


Playing panda.mpg.
MPEG-PS file format detected.
VIDEO: MPEG2 300x168 (aspect 1) 24.000 fps 2516.0 kbps (314.5 kbyte/s)
==========================================================================
Requested audio codec family [mp3] (afm=mp3lib) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [ffmp2] afm: ffmpeg (FFmpeg MPEG layer-1 and layer-2 audio decoder========================================================================
notice: Can't open /dev/tty: No such device or address
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 300 x 168 (preferred colorspace: Mpeg PES)
Could not find matching colorspacerying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 300 x 168 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: ale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.79:1 - prescaling to correct movie aspect.
No accelerated colorspace conversion found
SwScaler: using unscaled Planar YV12 -> BGR 24-bit special converter
VO: [fbdev] 300x168 => 300x168 BGR 24-bit
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.

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


Exiting... (End of file)



驱动:
MPlayer 1.0pre8-4.1.2 (C) 2000-2006 MPlayer Team
CPU: ARM

Available video output drivers:
  fbdev Framebuffer Device
  fbdev2 Framebuffer Device
  null Null video output
  mpegpes Mpeg-PES to DVB card
  yuv4mpeg yuv4mpeg output for mjpegtools
  tga Targa output
  pnm PPM/PGM/PGMYUV file
  md5sum md5sum of each frame


配置里加入了:--enable-fbdev





我的LCD 可以显示QT写图像


有谁知道这是什么原因啊


------解决方案--------------------
少解码库?
------解决方案--------------------
帮顶下。

建议楼主找下支持mplayer的BSP和DLL看下、
------解决方案--------------------
我也出现了同样的问题,请问楼主怎么修改lcd的驱动的呢?