Skip to content

Instantly share code, notes, and snippets.

@malte-j
Created September 19, 2018 20:16
Show Gist options
  • Save malte-j/a6140dcc52b5aad95b1bb2eaf4fbbe25 to your computer and use it in GitHub Desktop.
Save malte-j/a6140dcc52b5aad95b1bb2eaf4fbbe25 to your computer and use it in GitHub Desktop.
import subprocess, time, os
// Startet vlc im Vollbild ohne Interface und in Dauerschleife
command = ['cvlc', '-f', '-L', '--no-video-title-show', '/home/malte/Videos']
// Gibt das Display vor, auf dem das VLC-Fenster geöffnet wird, an
environment = dict(os.environ, DISPLAY=":0")
// Startet den VLC Prozess
vlc = subprocess.Popen(command, env=environment)
time.sleep(15)
// Schließt den VLC-Prozess wieder, zu Demozwecken
vlc.terminate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment