Results 1 to 2 of 2

Thread: QProcess and spumux

  1. #1
    Join Date
    Oct 2007
    Location
    Poland
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QProcess and spumux

    From spumux documentation:
    spumux [-m dvd | -m cvd | -m svcd] [-s stream] [-v level] [-P] {file} {< mpeg} {> mpeg-with-subtitles}

    Qt Code:
    1. QStringList arguments;
    2. arguments << "-m" << "dvd" << "script.xml" << "<in.mpg" << ">out.mpg";
    3. p.start( "spumux", arguments );
    To copy to clipboard, switch view to plain text mode 

    In concole ( spumux -m dvd script.xml <in.mpg >out.mpg ) everything is ok, but QProcess not working. Any idea?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QProcess and spumux

    "<in.mpg" and ">out.mpg" aren't spumux options --- they're interpreted by the shell, so to make them work, you have to start the shell.

    Try:
    Qt Code:
    1. arguments << "-c" << "spumux" << "-m" << "dvd" << "script.xml" << "--" << "<in.mpg" << ">out.mpg";
    2. ...
    3. p.start( "/bin/sh", arguments );
    To copy to clipboard, switch view to plain text mode 
    or something like that.

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.