Results 1 to 3 of 3

Thread: HOWTO: compile ffmpeg with mp3 support in Gutsy

  1. #1
    Join Date
    Feb 2007
    Location
    Switzerland
    Beans
    61
    Distro
    Xubuntu 12.04 Precise Pangolin

    HOWTO: compile ffmpeg with mp3 support in Gutsy

    The task: I want to download funny movies from youtube etc. to my mobile music/video player (Cowon iAudio7, and also a friend's Cowon D2). The players need avi video files with mp3 audio in it.

    The problem: The program ffmpeg from the Ubuntu repositories is compiled without mp3 support. Therefore
    Code:
    sudo apt-get install ffmpeg
    or something similar (like installing ffmpeg from Synaptic) does not help.
    I know, there are very good reasons for Ubuntu not to contain certain types of software like the mp3 codecs, but personally, i'm rather able to make Ubuntu encode mp3 than to make my Cowon play movies with free audio codecs...

    The solution: We'll have to compile our own ffmpeg with mp3 support (based on http://symbiotix.net/articles/compil...er#comment-543 which worked for me, except for some points)

    0. Make sure that ffmpeg is not installed (not sure if that's necessary)
    Code:
    sudo apt-get remove ffmpeg
    1. enable universe and multiverse repositories
    https://help.ubuntu.com/8.04/add-app...ositories.html

    2. get your tools

    Code:
    sudo apt-get install checkinstall build-essential subversion
    3. get the latest ffmpeg sources

    Code:
    cd /usr/local/src
    Code:
    sudo svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
    4. get the necessary dependencies

    Code:
    sudo apt-get install liblame-dev libfaad-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libx264-dev
    5. configure

    Code:
    cd ffmpeg
    Code:
    sudo ./configure --enable-gpl --enable-liba52 --disable-debug --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-pthreads --disable-vhook
    6. compile

    Code:
    sudo make
    This will take a lot of time.

    7. create the .deb package

    Code:
    sudo checkinstall
    note: just press [return] each time when asked for a configuration option.
    In my case, this directly installed the newly generated deb package, so i could skip step 8. If that's not the case for you, do step 8.

    8. install the .deb package

    Code:
    sudo dpkg -i [ffmpeg_your_version.deb]
    9. Refresh the path environment variables in order for your system to find the new ffmpeg
    Code:
    sudo rehash
    ---

    Now your ffmpeg should be able to convert videos with mp3 audio, e.g.
    Code:
    ffmpeg -i input_youtube_video.flv -vcodec mpeg4 -s 160x128 -vb 256k -r 15 -acodec libmp3lame output.avi
    What's just sad: My Cowon iAudio7 still does not like the movie. So if anyone can tell me the right ffmpeg parameters for that Cowon model...
    m'enfin?!

  2. #2
    Join Date
    Apr 2005
    Location
    My dreams
    Beans
    3,558
    Distro
    Ubuntu 16.04 Xenial Xerus

    Post Re: HOWTO: compile ffmpeg with mp3 support in Gutsy

    Another easier solution is to install the version of FFMpeg that the Medibuntu repository offers that has the support for MP3 and other restricted formats enabled

  3. #3
    Join Date
    Feb 2007
    Location
    Switzerland
    Beans
    61
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: HOWTO: compile ffmpeg with mp3 support in Gutsy

    @kostkon: Don't tell me all this fuss was completely unnecessary... No, of course, tell me so, thank you very much. I'll try this as soon as I'm back home.
    m'enfin?!

Tags for this Thread

Bookmarks

Posting Permissions

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