Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdfpc fails to play video #73321

Closed
veprbl opened this issue Nov 13, 2019 · 3 comments · Fixed by #78125
Closed

pdfpc fails to play video #73321

veprbl opened this issue Nov 13, 2019 · 3 comments · Fixed by #78125
Labels
0.kind: bug Something is broken

Comments

@veprbl
Copy link
Member

veprbl commented Nov 13, 2019

Describe the bug
pdfpc can't play example video, it freezes instead.

To Reproduce

wget https://github.com/pdfpc/pdfpc/releases/download/v4.3.0/pdfpc-video-example.zip
nix run nixpkgs.unzip -c unzip pdfpc-video-example.zip
cd pdfpc-video-example
nix-shell -p pdfpc -p gst_all_1.gst-plugins-base -p 'gst_all_1.gst-plugins-good.override {gtkSupport=true;}' -p gst_all_1.gst-plugins-bad -p gst_all_1.gst-plugins-ugly -I nixpkgs=channel:nixpkgs-unstable --run "pdfpc -wS video-example.pdf"
  1. Go to slide 5
  2. Click on the video

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
I'm able to play the video using the gstreamer:

nix-shell -p pdfpc -p gst_all_1.gst-plugins-base -p 'gst_all_1.gst-plugins-good.override {gtkSupport=true;}' -p gst_all_1.gst-plugins-bad -p gst_all_1.gst-plugins-ugly -I nixpkgs=channel:nixpkgs-unstable --run "gst-launch-1.0 filesrc location=apollo17.avi ! decodebin ! videoconvert ! gtksink"

Metadata

  • system: "x86_64-linux"
  • host os: Linux 4.14.90, NixOS, 18.09.1810.c840631fe20 (Jellyfish)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.1.3
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
 - pdfpc
# a list of nixos modules affected by the problem
module:

Possibly related to #43551
cc @pSub

@veprbl veprbl added the 0.kind: bug Something is broken label Nov 13, 2019
@KnairdA
Copy link
Contributor

KnairdA commented Jan 20, 2020

I just encountered the same problem. I was able to fix it locally by changing the build inputs of the derivation to:

  buildInputs = with pkgs; [
    gtk3 libgee poppler librsvg pcre
  ] ++ (with pkgs.gst_all_1; [
    gstreamer
    gst-plugins-base
    (gst-plugins-good.override { gtkSupport = true; }) 
    gst-libav
  ]);

Just enabling the GTK support was not sufficient, I also had to add the gst-libav package.

@veprbl
Copy link
Member Author

veprbl commented Jan 20, 2020

@KnairdA This is great! Would you mind submitting a PR?

@KnairdA
Copy link
Contributor

KnairdA commented Jan 20, 2020

Sure!

jtojnar added a commit that referenced this issue Jan 31, 2020
pdfpc: Fix gstreamer video playback issue #73321
anna328p pushed a commit to anna328p/nixpkgs that referenced this issue Feb 2, 2020
pdfpc: Fix gstreamer video playback issue NixOS#73321
jpgu-epam pushed a commit to jpgu-epam/nixpkgs that referenced this issue Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants