jbaiter / pyomxplayer

Python wrapper around OMXPlayer for the Raspberry Pi
MIT License
103 stars 61 forks source link

Multiple instances #4

Open ellensundh opened 10 years ago

ellensundh commented 10 years ago

Is it possible to run multiple instances of the OMXPlayer stating some kind of id or similar? I would like to have 2 instances I can switch between to achive video playback without any buffering.

jbaiter commented 10 years ago

Nope, I don't think that will work. Once omxplayer runs, it locks the hardware resources, so running two instances of it in parallel is out of the question, at least from my understanding :-/

ellensundh commented 10 years ago

I have seen example of play multiple windows of omxplayer(http://t3chadd1ct.wordpress.com/2013/04/19/omxplayer/). It would be great with support for this. And to be able to pass the window size of the omxplayer.

clacktronics commented 10 years ago

I managed 2 instances with this python script it quickly breaks after that. ( perhaps because its in the stats mode? ) outside of python with multiple SSH connections and the latest omxplayer I managed to get 4 streams running at the same time but it crashed when I paused over 3 of them.