Results 1 to 1 of 1

Thread: QProcess+mPlayer+Aspect Ratio

  1. #1
    Join Date
    Mar 2008
    Location
    Ukraine@online
    Posts
    8
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QProcess+mPlayer+Aspect Ratio

    Hi all. I happy visit this great Forum.
    I have a question:
    I use this example for playing Video
    Qt Code:
    1. container->setGeomerty(0,0,1280,1024);
    2. QProcess *mp=new QProcess(container);
    3. connect(mp, SIGNAL(finished(int)),this, SLOT(endPlay(int)));
    4. QString command=" -wid "+QString::number(container->winId())+" -slave "+playfile;
    5. mp->start("mplayer "+command);
    To copy to clipboard, switch view to plain text mode 

    It plays good, but it is allways Ignored aspect ratio.
    Any video which plays are shows as 5:4 ratio same that setGeomerty set.
    How enable 4:3 ratio as allways play?
    Thank you for replays.
    PS: Sorry for my bad English.
    Last edited by IGHOR; 22nd March 2008 at 03:17. Reason: errors fixed

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.