Ticket #3809: nuvexport-ffmpeg_xvid_rename.patch

File nuvexport-ffmpeg_xvid_rename.patch, 1.4 KB (added by skd5aner@…, 17 years ago)
  • export/ffmpeg/XviD.pm

     
    5757        $self->init_ffmpeg();
    5858
    5959    # Can we even encode xvid?
    60         if (!$self->can_encode('xvid')) {
     60        if ($self->can_encode('libxvid')) {
     61                $self->{'xvid_name'} = "libxvid";
     62
     63        } elsif ($self->can_encode('xvid')) {
     64                $self->{'xvid_name'} = "xvid";
     65
     66        } else {
    6167            push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to xvid.\n"
    62                                       ."  (It must be compiled with the --enable-xvid option)";
    63         }
     68                                      ."  (It must be compiled with the --enable-xvid or --enable-libxvid option)";
     69        }
    6470        if (!$self->can_encode('mp3')) {
    6571            push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mp3 audio.";
    6672        }
     
    141147        }
    142148        my $safe_title = shell_escape($safe_title);
    143149    # Build the common ffmpeg string
    144         my $ffmpeg_xtra  = ' -vcodec xvid'
     150        my $ffmpeg_xtra  = ' -vcodec '. $self->{'xvid_name'}
    145151                          .$self->param('bit_rate', $self->{'v_bitrate'})
    146152                          .($self->{'vbr'}
    147153                            ? $self->param('rc_min_rate', 32)