[MPlayer-users] Re: -slave and perl

Angel angel at knight-industries.com
Wed Jan 15 12:18:05 CET 2003


> I'm hacking the dvd2divxscript.pl script. I want to sample a few random
> sections of the video with -vop cropdetect, 

Ok... I just realized you're probably going to want to get the output from the 
mencoder command. You'll need to use either IPC::Open2 or IPC::Open3 to do 
this. Something along the lines of:

use IPC::Open2;
local WRITE_FH;
local READ_FH;

open2(\*READ_FH, \*WRITE_FH, 'mencoder blah blah blah');

If the output of mencoder is via stderr.. you might need to use open3 to 
capture it.

-Angel



More information about the MPlayer-users mailing list