I am trying to play a video using omxplayer (but I could use a different player to solve the problem) on both HDMI outputs of a Raspberry PI 4 but without much success. Until now I tryed starting 2 processes or threads but the output is not synchronized. The test code is quite simple: it starts 2 processes (or 2 threads) calling a Python wrapper ove omxplayer, both load the video and put it on pause, then I send to both processes the play command but there is a delay between the command reception and the start of the video on the second process/thread. So, any idea or help is very welcome.
synchronize video output on HDMI 1 and HDMI 2 on a Raspberry Pi 4B
233 Views Asked by Massimo Manca At
1
There are 1 best solutions below
Related Questions in MULTITHREADING
- How can I outsource worker processes within a for loop?
- OpenMP & oneTbb difference
- Receiving Notifications for Individual Task Completion OmniThreadLibrary Parallel.ForEach
- C++ error: no matching member function for call to 'enqueue' futures.emplace_back(TP.enqueue(sum_plus_one, x, &M));
- How can I create a thread in Haskell that will restart if it gets killed due to any reason?
- Qt: running callback in the main thread from the worker thread
- Using `static` on a AVX2 counter function increases performance ~10x in MT environment without any change in Compiler optimizations
- Heap sort with multithreading
- windows multithreading CreateMutex
- The problem of "fine-grained locks and two-phase locking algorithm"
- OpenMP multi-threading not working if OpenMPI set to use one or two MPI processor
- WPF Windows Initializing is locking the separated thread in .Net 8
- TCP Client Losing Connection When Writing Data
- vc++ thread constructor throwing compiler error c2672
- ASP.NET Core 6 Web API : best way to pause before resending email
Related Questions in HDMI
- Problems sharing the screen of my laptop with hdmi in Ubuntu
- A FPGA Project Proposal where I can use both PS and PL
- What is the order of porches, visible video data, and sync periods in HDMI protocol?
- HDMI input in laptop through USB 3.1 type c or USB A 3.0
- AAOS 13 RPI - no HDMI output
- Using a usb camera and a Raspbery Pi Zero 2W to create a fake stereo image
- HDMI status in standby mode
- How can I change touch rotation on Raspberry Pi 3 HDMI without X?
- How does an OS know where the Touchpoints from a Touchpanel are on a Display Screen?
- Monitor recognised, but no HDMI Output
- HDMI/DP -> USB-C video embedding software
- How to make my PC become an "psudo/fake" external display for android phone via USB ports (without using any USB to HDMI dongles)
- How to get the turned on or turned off status of connected out put TV in android box?
- How to apply a device tree blob overlay on MSC SM2S IMX8PLUS
- Cannot join external monitor with laptop display
Related Questions in OMXPLAYER
- Issue in Lineage OS 20 : OmxStore: omx common prefix: no nodes
- Playing random Videos with omxplayer (PIR)
- synchronize video output on HDMI 1 and HDMI 2 on a Raspberry Pi 4B
- exit fullscreen OMX Player
- omxplayer not loading a playlist file
- Quickly dispatching between `fbi` and `omxplayer`
- MP4 file won't stream into omxplayer,any idea why?
- stream video to Raspberry pi, using hardware acceleration
- Omxplayer-wrapper will not open
- cvlc cannot play rtsp (omxplayer instead can)
- Quit Shell Script on Raspberry Pi (no keyboard input detected)
- omxplayer - Seamless looping of a directory
- Play MP3 file in python script to Raspberry Pi 4's connected bluetooth device
- Python : Images (Tkinter) over a video (OMXPlayer)
- Callback function in the exact moment URL stream starts playing in Python
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
OK, I found the problem and the solution. I created a simple Python wrapper for omxplayer that when creates the process executing omxplayer puts omxplayer in pause sending the toggle_pause command, but if I pass the --no-keys argument to omxplayer it starts without any regard about the toggle_pause command so the 2 processes are not in sync. The solution is very simple: do not use the --no-keys argument...