
This is nothing to do with ffmpeg: libva cannot be linked into a static binary because it requires the dynamic linker to do driver loading. Libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so ffmpeg_g -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i /tmp/original.ts -vf 'format=nv12|vaapi,hwupload' -c:v h264_vaapi -an /tmp/encoded.mp4įfmpeg version n3.1.5 Copyright (c) 2000-2016 the FFmpeg developersīuilt with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609Ĭonfiguration: -prefix=/usr/local -enable-pic -enable-gpl -enable-version3 -enable-nonfree -enable-static -disable-shared -disable-ffplay -disable-doc -extra-cflags=-static -extra-libs='-static -lva -ldl -ldrm -lm' -enable-debug extra-libs="-static -lva -ldl -ldrm -lm" \

(to build static binary with vaapi support, I have to set "-extra-libs" value.

Static build ffmpeg segmentation faults when using VA-API hardware encoding.īuild ffmpeg statically as below on Ubuntu 16.04
