Ticket #3809: nuvexport-ffmpeg_xvid_rename.patch
File nuvexport-ffmpeg_xvid_rename.patch, 1.4 KB (added by , 17 years ago) |
---|
-
export/ffmpeg/XviD.pm
57 57 $self->init_ffmpeg(); 58 58 59 59 # 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 { 61 67 push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to xvid.\n" 62 ." (It must be compiled with the --enable-xvid o ption)";63 68 ." (It must be compiled with the --enable-xvid or --enable-libxvid option)"; 69 } 64 70 if (!$self->can_encode('mp3')) { 65 71 push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mp3 audio."; 66 72 } … … 141 147 } 142 148 my $safe_title = shell_escape($safe_title); 143 149 # Build the common ffmpeg string 144 my $ffmpeg_xtra = ' -vcodec xvid'150 my $ffmpeg_xtra = ' -vcodec '. $self->{'xvid_name'} 145 151 .$self->param('bit_rate', $self->{'v_bitrate'}) 146 152 .($self->{'vbr'} 147 153 ? $self->param('rc_min_rate', 32)