标题:mplayer播放器嵌入到QT里面无视频输出???请求帮助
作者:knight8267
日期:2009-08-30 18:14
内容:
在pC机上安装了QTE4.5.0版本的,已将mplayer的QTGUI界面用QTE库编译
通过,除了不能显示视频以外其他都正常,可以播放音频,显示视频的区域没有接收到视频流,是在qvfb上仿真的,不知道为什么视频不能显示?? 是因为没有找到窗口ID???使用-vo fbdev参数也没有效果,大家帮帮看看怎么才能将视频在qvfb中显示出来??难道得用qtopia吗???
在qt-x11中可以正常运行
同过qvfb时,无视频输出。
源码如下页面:
args
#1 [shiroki 08-30 23:09]
够呛, qvfb的显示用的是自己的一套驱动,mplayer不大可能支持
还是直接到有fb的环境去测试吧
#2 [knight8267 08-31 09:49]
我看到下面的帖子,视乎是可以实现的。
请看文章:Inside Qt Series (十三):Qt/e体系结构概述
http://www.insideqt.com/bbs/viewthread.php?tid=113
#3 直接移植到开发板上,显示播放错误!!! [knight8267 08-31 11:12]
/zhq/bin # ./mplayer ../videos_test/ogavi.avi
MPlayer 1.0rc2-3.4.1 (C) 2000-2007 MPlayer Team
CPU: ARM
Playing ../videos_test/ogavi.avi.
AVI file format detected.
Video stream found, -vid 0
Audio stream found, -aid 1
VIDEO:320x24024bpp15.000 fps465.7 kbps (56.9 kbyte/s)
Clip info:
Artist: Format Factory
Software: Lavf52.25.0
==========================================================================
Opening video decoder: FFmpeg's libavcodec codec family
Selected video codec: vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
No accelerated colorspace conversion found
SwScaler: using unscaled yuv420p -> bgr555 special converter
VO: 320x240 => 320x240 BGR 15-bit
MPlayer interrupted by signal 4 in module: decode_video
- MPlayer crashed by an 'Illegal Instruction'.
It usually happens when you run it on a CPU different than the one it was
compiled/optimized for.
Verify this!
- 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.
#4 问题解决了 [knight8267 09-03 10:10]
./configure --cc=arm-linux-gcc --host-cc=gcc --enable-cross-compile --target=arm-armv4l-linux --enable-linux-devfs --disable-dvdread-internal --disable-dvdread --enable-fbdev --disable-mencoder --enable-liba52 --disable-libmpeg2 --enable-liba52 --disable-mp3lib --enable-static --disable-live --enable-debug --disable-armv5te --disable-armv6 2>&1 | tee logfile
照上面重新配置编译就可以了。
#5 [yang505982 09-05 11:07]
PC机上可以,但是下载到arm板子上后,不能映射到renderTarget,不知是怎么回事??