Ok I got it working,

All I had to do is compile with lame enabled like this:

./configure --enable-libmp3lame
make
sudo make install

Now everything is back to normal except that lame does not really encode to
my selected sample rate. Something that I will live with for now, hoping it
will be fixed in the future:

avconv -i iTunes_test1_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a -ar 44100
-ab 40000 -ac 2 -acodec libmp3lame 44100.mp3

avconv -i iTunes_test1_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a -ar 22050
-ab 40000 -ac 2 -acodec libmp3lame 22050.mp3

-rw-rw-r-- 1 jacques jacques 1538375 Feb 13 12:10 22050.mp3
-rw-rw-r-- 1 jacques jacques 1538244 Feb 13 12:13 44100.mp3

As you can see only a few bytes different.

avconv version 9.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb 13 2013 12:08:41 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'iTunes_test1_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 0
    compatible_brands: M4A mp42isom
    creation_time   : 2008-11-13 11:53:16
    title           : Long0
    gapless_playback: 0
    encoder         : iTunes 8.0.0.35, QuickTime 7.5.5
  Duration: 00:05:07.52, start: 0.000000, bitrate: 130 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      creation_time   : 2008-11-13 11:53:16
File '22050.mp3' already exists. Overwrite ? [y/N] y
Output #0, mp3, to '22050.mp3':
  Metadata:
    major_brand     : M4A
    minor_version   : 0
    compatible_brands: M4A mp42isom
    TDEN            : 2008-11-13 11:53:16
    TIT2            : Long0
    gapless_playback: 0
    TSSE            : Lavf54.20.3
    Stream #0.0(und): Audio: libmp3lame, 22050 Hz, stereo, fltp, 40 kb/s
    Metadata:
      creation_time   : 2008-11-13 11:53:16
Stream mapping:
  Stream #0:0 -> #0:0 (aac -> libmp3lame)
Press ctrl-c to stop encoding
size=    1502kB time=307.53 bitrate=  40.0kbits/s
video:0kB audio:1501kB global headers:0kB muxing overhead 0.078065%


Versus,


avconv version 9.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb 13 2013 12:08:41 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'iTunes_test1_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 0
    compatible_brands: M4A mp42isom
    creation_time   : 2008-11-13 11:53:16
    title           : Long0
    gapless_playback: 0
    encoder         : iTunes 8.0.0.35, QuickTime 7.5.5
  Duration: 00:05:07.52, start: 0.000000, bitrate: 130 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      creation_time   : 2008-11-13 11:53:16
File '44100.mp3' already exists. Overwrite ? [y/N] y
Output #0, mp3, to '44100.mp3':
  Metadata:
    major_brand     : M4A
    minor_version   : 0
    compatible_brands: M4A mp42isom
    TDEN            : 2008-11-13 11:53:16
    TIT2            : Long0
    gapless_playback: 0
    TSSE            : Lavf54.20.3
    Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, fltp, 40 kb/s
    Metadata:
      creation_time   : 2008-11-13 11:53:16
Stream mapping:
  Stream #0:0 -> #0:0 (aac -> libmp3lame)
Press ctrl-c to stop encoding
size=    1502kB time=307.53 bitrate=  40.0kbits/s
video:0kB audio:1501kB global headers:0kB muxing overhead 0.095004%



On Wed, Feb 13, 2013 at 8:29 AM, Jacques Koorts <[email protected]> wrote:

