Go to advanced search

by flashbacker
Wed Aug 15, 2018 12:30 pm
Forum: Python
Topic: Dynamic video playlist with OMXplayer and OSC
Replies: 13
Views: 3979

Re: Dynamic video playlist with OMXplayer and OSC

Ok, finally solved the last bit of problem! :) thanks a lot for your help through this @paddyg It needed to be declared in omxplayer arguments that we were calling a new instance from omxplayer.player import OMXPlayer from time import sleep playlist_file = open("playlist.txt") movie = playlist_file....
by flashbacker
Sun Aug 12, 2018 1:34 pm
Forum: Python
Topic: Dynamic video playlist with OMXplayer and OSC
Replies: 13
Views: 3979

Re: Dynamic video playlist with OMXplayer and OSC

Thanks again for your help @paddyg I tried your code and it reacted as you described. but even if sometimes it overlaps just what it supposed to (0.5s) most of the time it's overlapping way more (several seconds) as if duration() doesn't send back. Then I tried to print(plrs[ix].duration()) juste be...
by flashbacker
Sat Aug 11, 2018 10:51 am
Forum: Python
Topic: Dynamic video playlist with OMXplayer and OSC
Replies: 13
Views: 3979

Re: Dynamic video playlist with OMXplayer and OSC

Hello, some update from my project. I tried to look into subprocess and tried this example https://www.raspberrypi.org/forums/viewtopic.php?t=174062 , but i runed into the same problem and cannot overcome it with my current knowledge. However, i studied a bit classes in Python and made some progress...
by flashbacker
Fri Aug 10, 2018 11:28 am
Forum: Python
Topic: Dynamic video playlist with OMXplayer and OSC
Replies: 13
Views: 3979

Re: Dynamic video playlist with OMXplayer and OSC

Thank you I will investigate with classes on my side
by flashbacker
Thu Aug 09, 2018 9:30 am
Forum: Python
Topic: Dynamic video playlist with OMXplayer and OSC
Replies: 13
Views: 3979

Re: Dynamic video playlist with OMXplayer and OSC

thank you for the hints @paddyg , I'll make sure there's no confusion in the variable and function names i'm using To answer first to your first PS: I know solution to avoid closing window between 2 videos, if I use 2 instances of OMXPlayer: player0 = OMXPlayer( path + movie[0]) sleep(player0.durati...
by flashbacker
Wed Aug 08, 2018 1:55 pm
Forum: Python
Topic: Dynamic video playlist with OMXplayer and OSC
Replies: 13
Views: 3979

Dynamic video playlist with OMXplayer and OSC

Hello there, I'm trying to create a video player which will play several videos after another, depending on several video indexes sent trough an OSC message. Example: I send a OSC message "playlist" with the following arguments playlist = [2,5,12,34,8] , then my player will play video N°2 then, when...

Go to advanced search