Joe Emenaker wrote:
> Phil Ehrens wrote:
> >Yes, please stick with shell. Perl has too much syntactical sugar
> >to be used for anything longer than one line of less than 32
> >characters. As long as you code in shell at least SOMEBODY else
> >will be able to understand your script.
> >
> Well, mine's going to be in Perl because I think that it's far more
> difficult to make something robust in Bourne shell. I'm going to use it
> to learn object-oriented Perl (even though I consider that to be an
> oxymoron).
>
> My plan for the usage would be something like this:
>
> my $probe = MPlayerProbe->new($filename);
> unless($probe->hasErrors()) {
> print "Audio format is :" . $probe->audioStream()->format(); . "\n";
> print "Video bitrate :" . $probe->videoStream()->bitrate() . "\n";
> print "The appropriate video import flags for transcode would be :
> " . $probe->videoStream()->transcodeImportFlags() . "\n";
> }else {
> print $probe->getErrors();
> }
>
> You get the idea.....
Yes... You intend to probe with a polymorphic object, which
is perverse.