Mageia Bugzilla – Attachment 13807 Details for
Bug 31116
Enable nvenc support in ffmpeg
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Add options to build nvenc
ffmpeg.spec.patch (text/plain), 1.67 KB, created by
Oleg Bosis
on 2023-05-06 13:34:40 CEST
(
hide
)
Description:
Add options to build nvenc
Filename:
MIME Type:
Creator:
Oleg Bosis
Created:
2023-05-06 13:34:40 CEST
Size:
1.67 KB
patch
obsolete
>--- a/ffmpeg.spec 2023-03-29 20:17:19.000000000 +0300 >+++ b/ffmpeg.spec 2023-05-06 14:04:31.664617651 +0300 >@@ -30,14 +30,26 @@ > %global build_plf 1 > %endif > >-# The license of libfdk_aac is not compatible with GPL, so the GPL does not >+# The license of libfdk_aac and nvenc is not compatible with GPL, so the GPL does not > # permit distribution of binaries containing incompatible code when GPL-licensed > # code is also included. >-# Therefore let's this option available for user's who want to build ffmpeg for >+# Therefore let's these options available for user's who want to build ffmpeg for > # their own use with the "nonfree" components. > %define build_fdkaac 0 > %{?_with_fdkaac: %{expand: %%global build_fdkaac 1}} > %{?_without_fdkaac: %{expand: %%global build_fdkaac 0}} >+%define build_nvenc 0 >+%{?_with_nvenc: %{expand: %%global build_nvenc 1}} >+%{?_without_nvenc: %{expand: %%global build_nvenc 0}} >+ >+%define build_nonfree 0 >+%{?_with_nonfree: %{expand: %%global build_nonfree 1}} >+ >+%if %{build_nonfree} >+%global build_plf 1 >+%{!?_without_fdkaac: %{expand: %%global build_fdkaac 1}} >+%{!?_without_nvenc: %{expand: %%global build_nvenc 1}} >+%endif > > Name: ffmpeg > Version: 5.1.3 >@@ -93,6 +105,11 @@ > %if %{build_fdkaac} > BuildRequires: pkgconfig(fdk-aac) > %endif >+%if %{build_nvenc} >+BuildRequires: pkgconfig(vulkan) >+BuildRequires: clang >+BuildRequires: nv-codec-headers >+%endif > %endif > BuildRequires: pkgconfig(speex) > BuildRequires: pkgconfig(freetype2) >@@ -333,6 +350,9 @@ > %if %{build_fdkaac} > --enable-nonfree --enable-libfdk-aac \ > %endif >+%if %{build_nvenc} >+ --enable-nonfree --enable-nvenc --enable-cuda-llvm \ >+%endif > %else > --disable-decoder=aac --disable-encoder=aac \ > %endif
--- a/ffmpeg.spec 2023-03-29 20:17:19.000000000 +0300 +++ b/ffmpeg.spec 2023-05-06 14:04:31.664617651 +0300 @@ -30,14 +30,26 @@ %global build_plf 1 %endif -# The license of libfdk_aac is not compatible with GPL, so the GPL does not +# The license of libfdk_aac and nvenc is not compatible with GPL, so the GPL does not # permit distribution of binaries containing incompatible code when GPL-licensed # code is also included. -# Therefore let's this option available for user's who want to build ffmpeg for +# Therefore let's these options available for user's who want to build ffmpeg for # their own use with the "nonfree" components. %define build_fdkaac 0 %{?_with_fdkaac: %{expand: %%global build_fdkaac 1}} %{?_without_fdkaac: %{expand: %%global build_fdkaac 0}} +%define build_nvenc 0 +%{?_with_nvenc: %{expand: %%global build_nvenc 1}} +%{?_without_nvenc: %{expand: %%global build_nvenc 0}} + +%define build_nonfree 0 +%{?_with_nonfree: %{expand: %%global build_nonfree 1}} + +%if %{build_nonfree} +%global build_plf 1 +%{!?_without_fdkaac: %{expand: %%global build_fdkaac 1}} +%{!?_without_nvenc: %{expand: %%global build_nvenc 1}} +%endif Name: ffmpeg Version: 5.1.3 @@ -93,6 +105,11 @@ %if %{build_fdkaac} BuildRequires: pkgconfig(fdk-aac) %endif +%if %{build_nvenc} +BuildRequires: pkgconfig(vulkan) +BuildRequires: clang +BuildRequires: nv-codec-headers +%endif %endif BuildRequires: pkgconfig(speex) BuildRequires: pkgconfig(freetype2) @@ -333,6 +350,9 @@ %if %{build_fdkaac} --enable-nonfree --enable-libfdk-aac \ %endif +%if %{build_nvenc} + --enable-nonfree --enable-nvenc --enable-cuda-llvm \ +%endif %else --disable-decoder=aac --disable-encoder=aac \ %endif
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31116
: 13807