
The information from or through the Service is provided on "AS IS" basis. ~/Development/ffmpeg_build $ sudo ldconfig ~/Development/ffmpeg_build $ sudo make install Nvresize V->N GPU accelerated video resizer. nvenc_h264 NVIDIA NVENC h264 encoder (codec h264)Ĭheck that FFmpeg has the NVRESIZE video filter. nvenc NVIDIA NVENC h264 encoder (codec h264) libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264) We can filter the list down to h.264 encoders with “grepĢ64”. If NVENC and libx264 built properly you should get


~/Development/ffmpeg_build $ make -j 4Ĭheck that FFmpeg works. ffmpeg/configure -enable-nonfree \īuild FFmpeg. ffmpeg_NVIDIA_gpu_acceleration.patchĬonfigure FFmpeg with NVENC, NVRESIZE and x264 support. ~/Development/ $ wget Īpply the NVIDIA acceleration patch. ~/Development/ $ git clone git:///ffmpeg.gitĭownload the NVIDIA acceleration.

Get x264 ~/Development $ git clone git:///x264.gitĬonfigure x264 ~/Development/x264 $. ~/Development/ $ unzip cudautils.zipīuild the CUDA utility. ~/Development/ $ wget Ĭopy the CUDA utility to ~/Development/. Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (nvenc))Įrror while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heightHere is the script that I used to compile ffmpeg.Download and install a light-weight library to communicate with the CUDA display driver. Output #0, matroska, to '/home/ben/test.mkv': > dl_fn->cu_init(0) - failed with error code 0x3e7 ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 -vcodec nvenc -b:v 4500k ~/test.mkvįfmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developersīuilt with gcc 4.9.1 (Ubuntu 4.9.1-16ubuntu6)Ĭonfiguration: -prefix=/home/ben/ffmpeg_build -extra-cflags=-I/home/ben/ffmpeg_build/include -extra-ldflags=-L/home/ben/ffmpeg_build/lib -bindir=/home/ben/bin -enable-gpl -enable-libass -enable-libfdk-aac -enable-libfreetype -enable-libmp3lame -enable-libopus -enable-libtheora -enable-libvorbis -enable-libvpx -enable-libx264 -enable-nonfree -enable-nvencĭuration: N/A, start: 1427760847.294773, bitrate: N/A
