Configure and install ffmpeg

Get source code

  • svn checkout svn:// ffmpeg
  • Needs libfaac…


    hmmm… that seemed to require

    yum install gcc-c++

    to get g++ to work

    Also needs x264
    But x264 needs yasm…


    OK, got yasm, now

    Be sure to ./configure –enable-shared

    There was an issue using on another system I maintain, had to fall back on . errors like

    In function `X264_init':
    /tmp/ffmpeg/libavcodec/libx264.c:284: undefined reference to
    `x264_encoder_open_79' and ffmpeg from SVN seem to take care of that.

    OK, at last we con configure ffmpeg with

    ./configure --disable-ffplay --disable-demuxer=v4l_demuxer --enable-libx264 --enable-gpl --enable-shared --enable-libfaac --enable-nonfree

    Lastly, always need to set env

    Now, we can type

    ffmpeg -y -i /users/w/a/waw/red5/webapps/oflaDemo/streams/bob/intro.flv -acodec libfaac -ab 96k -ar 44100 -vcodec libx264 -vpre hq -crf 22 -flags2 -bpyramid /users/w/a/waw/red5/webapps/oflaDemo/streams/bob/intro.mp4

    Oops — almost forgot. Also need to set working directory to ffmpeg/tools and make qt-faststart , then copy qt-faststart to /usr/local/bin

    About Wesley Wright

    Born on a mountain top near New York City, Craziest state in the land of the pretty. Raised in the woods so's he knew every tree, Killed him a bear when he was only three.
    This entry was posted in Projects, Systems and Servers, Video and Audio. Bookmark the permalink.