I need to open two omxplayer instances in raspberry pi and I'm using following code in python
command1='omxplayer', '--win', '0 0 1920 880', '-o', 'hdmi', '-d', '--layer', '5', 'DD.mp4'
command2='omxplayer', '--win', '0 880 1920 1080', '-o', 'hdmi', '-d', '--layer', '6','CC.mp4'
sp.Popen(command1)
sp.Popen(command2)
currently I'm using two video files and none of them are HD videos. These two commands are working fine when I execute one at a time. But when I execute my python code or when I execute these commands in two ssh connections both videos are frozen. Somehow I need to play two video files in two omxplayers. I can't figure this out please help. If there is a better way to do this please let me know.
Thank you.