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)