turingmachine / omxplayer-sync

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

videos with audio don't sync on analog output #97

Closed jjplano closed 4 years ago

jjplano commented 4 years ago

hi guys, new here

I was trying to implement omxplayer-sync for an installation work of mine that uses four CRT screens. I tested it with the synctest.mp4 file and it worked great, using the analog AV output. but the problems began when I tried to use my own files. I copied the exact settings of that file when doing mine, but with my files the videos lag and don't sync at all. and then it hit me: the synctest.mp4 has no audio data present. so I did a new version of my file without audio, and it started to run perfectly in sync on all four players.

but the thing is, I really need the audio to play =(

I tried different omxplayer legacy options and the command line, to see if that could help -p / --passthrough audio passthrough -o / --adev device audio out device : e.g. hdmi/local/both -w / --hw hw audio decoding

none helped. I tried both AAC and MPEG audio formats on the file, very low settings: nothing changed, same issue.

I tried to run the files with audio on the plain omxplayer: they run perfectly fine.

I don't know what else to try... this happens on both raspberry pi v1 B+ and also on v3 (on the 3 it just lags a little less, but doesn't sync at all either).

I know it's not a file issue, so it's a omxplayer-sync issue, or a raspberry pi one.

please help!! very much appreciated, this is gonna drive me crazy

jjplano commented 4 years ago

ok, I think I fixed the issue.

I've added the following lines on the config.txt file of all the PIs

audio_pwm_mode=0 disable_audio_dither=1

and I only left an audio track on the master, that it is the one I just need audio on. the slaves have just video, no audio track present. and they all work perfectly in sync.