Merge pull request #224730 from aviallon/feature/ffmpeg-add-tensorflow

ffmpeg: add tensorflow dnn backend support
This commit is contained in:
Atemu 2023-04-30 23:10:04 +02:00 committed by GitHub
commit b332f78d35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,7 @@
, withSsh ? withHeadlessDeps # SFTP protocol , withSsh ? withHeadlessDeps # SFTP protocol
, withSvg ? withFullDeps # SVG protocol , withSvg ? withFullDeps # SVG protocol
, withSvtav1 ? withFullDeps && !stdenv.isAarch64 # AV1 encoder/decoder (focused on speed and correctness) , withSvtav1 ? withFullDeps && !stdenv.isAarch64 # AV1 encoder/decoder (focused on speed and correctness)
, withTensorflow ? false # Tensorflow dnn backend support
, withTheora ? withHeadlessDeps # Theora encoder , withTheora ? withHeadlessDeps # Theora encoder
, withV4l2 ? withFullDeps && !stdenv.isDarwin # Video 4 Linux support , withV4l2 ? withFullDeps && !stdenv.isDarwin # Video 4 Linux support
, withV4l2M2m ? withV4l2 , withV4l2M2m ? withV4l2
@ -213,6 +214,7 @@
, libplacebo , libplacebo
, librsvg , librsvg
, libssh , libssh
, libtensorflow
, libtheora , libtheora
, libv4l , libv4l
, libva , libva
@ -475,6 +477,7 @@ stdenv.mkDerivation (finalAttrs: {
(enableFeature withSvg "librsvg") (enableFeature withSvg "librsvg")
(enableFeature withSrt "libsrt") (enableFeature withSrt "libsrt")
(enableFeature withSsh "libssh") (enableFeature withSsh "libssh")
(enableFeature withTensorflow "libtensorflow")
(enableFeature withTheora "libtheora") (enableFeature withTheora "libtheora")
(enableFeature withV4l2 "libv4l2") (enableFeature withV4l2 "libv4l2")
(enableFeature withV4l2M2m "v4l2-m2m") (enableFeature withV4l2M2m "v4l2-m2m")
@ -600,6 +603,7 @@ stdenv.mkDerivation (finalAttrs: {
++ optionals withSsh [ libssh ] ++ optionals withSsh [ libssh ]
++ optionals withSvg [ librsvg ] ++ optionals withSvg [ librsvg ]
++ optionals withSvtav1 [ svt-av1 ] ++ optionals withSvtav1 [ svt-av1 ]
++ optionals withTensorflow [ libtensorflow ]
++ optionals withTheora [ libtheora ] ++ optionals withTheora [ libtheora ]
++ optionals withVaapi [ (if withSmallDeps then libva else libva-minimal) ] ++ optionals withVaapi [ (if withSmallDeps then libva else libva-minimal) ]
++ optionals withVdpau [ libvdpau ] ++ optionals withVdpau [ libvdpau ]