반응형

출처 : https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

출처 : https://trac.ffmpeg.org/wiki/Encode/H.265


ffmpeg ERROR: x265 not found using pkg-config??


ibx265

H.265/HEVC video encoder. See the H.265 Encoding Guide for more information and usage examples.

sudo apt-get install cmake mercurial
cd ~/ffmpeg_sources
hg clone https://bitbucket.org/multicoreware/x265
cd ~/ffmpeg_sources/x265/build/linux
PATH="$HOME/bin:$PATH" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
make
make install
make distclean


ffmpeg configure 는 다음과 같이 한다.

PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"

./configure --enable-libx264 --enable-libmp3lame --enable-gpl --enable-ffplay --prefix=$PWD/out \

--enable-static --enable-filter=drawtext --enable-gpl --enable-nonfree \

--enable-version3 --enable-libass --enable-libmp3lame --enable-libopenjpeg \

--enable-libfaac --enable-libfdk-aac --enable-x11grab --enable-opengl \

--enable-hwaccel=h264_vdpau --enable-parser=h264 --enable-decoder=h264_vdpau \

--enable-libx265 \

--extra-cflags="-I$HOME/ffmpeg_build/include" \

--extra-ldflags="-L$HOME/ffmpeg_build/lib" \

--bindir="$HOME/bin" \

--pkg-config-flags="--static"


ffmpeg -i input -c:v libx265 -preset medium -crf 28 -c:a aac -b:a 128k output.mp4


반응형

'멀티미디어' 카테고리의 다른 글

exoplayer  (0) 2018.03.05
DVB (DTV) 구조 포스터?  (0) 2016.04.08
ffmpeg static build  (0) 2016.02.04
Posted by Real_G