• 14231阅读
  • 5回复

Qt::WA_PaintOnScreen  和Qt::WA_OpaquePaintEvent有什么区别??(视频输出) [复制链接]

上一主题 下一主题
离线knight8267
 

只看楼主 倒序阅读 楼主  发表于: 2009-09-01
Qt::WA_PaintOnScreen  和Qt::WA_OpaquePaintEvent有什么区别??

我分别试过这两个,没什么变化.
我在开发板上跑Qt的时候,播放画面跑到Qt外面了。但在PC机上是正常的
难道如下方式实现不行?
videoWindow = new Widget(this);
QProcess *mplayerProcess ;
videoWindow->setAttribute(Qt::WA_PaintOnScreen);
...
args<<"-wid"<<QString::number(videoWindow->winID);
..
mplayerProcess->start(mplayerPath,args);
离线knight8267

只看该作者 1楼 发表于: 2009-09-02
如果mplayer无法嵌入在Qt界面中,还有没有办法实现播放器的窗口能够覆盖Qt窗口的指定区域,这样看起来就像嵌在Qt里的。
请路过的朋友提供些建议。谢谢
离线knight8267

只看该作者 2楼 发表于: 2009-09-02
具体的就是:
   mplayer在屏幕上的位置怎么改变?      Qt在屏幕上的位置如何指定?

参数:
/zhq/bin # ./mplayer -help
MPlayer 1.0rc2-3.4.1 (C) 2000-2007 MPlayer Team
CPU: ARM
Usage:   mplayer [options] [url|path/]filename

Basic options: (complete list in the man page)
-vo <drv>        select video output driver ('-vo help' for a list)
-ao <drv>        select audio output driver ('-ao help' for a list)
-ss <position>   seek to given (seconds or hh:mm:ss) position
-nosound         do not play sound
-fs              fullscreen playback (or -vm, -zoom, details in the man page)
-x <x> -y <y>    set display resolution (for use with -vm or -zoom)
-sub <file>      specify subtitle file to use (also see -subfps, -subdelay)
-playlist <file> specify playlist file
-vid x -aid y    select video (x) and audio (y) stream to play
-fps x -srate y  change video (x fps) and audio (y Hz) rate
-pp <quality>    enable postprocessing filter (details in the man page)
-framedrop       enable frame dropping (for slow machines)

Basic keys: (complete list in the man page, also check input.conf)
<-  or  ->       seek backward/forward 10 seconds
down or up       seek backward/forward  1 minute
pgdown or pgup   seek backward/forward 10 minutes
< or >           step backward/forward in playlist
p or SPACE       pause movie (press any key to continue)
q or ESC         stop playing and quit program
+ or -           adjust audio delay by +/- 0.1 second
o                cycle OSD mode:  none / seekbar / seekbar + timer
* or /           increase or decrease PCM volume
x or z           adjust subtitle delay by +/- 0.1 second
r or t           adjust subtitle position up/down, also see -vf expand

* * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *

/zhq/bin #
离线knight8267

只看该作者 3楼 发表于: 2009-09-03
目前使用假嵌入的方法暂时解决
目前使用假嵌入的方法暂时解决了,就是修改mplayer源代码里的x 和y 的坐标值,让图像数据输出到屏幕的指定区域,然后在让Qt界面调到合适的位置。
离线lanmanck

只看该作者 4楼 发表于: 2009-10-24
我在pc机上试过,没试过arm的
精彩博客:labisart.com
离线xiangliuweb

只看该作者 5楼 发表于: 2009-11-27
用这个可以实现:QX11EmbedContainer
快速回复
限100 字节
 
上一个 下一个