[MPlayer-users] -quiet option for mencoder?

Moritz Bunkus moritz at bunkus.org
Sun Jan 5 00:38:12 CET 2003


Hi.

Instead of using backticks ($output = `mencoder ...`;) open mencoder as
a pipe:

open(MENCOUTPUT, "mencoder ... |") || die;
while ($line = <MENCOUTPUT>) {
  # do something with the $line
}
close(MENCOUTPUT);

The pipe symbol at the end is VERY important.

-- 
 ==> Ciao, Mosu (Moritz Bunkus)



More information about the MPlayer-users mailing list