LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-11-2021, 02:50 AM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 792
Blog Entries: 3

Rep: Reputation: 271Reputation: 271Reputation: 271
building ffmpeg with nvenc? (for OBS stream/capture)


I haven't been able to get this working the several times i've tried.
In the ffmpeg.Slackbuild it mentions;

Code:
# Configure ffmpeg features not autodetected by default.
# You can enable a lot of optional (not-autodetected) features by
# passing variables to the script (VAR=yes/no ./ffmpeg.SlackBuild).
# Unfortunately ffmpeg's configure doesn't support --enable-feature=yes
# syntax, so we have to do it the complicated way :/
# Additional optional (autodetected) dependencies are:
# - bzip2
# - libva
# - libvdpau
# - libX11
# - libxcb
# - nvdec/nvenc
# - sdl2
# - xz
# - zlib
It doesn't seem to be auto detected after installing the nvidia related headers and rebuilding the package;
https://developer.nvidia.com/nvidia-video-codec-sdk and manually setting --enable-nvenc tries to build it from within the slackbuild, but still complains about missing headers/libraries.

Wondering if anyone is using nvenc on slackware and knows how to get this working correctly?

I'm mostly just looking for the nvenc codec to process video within OBS, such as:
https://www.gamingonlinux.com/articl...ly-great.8417/
 
Old 05-11-2021, 04:30 AM   #2
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,222

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
You have tried this?

https://slackbuilds.org/repository/1...codec-headers/
 
1 members found this post helpful.
Old 05-11-2021, 06:38 AM   #3
mumahendras3
Member
 
Registered: Feb 2018
Location: Indonesia
Distribution: Slackware-current with s6 + s6-rc + s6-linux-init
Posts: 109

Rep: Reputation: Disabled
Hi, I have been using nvenc encoders in obs for some time now. All I have to do is (iirc) install cudatoolkit and nv-codec-headers from SBo then recompile ffmpeg. My system is Slackware-current
 
2 members found this post helpful.
Old 05-11-2021, 07:29 AM   #4
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 792

Original Poster
Blog Entries: 3

Rep: Reputation: 271Reputation: 271Reputation: 271
Thanks both. I did not spot the nv-codec-headers on slackbuilds previously. I will give that a shot, thanks.
 
Old 05-11-2021, 07:52 AM   #5
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 792

Original Poster
Blog Entries: 3

Rep: Reputation: 271Reputation: 271Reputation: 271
Yep, works great, thanks. I'll mark as solved
Code:
> $ for i in encoders decoders filters; do                                                                                                                                                    
    echo $i:; ffmpeg -hide_banner -${i} | egrep -i "npp|cuvid|nvenc|cuda|nvdec"
done                                      
encoders:
 V....D h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
 V..... nvenc                NVIDIA NVENC H.264 encoder (codec h264)
 V..... nvenc_h264           NVIDIA NVENC H.264 encoder (codec h264)
 V..... nvenc_hevc           NVIDIA NVENC hevc encoder (codec hevc)
 V....D hevc_nvenc           NVIDIA NVENC hevc encoder (codec hevc)
decoders:
 V..... av1_cuvid            Nvidia CUVID AV1 decoder (codec av1)
 V..... h264_cuvid           Nvidia CUVID H264 decoder (codec h264)
 V..... hevc_cuvid           Nvidia CUVID HEVC decoder (codec hevc)
 V..... mjpeg_cuvid          Nvidia CUVID MJPEG decoder (codec mjpeg)
 V..... mpeg1_cuvid          Nvidia CUVID MPEG1VIDEO decoder (codec mpeg1video)
 V..... mpeg2_cuvid          Nvidia CUVID MPEG2VIDEO decoder (codec mpeg2video)
 V..... mpeg4_cuvid          Nvidia CUVID MPEG4 decoder (codec mpeg4)
 V..... vc1_cuvid            Nvidia CUVID VC1 decoder (codec vc1)
 V..... vp8_cuvid            Nvidia CUVID VP8 decoder (codec vp8)
 V..... vp9_cuvid            Nvidia CUVID VP9 decoder (codec vp9)
filters:
 ... hwupload_cuda     V->V       Upload a system memory frame to a CUDA device.
 
  


Reply

Tags
ffmpeg, nvenc, nvidia, slackbuild


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: OBS Studio Stream From Linux Distribution LXer Syndicated Linux News 0 07-14-2020 10:21 AM
LXer: How I stream video with OBS and WebSockets LXer Syndicated Linux News 0 06-14-2020 12:36 AM
[SOLVED] Slackware 14.1, ffmpeg nvenc encoding slacktroll Slackware 6 10-24-2016 05:39 AM
[SOLVED] Running ffmpeg / obs with nvenc as a normal user af7567 Slackware 1 09-05-2016 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration