From afc9e3ac330c5218325d7866455e9c40af9a35a9 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Fri, 12 Jan 2024 22:21:14 +0100 Subject: [PATCH] add gstreamer.nix --- gstreamer.nix | 20 ++++++++++++++++++++ modules/programs.nix | 6 +++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 gstreamer.nix diff --git a/gstreamer.nix b/gstreamer.nix new file mode 100644 index 0000000..4606375 --- /dev/null +++ b/gstreamer.nix @@ -0,0 +1,20 @@ +# Provides a shell environment with gstreamer. +# Based on the example from https://nixos.wiki/wiki/GStreamer +{ pkgs ? import {} }: +pkgs.mkShell { + buildInputs = with pkgs; [ + # Video/Audio data composition framework tools like "gst-inspect", "gst-launch" ... + gst_all_1.gstreamer + # Common plugins like "filesrc" to combine within e.g. gst-launch + gst_all_1.gst-plugins-base + # Specialized plugins separated by quality + gst_all_1.gst-plugins-good + gst_all_1.gst-plugins-bad + gst_all_1.gst-plugins-ugly + # Plugins to reuse ffmpeg to play almost every video format + gst_all_1.gst-libav + # Support the Video Audio (Hardware) Acceleration API + gst_all_1.gst-vaapi + #... + ]; +} diff --git a/modules/programs.nix b/modules/programs.nix index ff143c4..51b7a3c 100644 --- a/modules/programs.nix +++ b/modules/programs.nix @@ -19,7 +19,11 @@ gnome.gnome-tweaks gnome.dconf-editor meld # Diff and merge tool - handbrake # Rip DVD and Blu-ray; rotate and export videos + # Rip DVD and Blu-ray; rotate and export videos. + # Requires gstreamer with plugins to preview encoded video. + # nix-shell -p gstreamer.nix + # ghb + handbrake mediainfo-gui # View video metadata. fractal # Matrix chat client.