New raspberry has 2 hdmi connectors.

Is it possible to play 2 different videos at the same time (one per screen) with a single raspberry ?



Yes, you can with omxplayer in terminal.

# run the first video in the background with key inputs disabled
omxplayer --no-keys --display=2 --loop /home/pi/first.mp4 &

# run the second video normally
omxplayer --display=7 --loop /home/pi/second.mp4

Yes it is two different HDMI ports.

  • Thanks but how, i have tried --display 1 or --display 2 argument and it plays on hdmi 1 each time – Bob5421 Aug 10 '19 at 17:40
  • 1
    Well that's another question. Perhaps you should put more info into the question. – MatsK Aug 10 '19 at 17:44
  • Have a look at: raspberrypi.stackexchange.com/questions/81526/… – MatsK Aug 10 '19 at 17:46
  • no it is the same question ! I have read this post before. I have tried 4 and 5 value. It is always the first hdmi – Bob5421 Aug 10 '19 at 17:48
  • Haver you tried to add the environment variable for the DISPLAY like: DISPLAY=:0 omxplayer..... ? – MatsK Aug 10 '19 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.