Hej,
I have (a probably common) setup where I have one server which is playing an audio file and four clients which are playing a video file. The server sends the time of the audio playback via UDP and the videos are synching accordingly. Everything works fine and I have used this method (but not the same patches) in a previous video installation without a flaw BUT …
The video is constantly running slower than the audio which leads to constant resynching and therefore jumping of frames. (In my previous installation this was not happening and I have no clue why.)
At first I measured it and the video is running about 0,6 seconds slower every 60 seconds of audio playback. After this I changed the mainloop to filted and patched arround and had a setup where the speed of the video is set to 1.006 and played back ALMOST as fast as the audio … but I am scared of this strange workaround.
I use videoout because videotexture->quad ueses more cpu-power. Currently I am playing back 2580*720 with about 18% usage of the cpu using the picvideo mjpeg codec which is very fast, also with synching … There are no dropped frames or anything else that indicate that the PC has a performance problem with playing back the video.
Does anyone has any idea why the video is played back slower? Would it make a difference if I would add an audio track to the video or add a video to the audio so that server and clients are playing back the stuff at the same speed?
Thanks for reading/thinking/helping.