about summary refs log tree commit diff
path: root/third_party/ffmpeg
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-04-04T01·26+0100
committerVincent Ambo <tazjin@google.com>2020-04-04T01·36+0100
commit0473307f8763c60e88948bed5313affa1aabdfba (patch)
tree75dcdaebf44e972affab4bcce57f1d9dd8727b3e /third_party/ffmpeg
parentbcfa11599d211ddeb4c5d12198b90dd444e10921 (diff)
feat(third_party/ffmpeg): Add "libnpp" support to ffmpeg r/614
Builds ffmpeg with CUDA Toolkit as a dependency, which includes a
library called "libnpp" that provides something related to hardware
accelerated video stream resizing.

v0v
Diffstat (limited to 'third_party/ffmpeg')
-rw-r--r--third_party/ffmpeg/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/ffmpeg/default.nix b/third_party/ffmpeg/default.nix
new file mode 100644
index 000000000000..e1b4d759da70
--- /dev/null
+++ b/third_party/ffmpeg/default.nix
@@ -0,0 +1,12 @@
+{ pkgs, ... }:
+
+pkgs.originals.ffmpeg.overrideAttrs(old: {
+  buildInputs = old.buildInputs ++ [
+    pkgs.cudatoolkit.out
+  ];
+
+  configureFlags = old.configureFlags ++ [
+    "--enable-libnpp"
+    "--enable-nonfree"
+  ];
+})