Subject: | Windows-Support |
Date: | Mon, 20 Jun 2016 11:43:19 +0200 |
To: | <bug-FFmpeg-Command [...] rt.cpan.org> |
From: | Andreas Christ <andreas.christ [...] sp-lion.com> |
Hi,
i use your class under windows. Itworks fine with a small change.
Please can you patch this in a new version? thank you.
for my $cmd ( shift || 'ffmpeg', 'avconv' ) {
my $reDirTarget = ( $^O =~ /MSWin/ ) ? "NUL" : "/dev/null 2>&1";
system( "$cmd -version > $reDirTarget" );
my $ret = $? >> 8;
if ( $ret == 0 || $ret == 1 ) {
$command = $cmd;
last;
}
}
Bye Andreas