libav on raspbian

sudo apt-get install build-essential yasm pkg-config zlib1g-dev texi2html
sudo apt-get install librtmp-dev libtheora-dev libvorbis-dev libopencore-amrnb-dev libopencore-amrwb-dev libmp3lame-dev libx264-dev libvpx-dev
wget http://downloads.sourceforge.net/opencore-amr/fdk-aac-0.1.4.tar.gz
tar xvfz fdk-aac-0.1.4.tar.gz
cd fdk-aac-0.1.4
./configure --enable-shared=no
make
sudo make install
wget https://libav.org/releases/libav-12.tar.xz
tar xvf libav-12.tar.xz
cd libav-12
./configure --arch=armel --target-os=linux --enable-static --enable-version3 \
--enable-gpl --enable-nonfree --enable-libfdk-aac \
--enable-libmp3lame --enable-libvorbis \
--enable-libvpx --enable-libx264 --enable-libtheora \
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp \
--enable-omx-rpi --enable-mmal
make -j4
sudo make install
# h264_omx
./libav-12/avconv -i ./Big\ Buck\ Bunny-LO2ikmgd7bM.mp4 -c:a copy -c:v h264_omx -b:v 1024k sample01.mp4
# libx264
./libav-12/avconv -i ./Big\ Buck\ Bunny-LO2ikmgd7bM.mp4 -c:a copy -c:v libx264 -b:v 1024k sample02.mp4

글쓴이

yupmin

Inside Deep Throat.

답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.