v19 Video and audio playback gradually becomes out of sync
#1
Hello, I have a very strange behavior with my Rasperry Pi 2 with Kodi and OSMC (current version): when I play a video (only certain ones) first the audio and video playback is synchronous and gradually the audio playback comes earlier and earlier than the video playback. After about 4 minutes the video hangs briefly, the video playback bar becomes visible (as if something had to be reloaded) and the video and audio playback is synchronized again. The whole thing then repeats itself again and again.

Kodi Version: Starting Kodi (19.4). Platform: Linux ARM (Thumb) 32-bit
OSMC Version: 2022.09-1

I think it has to do with the Video. So here is the MediaInfo: https://paste.kodi.tv/ojotagumex

I remembered that among other videos, I was able to watch this video smoothly and without errors on the same Rasperry Pi 2 about a year ago. So it must have gotten worse with updates. I would be very happy if someone could help me.
Reply
#2
Here as a small addendum the Kodi log: https://paste.kodi.tv/obecejasab.kodi
Reply
#3
(2022-10-25, 12:08)HyP3r- Wrote: Here as a small addendum the Kodi log

We always prefer the full debug log (wiki). Now we have to guess what happens during the before and after.
Also Kodi's debugging doesn't seem enabled in that log snippet.

Since you are using OSMC, have you also contacted their forum?
Reply
#4
Can you test with video acceleration turned off in settings?
Reply
#5
If I deactivate the item "Allow hardware acceleration" under "Settings -> Videos -> Processing " the video is played correctly. However, I then have the problem that videos with a higher resolution such as 720p can then only be played jerkily.
Reply
#6
(2022-10-25, 12:20)Klojum Wrote:
(2022-10-25, 12:08)HyP3r- Wrote: Here as a small addendum the Kodi log
We always prefer the full debug log (wiki). Now we have to guess what happens during the before and after.
Also Kodi's debugging doesn't seem enabled in that log snippet.
You are absolutely right here the full debug log: https://paste.kodi.tv/vuvoyicasu.kodi
(2022-10-25, 12:20)Klojum Wrote: Since you are using OSMC, have you also contacted their forum?
Yes I have also made a thread on there but have not yet received a response: https://discourse.osmc.tv/t/video-and-au...sync/93960
Reply
#7
A sample file that shows the issue may be useful (e.g. cut it down to 2 or 4 minutes and upload to site like google drive or dropbox).
Reply
#8
I can gladly share this with you. Can you recommend me a program how I can cut out such a short sequence of the video? I ask because the original audio and video track and container format must be preserved.
Reply
#9
ffmpeg can do this. Make sure you use -vcodec copy -acodec copy so it doesn't reencode.
And test the output to ensure the issue still occurs.
Reply
#10
I experienced this on my RPi4 and found that disabling "Sync playback to display" was likely causing it, see: https://wiki.archlinux.org/title/Kodi#Sp...up_to_1.5x
Need help programming a Streamzap remote?
Reply
#11
I have opened a similar thread here as well: https://discourse.osmc.tv/t/video-and-au...sync/93960
Reply

Logout Mark Read Team Forum Stats Members Help
Video and audio playback gradually becomes out of sync0