> Just a note I have installed,
>
> sudo apt-get install libmp3lame0
> sudo apt-get install libavcodec-extra-52
> sudo apt-get install libavcodec-extra-53
>
> sudo apt-get install ubuntu-restricted-extras
>
> I also installed libmp3lame-dev through Ubuntu Sofware Center
>
> I also ran the INSTALL instructions after I did all these installation
> calls.
>
> avconv -codecs shows this:
>
> D.A.L. mp3                  MP3 (MPEG audio layer 3) (decoders: mp3
> mp3float )
>
> and so I tried:
>
> avconv -i iTunes_test1_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a -ar 22050
> -ab 40000 -ac 2 -acodec mp3 22050.mp3
> avconv -i iTunes_test1_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a -ar 22050
> -ab 40000 -ac 2 -acodec mp3float 22050.mp3
>
> The same errors.
>
> avconv -i iTunes_test1_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a -ar 22050
> -ab 40000 -ac 2 -acodec libmp3lame 22050.mp3
>
>
> avconv version 9.1, Copyright (c) 2000-2013 the Libav developers
>   built on Feb 13 2013 07:23:15 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> 'iTunes_test1_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a':
>   Metadata:
>     major_brand     : M4A
>     minor_version   : 0
>     compatible_brands: M4A mp42isom
>     creation_time   : 2008-11-13 11:53:16
>     title           : Long0
>     gapless_playback: 0
>     encoder         : iTunes 8.0.0.35, QuickTime 7.5.5
>   Duration: 00:05:07.52, start: 0.000000, bitrate: 130 kb/s
>     Stream #0.0(und): Audio: aac, 44100 Hz, stereo, fltp, 128 kb/s
>     Metadata:
>       creation_time   : 2008-11-13 11:53:16
> Unknown encoder 'libmp3lame'
>
>
>
>
> On Wed, Feb 13, 2013 at 7:45 AM, Jacques Koorts <[email protected]> wrote:
>
>> Ok so I downloaded the latest version. Read the INSTALL file. Did what I
>> was told and now I have avconv 9.1. But now avconv does not find libmp3lame
>> suddenly. Will this ever end?
>>
>> avconv version 9.1, Copyright (c) 2000-2013 the Libav developers
>>   built on Feb 13 2013 07:23:15 with gcc 4.7 (Ubuntu/Linaro
>> 4.7.2-2ubuntu1)
>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
>> 'iTunes_test1_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a':
>>   Metadata:
>>     major_brand     : M4A
>>     minor_version   : 0
>>     compatible_brands: M4A mp42isom
>>     creation_time   : 2008-11-13 11:53:16
>>     title           : Long0
>>     gapless_playback: 0
>>     encoder         : iTunes 8.0.0.35, QuickTime 7.5.5
>>   Duration: 00:05:07.52, start: 0.000000, bitrate: 130 kb/s
>>     Stream #0.0(und): Audio: aac, 44100 Hz, stereo, fltp, 128 kb/s
>>     Metadata:
>>       creation_time   : 2008-11-13 11:53:16
>> Unknown encoder 'libmp3lame'
>>
>>
>>
>> On Tue, Feb 12, 2013 at 5:58 PM, Justin Ruggles <[email protected]
>> > wrote:
>>
>>> On 02/12/2013 02:34 AM, Jacques Koorts wrote:
>>> > I have a 4 channel wav that cannot be converted to mp3 using the lame
>>> > encoder.
>>> >
>>> > The following command does not work.
>>> >
>>> > avconv -i drmapan.wav -ar 22050 -ac 2 test.mp3
>>> >
>>> > I get:
>>> >
>>> > avconv version 0.8.5-6:0.8.5-0ubuntu0.12.10.1, Copyright (c) 2000-2012
>>> > the Libav developers
>>> >   built on Jan 24 2013 14:49:20 with gcc 4.7.2
>>> > Input #0, wav, from 'drmapan.wav':
>>> >   Duration: 00:00:04.78, bitrate: 1411 kb/s
>>> >     Stream #0.0: Audio: pcm_s16le, 22050 Hz, quad, s16, 1411 kb/s
>>> > File 'test.mp3' already exists. Overwrite ? [y/N] y
>>> > [mp3 @ 0x855860] Unsupported sample rate.
>>> > Output #0, mp3, to 'test.mp3':
>>> >   Metadata:
>>> >     TSSE            : Lavf53.21.1
>>> >     Stream #0.0: Audio: libmp3lame, 22050 Hz, 2 channels, s16, 200 kb/s
>>> > Stream mapping:
>>> >   Stream #0:0 -> #0:0 (pcm_s16le -> libmp3lame)
>>> > Press ctrl-c to stop encoding
>>> > Resampling output channel count must be 1 or 2 for mono input; 1, 2 or
>>> 6
>>> > for stereo input; or N for N channel input.
>>> > Can not resample 4 channels @ 22050 Hz to 2 channels @ 22050 Hz
>>>
>>> You need a newer version. The conversion from quad to stereo is
>>> currently supported.
>>>
>>> -Justin
>>> _______________________________________________
>>> libav-tools mailing list
>>> [email protected]
>>> https://lists.libav.org/mailman/listinfo/libav-tools
>>>
>>
>>
>
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools

Reply via email to