PDA

View Full Version : QProcess and spumux



swiety
17th December 2007, 21:51
From spumux documentation:
spumux [-m dvd | -m cvd | -m svcd] [-s stream] [-v level] [-P] {file} {< mpeg} {> mpeg-with-subtitles}


QStringList arguments;
arguments << "-m" << "dvd" << "script.xml" << "<in.mpg" << ">out.mpg";
QProcess p;
p.start( "spumux", arguments );

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

jacek
17th December 2007, 21:56
"<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:
arguments << "-c" << "spumux" << "-m" << "dvd" << "script.xml" << "--" << "<in.mpg" << ">out.mpg";
...
p.start( "/bin/sh", arguments );or something like that.