Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OBS on Linux supports using the Nvidia NVENC for H.264 encoding. To get this working, one must compile ffmpeg wtih nvenc support. Check it out!
- Requirements:
- nvidia proprietary driver installed
- Step 1:
- Download and extract Nvidia nvenc sdk from: https://developer.nvidia.com/nvidia-video-codec-sdk
- From that download, copy the file
- /Video_Codec_SDK_7.0.1/Samples/nvEncoder/NvEncoder.h
- to
- /usr/local/include
- Step 2:
- Download and extract the Nvidia cuda sdk from: https://developer.nvidia.com/cuda-downloads
- Copy
- cuda.h
- to
- /usr/local/include
- Step 3:
- Grab the latest ffmpeg and configure with:
- --enable-nonfree --enable-nvenc
- Compiling and installing ffmpeg may vary wildly by distro, or you may have your own preferred way to compile and build ffmpeg.
- Debian Example
- Below are debian specific using the latest nvidia driver from nvidia.com with steps which will result in a .deb file installed and ffmpeg executable at /usr/local/bin/ffmpeg
- sudo apt build-dep ffmpeg sudo apt install yasm nasm build-essential automake autoconf libtool pkg-config libcurl4-openssl-dev intltool libxml2-dev libgtk2.0-dev libnotify-dev libglib2.0-dev libevent-dev checkinstall libavcodec-extra57
- git clone git://git.videolan.org/ffmpeg.git
- cd ffmpeg
- ./configure --prefix=/usr/local --extra-version=1+b3 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 --enable-pic --enable-nonfree --enable-nvenc
- make -j4
- sudo checkinstall
- ###
- ### Backup da página : http://www.linuxnews.pro/how-to-enable-nvidia-nvenc-for-obs-in-linux/
- ### A página acima encontra-se offline, só acessível pelo cache da Google. Fiz esse backup para caso o site esteja desativado, não se perder a dica.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement