Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2007
    Posts
    193

    ffmpeg mp3 encoder

    whenever i try to convert a file using -acodec mp3 it says

    Unknown encoder 'mp3'

    Kindly help me out

  2. #2
    Join Date
    Dec 2002
    Location
    chica go go
    Posts
    11,858
    install lame.

  3. #3
    Join Date
    Sep 2002
    Location
    Among the corn
    Posts
    10,622
    That's the short answer:
    The long answer (and this should probably be in programming issues)

    A> install lame
    B> where you would call something like

    Code:
    -acodec mp3
    change that to
    Code:
    -acodec libmp3lame
    Of course this all depends on how you're calling the codec, but that should at least get you going.

  4. #4
    Join Date
    Aug 2007
    Posts
    193
    still its not working.. i tried both.. have reconfigured ffmpeg with lame.. have checked lame is working..

    And i tried converting avi to mobile format avi files but the video doesnt plays, audio is working.. am using -vcodec mpeg4

  5. #5
    Join Date
    Aug 2007
    Posts
    193
    i get this error

    FFmpeg version SVN-r10676, Copyright (c) 2000-2007 Fabrice Bellard, et al.
    configuration: --enable-shared --enable-libmp3lame --enable-libxvid --enable-libogg --enable-libvorbis --enable-gpl
    libavutil version: 49.5.0
    libavcodec version: 51.44.0
    libavformat version: 51.14.0
    built on Nov 10 2007 00:57:32, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
    Input #0, avi, from 'Jaane.avi':
    Duration: 00:03:20.7, start: 0.000000, bitrate: 179 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 208x150, 23.98 fps(r)
    Stream #0.1: Audio: mp3, 22050 Hz, stereo, 32 kb/s
    Unknown encoder 'mp3'

  6. #6
    Join Date
    Aug 2007
    Posts
    193
    when i do

    ffmpeg -formats | grep mp3


    it gives

    FFmpeg version SVN-r10676, Copyright (c) 2000-2007 Fabrice Bellard, et al.
    configuration: --enable-shared --enable-libmp3lame --enable-libxvid --enable-libogg --enable-libvorbis --enable-gpl
    libavutil version: 49.5.0
    libavcodec version: 51.44.0
    libavformat version: 51.14.0
    built on Nov 10 2007 00:57:32, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
    DE mp3 MPEG audio layer 3
    D A mp3
    D A mp3adu
    D A mp3on4


    which means mp3 can be used for Decoding but not for encoding ( E ) , so any way to make it work

  7. #7

    *

    Hey there,

    Did you manage to get this working? I've got LAME installed, but when trying to strip the audio out of my video file, I'm still getting "Unknown encoder 'libmp3lame'"??

    Below is the result. Does anyone know what could be the problem? Help would be greatly appreciated!!


    ---------------------------------

    ffmpeg -i 1211956181_party_at_kevins.wmv -acodec libmp3lame -vn kevins01.flv
    FFmpeg version SVN-r12223, Copyright (c) 2000-2008 Fabrice Bellard, et al.
    configuration: --enable-libmp3lame
    libavutil version: 49.6.0
    libavcodec version: 51.50.1
    libavformat version: 52.7.0
    libavdevice version: 52.0.0
    built on Jun 2 2008 11:24:39, gcc: 3.4.6 20060404 (Red Hat 3.4.6-9)

    Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 24.00 (24/1)
    Input #0, asf, from '1211956181_party_at_kevins.wmv':
    Duration: 00:00:30.7, start: 3.000000, bitrate: 401 kb/s
    Stream #0.0: Audio: wmav2, 32000 Hz, stereo, 48 kb/s
    Stream #0.1: Video: wmv2, yuv420p, 320x240 [PAR 0:1 DAR 0:1], 350 kb/s, 24.00 tb(r)
    Unknown encoder 'libmp3lame'

    ---------------------------------

    Thanks,
    Jayden

  8. #8
    Join Date
    Sep 2002
    Location
    Among the corn
    Posts
    10,622
    remove libmp3lame from the configuration mess.

  9. #9
    Wow - thanks for the speedy reply. Apologies in advance - I'm a bit of a noob with ffmpeg. Could you explain how do to this please? And why I have to do it? No worries if you don't have time for the last question!

  10. #10
    Also tried with the example from the ffmpeg documentation (ffmpeg.mplayerhq.hu/ffmpeg-doc.html). Same result

    --------------------------------

    ffmpeg -i 1211956181_party_at_kevins.wmv -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec libmp3lame -ab 128k kevins01.flv
    FFmpeg version SVN-r12223, Copyright (c) 2000-2008 Fabrice Bellard, et al.
    configuration: --enable-libmp3lame
    libavutil version: 49.6.0
    libavcodec version: 51.50.1
    libavformat version: 52.7.0
    libavdevice version: 52.0.0
    built on Jun 2 2008 11:24:39, gcc: 3.4.6 20060404 (Red Hat 3.4.6-9)

    Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 24.00 (24/1)
    Input #0, asf, from '1211956181_party_at_kevins.wmv':
    Duration: 00:00:30.7, start: 3.000000, bitrate: 401 kb/s
    Stream #0.0: Audio: wmav2, 32000 Hz, stereo, 48 kb/s
    Stream #0.1: Video: wmv2, yuv420p, 320x240 [PAR 0:1 DAR 0:1], 350 kb/s, 24.00 tb(r)
    Unknown encoder 'libmp3lame'

    --------------------------------

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •