0

I am currently making some kind of a program that can control PCs using a remote control, and one of the features is music playing (In the background, the player will not be visible). I know that there are other options for that in python, but the only lightweight one is playsound, which cant pause and stop the music.

All the other packages increase the executable file size dramatically, so I decided to use VLC as a downloadable extension. Now, I don't want users to install VLC, just to download portable VLC libraries and use them to get VLC playing features. Any way to use python VLC bindings with potable version of VLC? (Without installing, that's the whole point)

Thank you!

  • From the python vlc.py download site: `Note that it relies on an already present install of VLC.` – Rolf of Saxony Dec 10 '20 at 09:56
  • @RolfofSaxony I think he knows this. He (and I) am searching for a way to make the program self-depended and not requiring an installation of VLC. – bomben Feb 01 '22 at 06:10

2 Answers2

0

Specifically the python-vlc uses libvlc.dll and libvlccore.dll . On Windows machines, it places copies in /windows/system32/ . You could test copying just those two DLLs, rather than doing a full install.

Vexen Crabtree
  • 339
  • 3
  • 16
0

This is a cheeky solution. So what you want to do is install vlc on your PC then read bytes using

with open('vlc.exe', 'rb') as fa:
    fa.read() 

You have to do this with all dependencies. Then in your existing code. Add

with open('vlc.exe', 'wb') as g:
    g.write('your existing bytes') 

Then running the script on another pc will recreate vlc but they don't have to install and internet cost will not incur. Note that wb mode creates a new file but if it exists it will override it.

Devil Ishere
  • 185
  • 1
  • 13