Ticket #4438: xvid-mp3flagfix.patch
File xvid-mp3flagfix.patch, 5.2 KB (added by , 16 years ago) |
---|
-
nuvexport/export/ffmpeg/ASF.pm
49 49 if (!$self->can_encode('msmpeg4')) { 50 50 push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to msmpeg4."; 51 51 } 52 if (!$self->can_encode('mp3') ) {52 if (!$self->can_encode('mp3') && !$self->can_encode('libmp3lame')) { 53 53 push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mp3 audio."; 54 54 } 55 55 # Any errors? disable this function … … 145 145 . ' -minrate 32 -maxrate '.(2*$self->{'v_bitrate'}).' -bt 32' 146 146 . ' -bufsize 65535' 147 147 # . ' -lumi_mask 0.05 -dark_mask 0.02 -scplx_mask 0.7' 148 . ' -acodec mp3'148 . ' -acodec libmp3lame' 149 149 .$self->param('ab', $self->{'a_bitrate'}) 150 150 . " -pass 2 -passlogfile '/tmp/asf.$$.log'" 151 151 . ' -f asf'; … … 162 162 : '') 163 163 # . ' -lumi_mask 0.05 -dark_mask 0.02' 164 164 # . ' -scplx_mask 0.7' 165 . ' -acodec mp3'165 . ' -acodec libmp3lame' 166 166 .$self->param('ab', $self->{'a_bitrate'}) 167 167 . ' -f asf'; 168 168 } -
nuvexport/export/ffmpeg/DivX.pm
49 49 if (!$self->can_encode('mpeg4')) { 50 50 push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mpeg4."; 51 51 } 52 if (!$self->can_encode('mp3') ) {52 if (!$self->can_encode('mp3') && !$self->can_encode('libmp3lame')) { 53 53 push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mp3 audio."; 54 54 } 55 55 # Any errors? disable this function … … 157 157 . ' -mv4' 158 158 . ' -part' 159 159 . ' -vtag divx' 160 . ' -acodec mp3'160 . ' -acodec libmp3lame' 161 161 .$self->param('ab', $self->{'a_bitrate'}) 162 162 . " -pass 2 -passlogfile '/tmp/divx.$$.log'" 163 163 . ' -f avi'; … … 178 178 . ' -mv4' 179 179 . ' -part' 180 180 . ' -vtag divx' 181 . ' -acodec mp3'181 . ' -acodec libmp3lame' 182 182 .$self->param('ab', $self->{'a_bitrate'}) 183 183 . ' -f avi'; 184 184 } -
nuvexport/export/ffmpeg/XviD.pm
60 60 push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to xvid.\n" 61 61 ." (It must be compiled with the --enable-libxvid option)"; 62 62 } 63 if (!$self->can_encode('mp3') ) {63 if (!$self->can_encode('mp3') && !$self->can_encode('libmp3lame')) { 64 64 push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mp3 audio."; 65 65 } 66 66 … … 182 182 : ''); 183 183 } 184 184 # Don't forget the audio, etc. 185 $self->{'ffmpeg_xtra'} .= ' -acodec mp3-async 1'185 $self->{'ffmpeg_xtra'} .= ' -acodec libmp3lame -async 1' 186 186 .$self->param('ab', $self->{'a_bitrate'}) 187 187 .' -f avi'; 188 188 # Execute the (final pass) encode -
nuvexport/export/ffmpeg/MP3.pm
45 45 or push @{$self->{'errors'}}, 'You need id3tag to export an mp3.'; 46 46 47 47 # Can we even encode vcd? 48 if (!$self->can_encode('mp3') ) {48 if (!$self->can_encode('mp3') && !$self->can_encode('libmp3lame')) { 49 49 push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mp3 audio."; 50 50 } 51 51 # Any errors? disable this function … … 79 79 my $episode = shift; 80 80 # Build the ffmpeg string 81 81 $self->{'ffmpeg_xtra'} = $self->param('ab', $self->val('bitrate')) 82 .' -acodec mp3-f mp3';82 .' -acodec libmp3lame -f mp3'; 83 83 # Execute ffmpeg 84 84 $self->SUPER::export($episode, '.mp3'); 85 85 # Now tag it