Ticket #4438: xvid-mp3flagfix.patch

File xvid-mp3flagfix.patch, 5.2 KB (added by skd5aner@…, 16 years ago)
  • nuvexport/export/ffmpeg/ASF.pm

     
    4949        if (!$self->can_encode('msmpeg4')) {
    5050            push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to msmpeg4.";
    5151        }
    52         if (!$self->can_encode('mp3')) {
     52        if (!$self->can_encode('mp3') && !$self->can_encode('libmp3lame')) {
    5353            push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mp3 audio.";
    5454        }
    5555    # Any errors?  disable this function
     
    145145                                   . ' -minrate 32 -maxrate '.(2*$self->{'v_bitrate'}).' -bt 32'
    146146                                   . ' -bufsize 65535'
    147147#                                   . ' -lumi_mask 0.05 -dark_mask 0.02 -scplx_mask 0.7'
    148                                    . ' -acodec mp3'
     148                                   . ' -acodec libmp3lame'
    149149                                   .$self->param('ab', $self->{'a_bitrate'})
    150150                                   . " -pass 2 -passlogfile '/tmp/asf.$$.log'"
    151151                                   . ' -f asf';
     
    162162                                      : '')
    163163#                                   . ' -lumi_mask 0.05 -dark_mask 0.02'
    164164#                                   . ' -scplx_mask 0.7'
    165                                    . ' -acodec mp3'
     165                                   . ' -acodec libmp3lame'
    166166                                   .$self->param('ab', $self->{'a_bitrate'})
    167167                                   . ' -f asf';
    168168        }
  • nuvexport/export/ffmpeg/DivX.pm

     
    4949        if (!$self->can_encode('mpeg4')) {
    5050            push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mpeg4.";
    5151        }
    52         if (!$self->can_encode('mp3')) {
     52        if (!$self->can_encode('mp3') && !$self->can_encode('libmp3lame')) {
    5353            push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mp3 audio.";
    5454        }
    5555    # Any errors?  disable this function
     
    157157                                   . ' -mv4'
    158158                                   . ' -part'
    159159                                   . ' -vtag divx'
    160                                    . ' -acodec mp3'
     160                                   . ' -acodec libmp3lame'
    161161                                   .$self->param('ab', $self->{'a_bitrate'})
    162162                                   . " -pass 2 -passlogfile '/tmp/divx.$$.log'"
    163163                                   . ' -f avi';
     
    178178                                   . ' -mv4'
    179179                                   . ' -part'
    180180                                   . ' -vtag divx'
    181                                    . ' -acodec mp3'
     181                                   . ' -acodec libmp3lame'
    182182                                   .$self->param('ab', $self->{'a_bitrate'})
    183183                                   . ' -f avi';
    184184        }
  • nuvexport/export/ffmpeg/XviD.pm

     
    6060            push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to xvid.\n"
    6161                                      ."  (It must be compiled with the --enable-libxvid option)";
    6262        }
    63         if (!$self->can_encode('mp3')) {
     63        if (!$self->can_encode('mp3') && !$self->can_encode('libmp3lame')) {
    6464            push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mp3 audio.";
    6565        }
    6666
     
    182182                                      : '');
    183183        }
    184184    # Don't forget the audio, etc.
    185         $self->{'ffmpeg_xtra'} .= ' -acodec mp3 -async 1'
     185        $self->{'ffmpeg_xtra'} .= ' -acodec libmp3lame -async 1'
    186186                                 .$self->param('ab', $self->{'a_bitrate'})
    187187                                 .' -f avi';
    188188    # Execute the (final pass) encode
  • nuvexport/export/ffmpeg/MP3.pm

     
    4545            or push @{$self->{'errors'}}, 'You need id3tag to export an mp3.';
    4646
    4747    # Can we even encode vcd?
    48         if (!$self->can_encode('mp3')) {
     48        if (!$self->can_encode('mp3') && !$self->can_encode('libmp3lame')) {
    4949            push @{$self->{'errors'}}, "Your ffmpeg installation doesn't support encoding to mp3 audio.";
    5050        }
    5151    # Any errors?  disable this function
     
    7979        my $episode = shift;
    8080    # Build the ffmpeg string
    8181        $self->{'ffmpeg_xtra'} = $self->param('ab', $self->val('bitrate'))
    82                                 .' -acodec mp3 -f mp3';
     82                                .' -acodec libmp3lame -f mp3';
    8383    # Execute ffmpeg
    8484        $self->SUPER::export($episode, '.mp3');
    8585    # Now tag it