Python Forum

Full Version: open vlc movie file on raspberrypi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello im trying to open a vlc media player movie file that's on the desktop of my rasp pi I have copied the file path and tried using subprocess call and open but it keeps telling me that there is no such file in the directory, anyone know why it would be doing this or if I should be doing it a different way? also side note I want to be able to close it as well
Show your code. There may be a problem with how you're generating the path.

Starting a movie using the command line should be easy, but I don't know how to control it afterward if you go that route.

There are python bindings for the VLC API, and that would get you control later. There's a short tutorial at linuxconfig on playing audio with it. Video should be very similar.
The vlc import worked perfectly however do you know if there is a way to open with full screen I didn't see information on opening options in the tutorial. if im not able to open full screen with the vlc import should I keep trying at subprocess method
I've never used it, but there is a call (with some caveats about how the parent is managed) at this link.
worked perfectly thank you