Skip to content

Commit

Permalink
better handling of ffmpeg versions and new error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ex-nerd committed Jul 26, 2010
1 parent 809e4e5 commit 0bdc394
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nuvexport/export/ffmpeg.pm
Expand Up @@ -72,8 +72,8 @@ package export::ffmpeg;
# Check the ffmpeg version
if (!defined $self->{'ffmpeg_vers'}) {
$data = `$ffmpeg -version 2>&1`;
if ($data =~ m/ffmpeg\sversion\s0.5[\-,]/si) {
$self->{'ffmpeg_vers'} = '0.5';
if ($data =~ m/ffmpeg\sversion\s(0.\d)[\-,]/si) {
$self->{'ffmpeg_vers'} = $1;
}
elsif ($data =~ m/ffmpeg\sversion\sSVN-r(\d+),/si) {
$self->{'ffmpeg_vers'} = $1;
Expand Down Expand Up @@ -407,7 +407,7 @@ package export::ffmpeg;
}
}
# ffmpeg warnings?
elsif ($l =~ /^Un(known|supported).+?(codec|format)/m) {
elsif ($l =~ /^Un(known|supported).+?(codec|format|(?:de|en)coder)/m) {
$warnings .= $l;
die "\n\nffmpeg had critical errors:\n\n$warnings";
}
Expand Down

0 comments on commit 0bdc394

Please sign in to comment.