OvenMediaEngine Enterprise를 RPM/DEB 패키지 파일로 설치할 경우, 해당 장비에 NVIDIA 그래픽 카드 또는 Xilinx Alveo U30MA 카드와 드라이버만 설치되어 있으면 Hardware-Accelerated Video Encoding이 자동으로 활성화됩니다. 그래픽 드라이버는 RPM/DEB 패키지 설치 후에도 재설치, 업데이트 및 삭제가 가능하며 프로그램 실행에 영향을 주지 않습니다. 이 문서에서는 지원 버전, 지원 코덱, 드라이버 설치 및 확인 방법에 대해 설명합니다.
지원 OS 및 드라이버 버전
Device
Support OS
Driver Verion
NVIDIA
Ubuntu 20.04,
Ubuntu 22.04
Rocky 9
NVIDIA Driver 470+
CUDA Driver 10.1+
Xilinx Alveo U30MA
Ubuntu 20.04,
Ubuntu 22.04
Xilinx Video SDK 3.0
지원 코덱
Device
Decoder
Filter
Encoder
NVIDIA
H.264, H.265
Sclaer
H.264, H.265
Xilinx Alveo U30MA
H.264, H.265
Sclaer
H.264, H.265
드라이버 설치 및 확인 방법
NVIDIA 그래픽 드라이버
이 문서의 내용은 Open-Source로 릴리즈된 OvenMediaEngine에서 제공되는 misc/install_nvidia_driver.sh 스크립트를 기반으로 작성되었습니다. 설치가 안 될 경우, NVIDIA 공식 문서를 참고하시기 바랍니다.
Ubuntu Linux 20.04 / 22.04
sudoapt-get-yupdatesudoapt-get-yinstall--no-install-recommendsapt-utilslshwsudoapt-get-yinstall--no-install-recommendskeyboard-configurationsudoapt-get-yinstall--no-install-recommendsubuntu-drivers-commonsudoapt-get-yinstall--no-install-recommendsgnupg2ca-certificatessoftware-properties-common# Uninstalling a previously installed NVIDIA Driversudoapt-get-yremove--purgenvidia-*sudoapt-get-yautoremovesudoapt-get-yupdate# Remove the nouveau driver.# If the nouveau driver is in use, the nvidia driver cannot be installed.USE_NOUVEAU=`sudolshw-classvideo|grepnouveau`if [ !-z"$USE_NOUVEAU" ]; then# Disable nouveau Driverecho"blacklist nouveau">>/etc/modprobe.d/blacklist.confecho"blacklist lbm-nouveau">>/etc/modprobe.d/blacklist.confecho"options nouveau modeset=0">>/etc/modprobe.d/blacklist.confecho"alias nouveau off">>/etc/modprobe.d/blacklist.confecho"alias lbm-nouveau off">>/etc/modprobe.d/blacklist.confsudoupdate-initramfs-u echo "Using a driver display nouveau.Remove the driver and reboot.Reboot and installation script to rerun the nvidia display the driver to complete the installation."
sleep5srebootfi# Custom Driver VersionNVIDIA_DRIVER_VERSION=# Install nvidia drivers and cuda-toolitsudoadd-apt-repository-yppa:graphics-drivers/ppasudoapt-yupdateif [ -z"$NVIDIA_DRIVER_VERSION" ]then# installation with recommended versionsudoubuntu-driversautoinstallelse# installation with specific versionsudoapt-getinstall-y--no-install-recommendsnvidia-driver-${NVIDIA_DRIVER_VERSION}fisudoapt-getinstall-y--no-install-recommendsnvidia-cuda-toolkit
Rocky Linux (검증 필요)
sudoyum-yupdatesudoyum-yinstallkernel-develsudoyum-yinstallepel-releasesudoyum-yinstalldkmscurllshwsudoyum-yinstallsubscription-managerecho"Reboot is required to run with a new version of the kernel."# Remove the nouveau driver.USE_NOUVEAU=`lshw-classvideo|grepnouveau`if [ !-z"$USE_NOUVEAU" ]; then# Disable nouveau Driver sudo sed "s/GRUB_CMDLINE_LINUX=\"\(.*\)\"/GRUB_CMDLINE_LINUX=\"\1 rd.driver.blacklist=nouveau nouveau.modeset=0\"/" /etc/default/grub
sudogrub2-mkconfig-o/boot/grub2/grub.cfgsudoecho"blacklist nouveau">>/etc/modprobe.d/blacklist.confsudomv/boot/initramfs-$(uname-r).img/boot/initramfs-$(uname-r)-nouveau.imgsudodracut/boot/initramfs-$(uname-r).img $(uname-r)echo"Using a driver display nouveau. so, remove the driver and reboot. " echo "After reboot and installation script to rerun the nvidia display the driver to complete the installation."
sleep5ssudorebootfisudosubscription-managerrepos--enable=rhel-7-server-optional-rpmssudo yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo
sudoyumcleanexpire-cachesudoyum-yinstallnvidia-driver-latest-dkmssudoyum-yinstallcudasudoyum-yinstallcuda-drivers
RPM/DEB 패키지와 드라이버 설치가 완료되면, OvenMediaEngine에서 드라이버가 정상적으로 로드되어 Hardware-Accelerated Video Encoding 기능이 활성화되었는지 확인해야 합니다. 이를 확인하기 위해 OvenMediaEngine 의 로그 파일로부터 확인 할 수 있습니다.