Official Website

  http://www.ffmpeg.org/

Download Source

  git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

Configure & Build

  ./configure ; make -j4

Configure for enable libx264 & libfaac on Ubuntu

  sudo apt-get install libx264-dev libfaac-dev
  ./configure --enable-gpl --enable-libx264 --enable-nonfree --enable-libfaac

Push Stream To Server Over RTMP

  ./ffmpeg -i rtsp://10.0.0.179:554/12 -f flv -vcodec libx264 -acodec adpcm_swf -ar 44100 -ab 128k rtmp://203.195.187.198:1935/livestream/qtp7uut7

Save AAC Audio Only

  ./ffmpeg -i rtsp://10.0.0.101:554/12 -y -vn -acodec libfaac ../build-RtspTest-Desktop-Debug/test.aac