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

VLC not found and video unstable on Windows 7 #125

Open
eddrog opened this issue Dec 3, 2019 · 6 comments
Open

VLC not found and video unstable on Windows 7 #125

eddrog opened this issue Dec 3, 2019 · 6 comments

Comments

@eddrog
Copy link

eddrog commented Dec 3, 2019

Environment

  • Windows 7

Pympress

  • 1.5.1
  • binary installer

Expected behaviour

  • The embedded video is played like in version 1.4.1

Problem

  • Embedded video in a pdf is not played if I click on it and the play button with scroller is not shown
@eddrog
Copy link
Author

eddrog commented Dec 3, 2019

ERROR:pympress.extras:Videounterstützung auf Basis von GStreamer ist deaktiviert.
Traceback (most recent call last):
  File "C:\projects\pympress/pympress/extras.py", line 408, in _setup_backends
  File "C:\projects\pympress/pympress/media_overlays/gst_backend.py", line 35, in <module>
  File "C:/msys64/mingw64/lib/python3.8/site-packages/gi/__init__.py", line 129, in require_version
ValueError: Namespace Gst not available
ERROR:pympress.extras:Videounterstützung auf Basis von VLC ist deaktiviert.
Traceback (most recent call last):
  File "C:\projects\pympress/pympress/extras.py", line 425, in _setup_backends
  File "C:\projects\pympress/pympress/media_overlays/vlc_backend.py", line 43, in <module>
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "C:/msys64/mingw64/lib/python3.8/site-packages/vlc.py", line 207, in <module>
  File "C:/msys64/mingw64/lib/python3.8/site-packages/vlc.py", line 163, in find_lib
  File "C:/msys64/mingw64/lib/python3.8/ctypes/__init__.py", line 369, in __init__
FileNotFoundError: Could not find module 'libvlc.dll'. Try using the full path with constructor syntax.
INFO:__main__:Pympress: 1.5.1 ; Python: 3.8.0 ; OS: Windows 7 ; Gtk 3.24.12 ; GLib 2.62.1 ; Poppler 0.82.0 cairo ; Cairo 1.16.0 , pycairo 1.18.2 ; Media: Gif-Wiedergabe mit GtkImage
WARNING:pympress.extras:No available overlay for mime type video/mp4, ignoring media C:\Users\ROGALS~1.FIS\AppData\Local\Temp\pdf_embed_zaeq6431.mp4

@eddrog
Copy link
Author

eddrog commented Dec 3, 2019

GStreamer: video support is deactivated
VLC: video support is deactivated

@Cimbali
Copy link
Owner

Cimbali commented Dec 3, 2019

None of the video backends is installed. Gst is still a little experimental, and not shipped by default in Windows installers, however VLC should work. It fails with a rather clear error:

FileNotFoundError: Could not find module 'libvlc.dll'.
  • Is VLC installed on your system?
  • Is it installed with the same bitness (i.e. if you installed pympress x86_64, did you use the 64 bit installer from VLC? if you used pympress i686, did you use the 32 bit installer from VLC?)

The vlc python bindings do a lot of work to find the python DLL, checking registry entries, default locations, etc. If that still doesn’t work, for some reason, try setting the environment variable PYTHON_VLC_LIB_PATH to the full path to libvlc.dll

@eddrog
Copy link
Author

eddrog commented Dec 3, 2019

Is it installed with the same bitness (i.e. if you installed pympress x86_64, did you use the 64 bit installer from VLC?
Yes.

pympress-v1.5.1-10-g941baf0-x86_64.msi

image

If I set the env var then it works but it is pretty unstable eg. if I press keys while playing. This is usually what I do if I start or stop a video.
Sometimes it hangs just after starting the video or if you repeat the sequence start/stop and so on. Just playing arround -> it hangs and the process has to be killed.

@Cimbali
Copy link
Owner

Cimbali commented Dec 3, 2019

Can you show the log file corresponding to a run that works? (delete it, and restart pympress with PYTHON_VLC_LIB_PATH). It should give us information on VLC versions etc.

@eddrog
Copy link
Author

eddrog commented Dec 4, 2019

ERROR:pympress.extras:Videounterstützung auf Basis von GStreamer ist deaktiviert.
Traceback (most recent call last):
  File "C:\projects\pympress/pympress/extras.py", line 408, in _setup_backends
  File "C:\projects\pympress/pympress/media_overlays/gst_backend.py", line 35, in <module>
  File "C:/msys64/mingw64/lib/python3.8/site-packages/gi/__init__.py", line 129, in require_version
ValueError: Namespace Gst not available
INFO:__main__:Pympress: 1.5.1 ; Python: 3.8.0 ; OS: Windows 7 ; Gtk 3.24.13 ; GLib 2.62.1 ; Poppler 0.82.0 cairo ; Cairo 1.16.0 , pycairo 1.18.2 ; Media: Gif-Wiedergabe mit GtkImage, VLC 3.0.8 Vetinari

@Cimbali Cimbali changed the title Embedded video is not played VLC not found and video unstable on Windows 7 Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants