turingmachine / omxplayer-sync

OMXPlayer-Sync facilitates synchronization of multiple OMXPlayer instances over the network in a master/slave fashion.
196 stars 70 forks source link

Black Screen at the end #39

Closed raspdev closed 8 years ago

raspdev commented 8 years ago

Hi everyone and thank by this amaizing effort.

I used omxplayer-sync months ago, and I couldn´t avoid to show the terminal screen in each loop. The question is, is it possible to put a black screen when a new sync starts? Sometimes the videos are very short, so when the video finish get the terminal screen with the commands and it not very pretty. Please if there is any way to implement a black screen I´m very interested.

Thank very much.

YohannLYD commented 8 years ago

The trick I use to avoid seeing the console at the end of the loop is to run the command tvservice -p which refreshes the screen to the preferred resolution set in /boot/config.txt. Then the console should disappear and you can run any instance of omxplayer/omxplayer-sync without seeing the console.

raspdev commented 8 years ago

Hi, thanks for you soon reply. I´m going to try you trick.

peterjosvai commented 8 years ago

I just tried "-b" ... like with the normal omxplayer, and it works...

zhiwan commented 8 years ago

Hello,

Just to confirm, to use tvservice -p, would the code look like this?

omxplayer-sync -muv synctest.mp4 tvservice -p?

I still see the console with this. I also put tvservice -p in /boot/config.txt and that didn't work either. I also tried "-b":

omxplayer-sync -b -muv synctest.mp4

That didn't work either. Can someone clarify this?

magdesign commented 8 years ago

to clear screen after boot you can try:

sudo sh -c "TERM0linux setterm -foreground black >/dev/tty0" sudo sh -c "TERM0linux setterm -clear all >/dev/tty0"

then start omxplayer-sync: omxplayer-sync -b -mu synctest.mp4

don't write the -v, since this is verbose mode and will give you an output to the console....