You are not logged in.

1

Friday, December 21st 2012, 12:07pm

base on mplayer to design a simple videoplayer using Qt

Hi All,

i am newer in this field, i want to design a simple videoplayer base on mplayer(windows ios)

i had downloaded the "mplayer-svn-35691.7z ". i use slave mode, but can't play video. how to use mplayer? please give me any advice.

Tanks.

the code below:

Source code

1
2
3
4
5
QProcess *process=new QProcess(this);
QFrame *videoPlayerFrame=new QFrame(this);
    QString mb=  " -wid" + QString::number(reinterpret_cast<qlonglong>(videoPlayerFrame->winId()));
    QString m= "./mplayer/mplayer.exe -slave -quiet "+ filename +mb;
    process->start(m, QIODevice::ReadWrite);



The mplayer website as below:
http://code.google.com/p/mplayer-for...downloads/list

2

Friday, December 21st 2012, 12:13pm

if have some samples about it. pls give me some sample. tks.