![]() ![]() # Loop through the directory listing and all subfolders adding each movie file found to the playlistįor root, dirs, files in os.walk(MoviesDir, topdown=False): P = subprocess.Popen("echo " + cmd + " | nc -U " + SocketLocation, shell = True, stdout = subprocess.PIPE) # You can enter the interval in seconds as the second command line argument as well # You can enter a directory as a command line argument otherwise it will use the default ![]() SocketLocation = "/Users/username/vlc.sock" ![]() # Just seed if you want to get the same sequence after restarting the script ![]() Use VLC, with a long playlist, which starts automatically, when the Pi is powered up, using this solution, Autostart videostream without logging in.Īs Jarmanda X suggests, power the Pi from the TV's USB (assuming that it has one), so that when the TV is powered on, the Pi starts as well.Īssuming that it would not be to confusing, as an added feature, you could get VLC to play random segments, of films in a playlist, in a random order using this Python solution, from SuperUser, Playback random section from multiple videos changing every 5 minutes, and refined in this thread, Play random section from random movies in VLC?. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |