Python Forum
open vlc movie file on raspberrypi
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
open vlc movie file on raspberrypi
#1
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
Reply
#2
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.
Reply
#3
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
Reply
#4
I've never used it, but there is a call (with some caveats about how the parent is managed) at this link.
Reply
#5
worked perfectly thank you
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Open/save file on Android frohr 0 307 Jan-24-2024, 06:28 PM
Last Post: frohr
  file open "file not found error" shanoger 8 1,070 Dec-14-2023, 08:03 AM
Last Post: shanoger
  How can i combine these two functions so i only open the file once? cubangt 4 847 Aug-14-2023, 05:04 PM
Last Post: snippsat
  I cannot able open a file in python ? ted 5 3,253 Feb-11-2023, 02:38 AM
Last Post: ted
  testing an open file Skaperen 7 1,349 Dec-20-2022, 02:19 AM
Last Post: Skaperen
  I get an FileNotFouerror while try to open(file,"rt"). My goal is to replace str decoded 1 1,393 May-06-2022, 01:44 PM
Last Post: Larz60+
  Dynamic File Name to a shared folder with open command in python sjcsvatt 9 6,001 Jan-07-2022, 04:55 PM
Last Post: bowlofred
  Open an excel file Newbie1114 1 2,321 Jun-16-2021, 09:11 PM
Last Post: Gribouillis
  How to open MIDI-file and get events in a list? philipbergwerf 7 4,943 May-29-2021, 08:24 AM
Last Post: j.crater
  Error on open of file created with tempfile.TemporaryDirectory() Brian177 4 6,243 Apr-05-2021, 07:12 PM
Last Post: Brian177

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020