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

qimgv: enable video support #84965

Merged
merged 1 commit into from Apr 14, 2020
Merged

qimgv: enable video support #84965

merged 1 commit into from Apr 14, 2020

Conversation

cole-h
Copy link
Member

@cole-h cole-h commented Apr 11, 2020

I actually went back and strace'd the binary when it complained about
being unable to load the library it uses for playing videos. Turns out,
it wasn't finding the library because it wasn't in any of its library
paths. I added the lib path to LD_LIBRARY_PATH so it can find the
library it uses to play videos, and now things are peachy.

There is a (seemingly innocuous) error that gets displayed from Exiv2
being unable to determine its image type. Since it's actually a video, I
think it's fine. Another issue that pops up in the output is missing
libcuda.so.1, but that doesn't seem to affect functionality, and using
addOpenGLRunpath on both the binary and libraries didn't silence it.

Also did a little formatting.

Motivation for this change

I had a bit of free time (read: was procrastinating) and decided to try and figure out why qimgv was missing the library it needs to play videos (which it compiles itself). You can read my commit message above, but suffice to say it needs to be able to find the library to load it...

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS (courtesy MichaelRaskin on IRC)
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@grahamc
Copy link
Member

grahamc commented Apr 11, 2020

I tried to play a mp4 but it ...just never did:

Caught Exiv2 exception '/home/grahamc/Downloads/generator-web-starter.mp4: The file contains data of an unknown image type'

but

[grahamc@Petunia:~]$ file /home/grahamc/Downloads/generator-web-starter.mp4
/home/grahamc/Downloads/generator-web-starter.mp4: ISO Media, MP4 v2 [ISO 14496-14]

I actually went back and `strace`'d the binary when it complained about
being unable to load the library it uses for playing videos. Turns out,
it wasn't finding the library because it wasn't in any of its library
paths. I added the lib path to `LD_LIBRARY_PATH` so it can find the
library it uses to play videos, and now things are peachy.

There is a (seemingly innocuous) error that gets displayed from Exiv2
being unable to determine its image type. Since it's actually a video, I
think it's fine. Another issue that pops up in the output is missing
`libcuda.so.1`, but that doesn't seem to affect functionality, and using
`addOpenGLRunpath` on both the binary and libraries didn't silence it.

Also did a little formatting.
Copy link
Contributor

@msteen msteen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the comment I left, which don't consider a blocker of any kind, I tested it with webm and mp4 and both work with the latest version. Good job!

pkgs/applications/graphics/qimgv/default.nix Show resolved Hide resolved
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/136

@bhipple
Copy link
Contributor

bhipple commented Apr 14, 2020

Result of nixpkgs-review pr 84965 1

1 package built:
- qimgv

@bhipple bhipple merged commit 3988732 into NixOS:master Apr 14, 2020
@cole-h cole-h deleted the qimgv branch April 14, 2020 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants