Results 1 to 15 of 15

Thread: how to use mplayer to design video player for windows7?

  1. #1
    Join Date
    Oct 2012
    Posts
    35
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default how to use mplayer to design video player for windows7?

    i want to use mplayer to design a simply video player for windows7. but i didnn't know which revision can be used.mplayer-svn-35691.7z or mplayer-r35691-src.7z ?


    please give me any advice!
    TKS

    ken

    The mplayer wdbsite as below:
    http://code.google.com/p/mplayer-for...downloads/list
    Last edited by kenchan; 18th December 2012 at 14:50. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to use mplayer to design video player for windows7?

    Why are you asking this on a Qt-related forum?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    kenchan (21st December 2012)

  4. #3
    Join Date
    Oct 2012
    Posts
    35
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to use mplayer to design video player for windows7?

    Hi wysota,

    i want to use mplayer base on Qt with slave mode.

    TKS.

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to use mplayer to design video player for windows7?

    Ok but what does your question have to do with Qt? Shouldn't you be asking this at some MPlayer forum?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. The following user says thank you to wysota for this useful post:

    kenchan (21st December 2012)

  7. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to use mplayer to design video player for windows7?

    but i didnn't know which revision can be used.mplayer-svn-35691.7z or mplayer-r35691-src.7z ?
    Since they claim to be the same version I can only assume that one is a set of binaries, the other the source, and either would do. You might consider using the Subversion repository directly.

    None of this has anything to do with Qt.

  8. #6
    Join Date
    Oct 2012
    Posts
    35
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to use mplayer to design video player for windows7?

    Hi chrisW67,

    i want to call "mplayer.exe -slave -quiet" mode directly, i used the "mplayer-svn-35691.7z" revision, but cannot play video. so i was puzzled.

    TKS

  9. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to use mplayer to design video player for windows7?

    This still has nothing to do with Qt. Mplayer uses a bundle of external codecs; no codec, no play.

  10. The following user says thank you to ChrisW67 for this useful post:

    kenchan (21st December 2012)

  11. #8
    Join Date
    Oct 2012
    Posts
    35
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to use mplayer to design video player for windows7?

    Hi ChrisW67,

    i see, but i want to konw which revision can be selected to develop videoplayer.

    please give me any usefull advice.

    TKS

    ken


    Added after 28 minutes:


    Hi All,

    i maybe understand! i trying to do now!

    thank u very much!


    Added after 1 30 minutes:


    Hi All,

    i extracted mplayer-r35691-src.7z and copy all files to mplayer-svn-35691's codecs directory.(under windows7)

    i use below codes, but can't play video,

    QFrame *videoPlayerFrame = new QFrame(this);
    QProcess * videoPlayerProcess = new QProcess(this);

    QString a= " -wid" + QString::number(reinterpret_cast<qlonglong>(videoP layerFrame->winId()));
    QString b= "D:/video.mp4";
    QString m= "C:/project/player/mplayer.exe -slave -quiet -ac mad"+ b+a;
    videoPlayerProcess->start(m, QIODevice::ReadWrite);


    please give me any advice.

    Thanks and Best regards.
    Last edited by kenchan; 21st December 2012 at 03:48.

  12. #9
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to use mplayer to design video player for windows7?

    need space after

    -ac mad

    ?

    Other wise you get "... -ac madD:/video.mp4..."

    also - there should be no need to use reinterpret_cast there!!
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  13. The following user says thank you to amleto for this useful post:

    kenchan (22nd December 2012)

  14. #10
    Join Date
    Oct 2012
    Posts
    35
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to use mplayer to design video player for windows7?

    Hi amleto,

    i used another way. but printf error.

    QString filename = QFileDialog::getOpenFileName(this, tr("Open Document"), ".", tr("Audio Files(*.mp3 *.mid *.wav);;Vodeo Files(*.avi *.vcd *dvd *rm *mp4);;All Files(*.*)"));
    QProcess *process = new QProcess(this);

    QFrame *frame = new QFrame(this);

    QString mb= " -wid" + QString::number(qlonglong(frame->winId()));
    QString m= "./mplayer/mplayer.exe -slave -quiet "+ filename +mb;
    process ->start(m, QIODevice::ReadWrite);
    if(!process ->waitForStarted(100))
    { qDebug() << "error....";
    return;
    }

    can you give me any advice?


    TKS.

    Hi All,

    i'm thanks very much if you give some sample about this. and if tell me how to use the mplayer.

    TKS.

  15. #11
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to use mplayer to design video player for windows7?

    1st piece of advice - use [code] tags for that much code!

    secondly - what printf error?

    Thirdly, read the docs http://doc.qt.io/qt-4.8/qprocess.html#waitForStarted. 100ms is not very long to wait!

    Fourth - are you sure that ./mplayer is correct? ie what path is you qt app started in?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  16. The following user says thank you to amleto for this useful post:

    kenchan (22nd December 2012)

  17. #12
    Join Date
    Oct 2012
    Posts
    35
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to use mplayer to design video player for windows7?

    Hi amleto,

    thirdly, I had try to use 3000 ms before, but there is nothing display on frame.

    fourth., i tryed to use absolute path or relative path , but there is nothing display on frame.



    The mplayer revision what i select is correct? and whether add codecs into mplayer's codecs directory? i have added "Codecs for DirectShow" .


    TKS.


    Added after 22 minutes:


    i use other mplayer revision(http://mplayer-ww.com/), can pop up mplayer windows .
    but i use the code ' "C:/project/mplayer/mplayer.exe -slave -quiet " + filename ' , didn't display anything.

    the code as below:
    videoPlayerProcess->start("C:/project/mplayer/mplayer.exe", QIODevice::ReadWrite);


    Added after 1 19 minutes:


    Hi All,

    i know what the problem happened.

    TKS.
    Last edited by kenchan; 22nd December 2012 at 05:30.

  18. #13
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to use mplayer to design video player for windows7?

    why don't you tell us the solution so others can see it if they search for similar problem and find this thread.

    Seems to be recurring theme that OPs don't want to share solutions!
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  19. The following user says thank you to amleto for this useful post:

    kenchan (25th December 2012)

  20. #14
    Join Date
    Oct 2012
    Posts
    35
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to use mplayer to design video player for windows7?

    Hi amleto,

    I'm sorry,

    i found must be have a space after " -wid".see the correct below:
    QString mb= " -wid " + QString::number(qlonglong(frame->winId()));

  21. #15
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to use mplayer to design video player for windows7?

    thanks for update
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  22. The following user says thank you to amleto for this useful post:

    kenchan (26th December 2012)

Similar Threads

  1. Phonon video player
    By sangee in forum Qt Programming
    Replies: 0
    Last Post: 18th October 2012, 07:15
  2. frame and video player
    By Kethan Kumar in forum Qt Programming
    Replies: 0
    Last Post: 17th February 2012, 09:38
  3. wildcards with phonon video player
    By prophet0 in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2012, 12:55
  4. how to set duration of a video in a video player in qt
    By qt_user in forum Qt Programming
    Replies: 1
    Last Post: 7th August 2010, 10:51
  5. Phonon Video Player + XML
    By igor.schkrab in forum Qt Programming
    Replies: 0
    Last Post: 24th November 2009, 23:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.