Tried to use ffplay sync code. It looked like it worked, but it was no sync...

When sync was fixed, (the clock had an error) the video was out of sync.

Will try to use more ffplay