![]() I've been trying to rebuild OBS Studio from the SRPMS, but it keeps failing with a string of similar errors like this:Ĭode: Select all /usr/bin/ld: /opt/ffmpeg/bin/./lib/libavcodec.a(h264_weight_10bit.o): relocation R_X86_64_PC32 against symbol `ff_pw_1' can not be used when making a shared object recompile with -fPIC However, OBS Studio still doesn't pick it up. Thanks to wintpe, I now have ffmpeg working with NVenc. Hope this helps you as well as others, it took me sometime to get it all working (all based on mga7 install) opt/ffmpeg/bin/ffmpeg -hwaccel_device 0 -hwaccel cuvid -i input_file.mkv -c:v h264_nvenc -preset slow -rc cbr_hq -b:v 7000k -maxrate 10000k -bufsize 1000k -profile:v high -level:v 4.1 -pix_fmt yuv420p -flags global_header -c:a ac3 output_file.mkv opt/ffmpeg/bin/ffmpeg -hide_banner -hwaccel_device 0 -hwaccel nvdec -c:v hevc_cuvid -resize 1920x1080 -i input_file.mkv -c:v h264_nvenc -preset slow -rc cbr_hq -b:v 10000k -maxrate 20000k -bufsize 1000k -profile:v high -level:v 4.1 -pix_fmt yuv420p -flags global_header -c:a ac3 output_file.mkv opt/ffmpeg/bin/ffmpeg -hwaccel_device 0 -hwaccel cuvid -i input_file.mkv -c:v h264_nvenc -preset slow -rc cbr_hq -b:v 10000k -maxrate 20000k -bufsize 1000k -profile:v high -level:v 4.1 -pix_fmt yuv420p -flags global_header -map 0:v:0 -map 0:a:1 -c:a ac3 output_file.mkvĭownsize from 4k to blueray playback dolby 5.1 untested Select first video track and second audio track only Prepare for 4k blueray playback dolby 5.1 opt/ffmpeg/bin/ffmpeg -hwaccel_device 0 -hwaccel cuvid -i input_file.mkv -c:v h264_nvenc -preset slow -rc cbr_hq -b:v 10000k -maxrate 20000k -bufsize 1000k -profile:v high -level:v 4.1 -pix_fmt yuv420p -flags global_header -c:a ac3 output_file.mkv opt/ffmpeg/bin/ffmpeg -hwaccel_device 0 -hwaccel cuvid -i input_file.mkv -c:v h264_nvenc -preset slow -rc cbr_hq -b:v 10000k -maxrate 20000k -bufsize 1000k -profile:v high -level:v 4.1 -pix_fmt yuv420p -flags global_header -c:a aac output_file.mkv Ive already asked if this could be compiled in like in mga6 and i got back an excuse that some of the stuff needed was not redistributable (did it change since 6?)Īlso just to make this complete a few examples to test nvencĬode: Select all prepare for blueray playback dolby HD Now either mv /bin/ffmpeg to one side and link the one in /opt/ffmpeg/bin, or prefix your path to /opt/ffmpeg/bin before bin.Įither option works, one mayt be better for you. configure -prefix=/opt/ffmpeg -enable-cuda -enable-cuvid -enable-nvenc -enable-nonfree -enable-libnpp -extra-cflags=-I/usr/include -extra-ldflags=-L/usr/lib64/ PKG_CONFIG_PATH="/opt/ffmpeg/lib/pkgconfig". "now build it (the make installs need to be run as root, unless you choose your home area for install)" "make sure the following is installed (or similar versions)"ĭ To run, simply make executable and double click it.Īlternatively if you just want to convert video formats as i do, then the following will be helpful, as it will provide a nvenc capable ffmpeg, which can change 0.20 frames a second to anything for example 200. Im not sure what your use case for obs studio was, but i can say a similar application shotcut as supplied as an appimage from one of the appimage repos,ĭoes have hevc_nvenc and h264_nvenc as hardware encoder options. Had the same issue with ffmpeg as provided Make ffmpeg encode using the graphics card. OBS Studio can use ffmpeg and the cuda version has not been included with mga7.īut it seems OBS studio is not also aware that ffmpeg can be compiled with these different facilities, and so even with ffmpeg selected as the encoder still cant present the right options to
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |