Audio delay with 4k content [LibreElec 10.0.1 / RaspBerry Pi 4]

  • One more question: In an older forum entry relating to LE7 I found the hint to disable "sync playback to display". May it help for LE10 also? Where can I find this option in the menu?

    Isn't that option meant for syncing the refresh rate of the video to the display refresh rate? Will that affect audio as well?


    Settings > Playback > Sync Playback to Display (should be off by default, and we'd recommend it to be off so that Kodi uses the media clock)

    Thanks! I'll give it a shot and report back.

    Edited once, last by lobbie1978: Merged a post created by lobbie1978 into this post. (January 10, 2022 at 7:30 PM).

  • I find out that the problem only exists with some video files. One of the "bad" files has this parameter:

    When I convert it into another format (eg. with handbrake) the file could be played without problems. The converted file has this parameter:

    I could not find out which of the parameter makes the different .....

  • I find out that the problem only exists with some video files. One of the "bad" files has this parameter:

    A sample (e.g. 2 minutes) of that file, assuming it still shows the issue may be useful.

    I can't see anything obvious in the codec options.

    Only strange thing is the problematic file was 50fps, and the converted file was 29.754fps.

    I don't know if you specifically chose that in encode options, or if that was auto detected (which may suggest an issue with timestamps of frames).

  • A sample file would be https://rodlzdf-a.akamaihd.net/dach/zdf/21/12/211221_2015_sendung_iat/5/211221_2015_sendung_iat_a1a2_3360k_p36v15.mp4

    It is an episode of a german tv series "In 80 Tagen um die Welt" and can be downloaded for free from the mediathek of ZDF.

    The delay immediately starts at the beginning of the file.

  • A sample file would be https://rodlzdf-a.akamaihd.net/dach/zdf/21/12/211221_2015_sendung_iat/5/211221_2015_sendung_iat_a1a2_3360k_p36v15.mp4

    It is an episode of a german tv series "In 80 Tagen um die Welt" and can be downloaded for free from the mediathek of ZDF.

    The delay immediately starts at the beginning of the file.

    A link would be useful for someone who doesn't speak German and knows nothing of mediathek of ZDF.

  • For me, the link works:

    Code
    wget https://rodlzdf-a.akamaihd.net/dach/zdf/21/12/211221_2015_sendung_iat/5/211221_2015_sendung_iat_a1a2_3360k_p36v15.mp4
    --2022-02-07 13:07:52--  https://rodlzdf-a.akamaihd.net/dach/zdf/21/12/211221_2015_sendung_iat/5/211221_2015_sendung_iat_a1a2_3360k_p36v15.mp4
    Resolving rodlzdf-a.akamaihd.net (rodlzdf-a.akamaihd.net)... 2.16.186.66, 2.16.186.65
    Connecting to rodlzdf-a.akamaihd.net (rodlzdf-a.akamaihd.net)|2.16.186.66|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 974707755 (930M) [video/mp4]
    Saving to: ‘211221_2015_sendung_iat_a1a2_3360k_p36v15.mp4’
    
    211221_2015_sendung_iat_a1a2_3360k_p36v15.mp4                    7%[==========>                                                                                                                                         ]  70,01M  56,3MB/s

    :/

  • A sample file would be https://rodlzdf-a.akamaihd.net/dach/zdf/21/12/211221_2015_sendung_iat/5/211221_2015_sendung_iat_a1a2_3360k_p36v15.mp4

    It is an episode of a german tv series "In 80 Tagen um die Welt" and can be downloaded for free from the mediathek of ZDF.

    The delay immediately starts at the beginning of the file.

    I was able to watch this in Germany. It's a bad example, because voices are post-synchronized (dubbed) in this movie. So you nearly never get lips and audio in-sync. Find a better example without geo-blocking.

  • HiassofT downloaded the file for me.

    I've watched the first 5 minutes and it seems fine (given the approximate nature of checking a dubbed program for lip-sync).

    A better sample would help, as well as a description of exactly what's wrong (e.g. at timecode 2m30 character X is seen speaking 2 seconds before audio is heard). But really need a non-dubbed example file.

  • The problem is not the delay of microseconds with the lip-sync, the problem is the delay of many seconds between audio and video !

    The same file from the same source with just another lower resolution works fine:
    https://rodlzdf-a.akamaihd.net/dach/zdf/21/12…360k_p35v15.mp4

    Generally this problem exists with nearly all files from this source: High resolution variante of the file has excessive delay, lower resolution variante works fine.

    Problem only exists with Pi4 and LE 10, on a Pi4 with LE9 or a Pi3 with LE9 or a PC with Kodi all files play well including the high variante.

  • I have exactly the same problem. Only HD Streams affected, SD content runs fine.

    It appears some days ago, not directly after upgrading to the latest LibreElec, but some time later.

    Maybe some caching problem?

  • I switch to OSMC and this problem exists also there. BUT: If I disable hardware acceleration in the settings there, video and audio is syncron! Only the video stutters sometime a little bit.