NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.43k stars 12.93k forks source link

HandBrake: missing GStreamer dependency library when previewing an encode #191934

Open pmarreck opened 1 year ago

pmarreck commented 1 year ago

Describe the bug

Was re-encoding some video in HandBrake, tried to preview a segment, HandBrake errored with a missing GStreamer dependency error and could not show preview

Steps To Reproduce

Steps to reproduce the behavior:

  1. Pick an mkv file
  2. Try to re-encode to an m4v file
  3. Preview first
  4. Observe bug

Expected behavior

The preview window to show

Screenshots

Additional context

Notify maintainers

@peterhoeg @Anton-Latukha

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.18.19, NixOS, 22.05 (Quokka), 22.05.3065.178fea1414a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.1`
 - channels(pmarreck): `""`
 - channels(root): `"nixos-22.05, nixos-hardware, nixos-unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
peterhoeg commented 1 year ago

Launching it from the command line also reveals this:

$ ghb 
** Message: 12:49:25.242: Couldn't initialize gstreamer. Disabling live preview.

I haven't used handbrake in ages, so I'm probably not going to be looking at this any time soon.

raspher commented 4 months ago

still relevant

~> nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.79, NixOS, 23.11 (Tapir), 23.11.4801.b7ee09cf5614`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos-23.11, nixos-unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
pmarreck commented 4 months ago

I don't think it'd be that hard to fix, it's just missing a declared dependency IMHO, such as gst_all_1.gstreamer or perhaps gst_all_1.gst-libav or both. Had I the time, I'd make an attempt at this

qubitnano commented 1 month ago

Please test https://github.com/NixOS/nixpkgs/pull/299602