add gstreamer.nix

This commit is contained in:
Daniel Langbein 2024-01-12 22:21:14 +01:00
parent 54c3c6886f
commit afc9e3ac33
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 25 additions and 1 deletions

20
gstreamer.nix Normal file
View File

@ -0,0 +1,20 @@
# Provides a shell environment with gstreamer.
# Based on the example from https://nixos.wiki/wiki/GStreamer
{ pkgs ? import <nixpkgs> {} }:
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
#...
];
}

View File

@ -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.