[Gllug] Command line tool to find video dimensions?

salsaman at xs4all.nl salsaman at xs4all.nl
Sun Jun 3 06:40:41 UTC 2007


On Sat, June 2, 2007 19:45, Nix wrote:
> On 1 Jun 2007, salsaman at xs4all.nl uttered the following:
>>     open MPLAYER, '$mplay_command -identify -v -vo null -ao null -frames
>> 0
>> \"$file\" 2>/dev/null </dev/null |';
>
> You want an
>
> or die "can't run mplayer: $!"
>
> on the end of that.
>
> You also probably don't want to throw stderr away, and the stdin
> redirection is a bit of a waste of time.

stdin redirection is very necessary. Read the manpage for mplayer.



>
> You also also don't want to do $-interpolation inside single quotes, as
> these suppress variable interpolation.

That's probably the problem then.

Some time when I have 1/2 an hour to spare, I will try changing it all
over again.


Gabriel.
http://lives.sourceforge.net


-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list