![]() ![]() * Fix 12 bits sources playback with Direct3D11.The current working directory where you launch your script from works for that, but if you want a more permanent location you could drop it into your Python's site-packages ( /Users//Library/Python/2.7/lib/python/site-packages for example if you're using the standard OS X framework Python).Version history for VLC for Mac OS X (Intel 64-bit) ![]() ![]() That means you can (or rather have to) drop it into a location that will be in sys.path yourself. ![]() It's not packaged as a setuptools distribution that you could just install with pip or easy_install like most other Python modules. If you look at the example player in vlc.py, it has a while True loop at the very end that basically reads key presses over and over again in order to implement a simple user interface.Īt the end of your function, it should continue playing (terminate with CTRL+C until you implement some sort of user input handling).Īs for "installing" the script: Unfortunately, the vlc.py module they provide is just that, a simple stand-alone Python module. If the Python script then terminates, the player is destroyed right after it has been created. It seems that the ay() function is not blocking, but instead returns immediately. Running python through the terminal.Īt the moment I have the vlc.py module in the same directory as my test script - and outside of the VLC.app directories and although the script is executing without errors it isn't playing the video or returning any parameters about the specified mp4 file.Īpologies for a banal question! Any help very gratefully received. I am unsure where to install the vlc.py module and hoping someone can help. This outputs file:///Users/admin/Sites/pythontest/foo.mp4 Print player.get_length() #Time duration of file -1 means there is no media Print media.get_mrl() # File location to get title Vlc_instance = vlc.Instance('-no-audio', '-fullscreen') I have a basic test script that uses vlc.py which runs but does not play the video. I am hoping that someone can help with a Python bindings output question (using vlc.py) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |