sábado, 21 de agosto de 2010

[Solución] Symbol av_destruct_packet, version LIBAVFORMAT_52 not defined in file libavformat.so.52 with link time reference


El problema les ocurre a los que utilizan la versión 0.6 de ffmepg, he encontrado la solución en Launchpad:
  1. Desinstalar x264, libx264-dev, y ffmpeg:
    sudo apt-get remove ffmpeg x264 libx264-dev 
  2. Obtener los paquetes necesarios para instalar ffmpeg y x264:
    sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev
  3. Instalar x264
    cd 
    git clone git://git.videolan.org/x264.git 
    cd x264 
    ./configure 
    make 
    sudo checkinstall --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`+`git rev-list HEAD -n 1 | head -c 7`" --backup=no --default
  4. Instalar libtheora (opcional), esto sirve para codificar a theora, si no vas a instalarlo elimina "--enable-libtheora" en el paso 5:
    sudo apt-get install libogg-dev
    cd
    wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
    tar xzvf libtheora-1.1.1.tar.gz
    cd libtheora-1.1.1
    ./configure --disable-shared
    make
    sudo checkinstall --pkgname=libtheora --pkgversion "1.1.1" --backup=no --default
  5. Instalar ffmepg
    cd
    svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
    cd ffmpeg
    ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
    make
    sudo checkinstall --pkgname=ffmpeg --pkgversion "4:0.5+svn`date +%Y%m%d`" --backup=no --default
    hash x264 ffmpeg
Para revertir los cambios:
sudo apt-get remove x264 ffmpeg build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libsdl1.2-dev libtheora libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev

Mas información: Ubuntu Forums