You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First a big thank you for python-mpv, this is great to include into my Pyqt5 application.
Usually I work on Linux but I want to get a windows build going.
The video is playing fine but no sound is playing.
Steps I did to get it going:
Code
import mpv
player = mpv.MPV(ytdl=True, log_handler=print)
player.play('https://youtu.be/DOmdB7D-pUU')
player.wait_for_playback()
Create a virtual environment python -m venv venv
download python mpv, output from pip show python-mpv
Name: python-mpv
Version: 0.4.5
Summary: A python interface to the mpv media player
Home-page: https://github.com/jaseg/python-mpv
Author: jaseg
Author-email: [email protected]
License: AGPLv3+
Location: c:\users\larsw\documents\projects\katana_cut\venv\lib\site-packages
Requires:
Required-by:
I download 'mpv-dev-x86_64-20200329-git-bca917f.7z' here libmpv-dll-files and put them in the Scripts folder in the virtualenv
I run the code and get no sound output. This is the debug output:
info cplayer (+) Video --vid=1 () (vp9 1920x1080 23.976fps)
info cplayer (+) Audio --aid=1 --alang=eng () (opus 2ch 48000Hz)
info cplayer AO: [wasapi] 48000Hz stereo 2ch float
info cplayer VO: [gpu] 1920x1080 yuv420p
Any help is very appreciated. I do not have a lot of development experience on Windows, so maybe a missed a crucial step.
The text was updated successfully, but these errors were encountered:
ATM I can't repro this since I don't have a windows machine nearby. But, from my windows experience windows sometimes just likes to output application audio on unexpected speakers and in my experience it takes almost constant fiddling with the windows audio mixer thingy to get things to go out the correct port. Have you double-checked this? Maybe it is outputting sound but it's trying to do that on your monitor's internal speakers or something.
To test this, you can just use regular mpv. If regular mpv works, python-mpv will work and vice-versa. Both share the same code and both will behave the same w.r.t. audio outputs.
First a big thank you for python-mpv, this is great to include into my Pyqt5 application.
Usually I work on Linux but I want to get a windows build going.
The video is playing fine but no sound is playing.
Steps I did to get it going:
Create a virtual environment
python -m venv venv
download python mpv, output from
pip show python-mpv
Name: python-mpv
Version: 0.4.5
Summary: A python interface to the mpv media player
Home-page: https://github.com/jaseg/python-mpv
Author: jaseg
Author-email: [email protected]
License: AGPLv3+
Location: c:\users\larsw\documents\projects\katana_cut\venv\lib\site-packages
Requires:
Required-by:
I download 'mpv-dev-x86_64-20200329-git-bca917f.7z' here libmpv-dll-files and put them in the Scripts folder in the virtualenv
I run the code and get no sound output. This is the debug output:
info cplayer (+) Video --vid=1 () (vp9 1920x1080 23.976fps)
info cplayer (+) Audio --aid=1 --alang=eng () (opus 2ch 48000Hz)
info cplayer AO: [wasapi] 48000Hz stereo 2ch float
info cplayer VO: [gpu] 1920x1080 yuv420p
Any help is very appreciated. I do not have a lot of development experience on Windows, so maybe a missed a crucial step.
The text was updated successfully, but these errors were encountered: