RPi4 4K video on 1080p TV Sync Issue and Sync Issues on Video Starts

  • Hi all,

    firstly I want to express sincere appreciation for everyone who works on this project and the adaptation to the RPi4. I've participated in open source projects and commend the status of this project and the benefits for all.

    I installed the LibreELEC 9.2.3 version a few days ago (LibreELEC-RPi4.arm-9.2.3.img) following instructions with the USB-SD creator. All went fine, booted up good. Added SMB network shares, no issues. Had the HDMI on Port 1 so had no sound but then moved to Port 0 and all good. I had been running Kodi previously on a small desktop, for about 8 years.

    FYI I've got my RasPi hooked up to a Panasonic 50" 1080p TV via the HDMI.

    I've got two issues/questions:

    1) Sample:

    External Content www.youtube.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    When I try 4K H265 HEVC GoPro clips (ran off the SD card, not the network), they appear to play, however, the video portion is playing at a slightly reduced speed. The audio is OK, but the video plays at some delayed framerate .. It plays smooth though. You can see in the sample. The loss of sync isn't totally obvious but you'll notice when the sound of cutting finishes he's still cutting the wood. The reason I want to be able to play 4K clips is mainly to play GoPro footage I get from various sources, I don't want to re-encode them I'd rather play them and have them downscale to my TV.

    2) Sample:

    External Content www.youtube.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    When I play regular mp4 1080p clips from my Canon Camera (local or network) that I have played on previous Kodi installs for years succesfully, the clips play fine, except for maybe ~5 seconds at the beginning that are just slightly out of sync, which the video then returns in sync after a black screen blip. See sample video, ~0:07 mark. Not obvious in this clip but audio and video slightly out of sync and then corrects at that black screen blip. It does this for all those clips.

    Also I did play the Korean concert clip from the Kodi Sample page succesfully. Samples - Official Kodi Wiki

    MediaInfo output shown below for both files.

    Thanks anyone for support on this matter! Otherwise really like the setup!


    -------------------------------------------------------

    GoPro File Media Info:

    General

    Complete name : \\192.168.0.211\Videos\Andrew 4k60-fpsHEVC.mp4

    Format : MPEG-4

    Format profile : Base Media / Version 1

    Codec ID : mp41 (mp41)

    File size : 211 MiB

    Duration : 29 s 333 ms

    Overall bit rate : 60.5 Mb/s

    Encoded date : UTC 2020-07-09 21:01:27

    Tagged date : UTC 2020-07-09 21:01:27

    Video

    ID : 1

    Format : HEVC

    Format/Info : High Efficiency Video Coding

    Format profile : [email protected]@Main

    Codec ID : hvc1

    Codec ID/Info : High Efficiency Video Coding

    Duration : 29 s 329 ms

    Bit rate : 60.2 Mb/s

    Width : 3 840 pixels

    Height : 2 160 pixels

    Display aspect ratio : 16:9

    Frame rate mode : Constant

    Frame rate : 59.940 (60000/1001) FPS

    Color space : YUV

    Chroma subsampling : 4:2:0

    Bit depth : 8 bits

    Bits/(Pixel*Frame) : 0.121

    Stream size : 210 MiB (100%)

    Title : GoPro H.265

    Language : English

    Encoded date : UTC 2020-07-09 21:01:27

    Tagged date : UTC 2020-07-09 21:01:27

    Color range : Full

    Color primaries : BT.709

    Transfer characteristics : BT.709

    Matrix coefficients : BT.709

    Codec configuration box : hvcC

    Audio

    ID : 2

    Format : AAC LC

    Format/Info : Advanced Audio Codec Low Complexity

    Codec ID : mp4a-40-2

    Duration : 29 s 333 ms

    Bit rate mode : Constant

    Bit rate : 192 kb/s

    Nominal bit rate : 48.0 kb/s

    Channel(s) : 2 channels

    Channel layout : L R

    Sampling rate : 48.0 kHz

    Frame rate : 46.875 FPS (1024 SPF)

    Compression mode : Lossy

    Stream size : 677 KiB (0%)

    Title : GoPro AAC

    Language : English

    Encoded date : UTC 2020-07-09 21:01:27

    Tagged date : UTC 2020-07-09 21:01:27

    Other #1

    ID : 3

    Type : Time code

    Format : QuickTime TC

    Duration : 29 s 329 ms

    Bit rate mode : Constant

    Time code of first frame : 01:09:29:52

    Time code, striped : Yes

    Title : GoPro TCD

    Language : English

    Encoded date : UTC 2020-07-09 21:01:27

    Tagged date : UTC 2020-07-09 21:01:27

    Other #2

    Type : meta

    Duration : 29 s 312 ms

    Bit rate mode : Variable

    Duration_LastFrame : -718

    Other #3

    Type : meta

    Bit rate mode : Variable

    mdhd_Duration : 29329


    ---------------------------------------------------

    Canon File MediaInfo

    General

    ID : 0 (0x0)

    Complete name : F:\Video Workshop\Canon Temp\AVCHD\BDMV\STREAM\00001.MTS

    CompleteName_Last : F:\Video Workshop\Canon Temp\AVCHD\BDMV\STREAM\00139.MTS

    Format : BDAV

    Format/Info : Blu-ray Video

    File size : 59.3 GiB

    Duration : 2 min 36 s

    Overall bit rate mode : Variable

    Overall bit rate : 3 251 Mb/s

    Maximum Overall bit rate : 24.0 Mb/s

    Recorded date : 2018-10-11 17:50:25-07:00

    Writing application : Canon

    Video

    ID : 4113 (0x1011)

    Menu ID : 1 (0x1)

    Format : AVC

    Format/Info : Advanced Video Codec

    Format profile : High@L4

    Format settings : CABAC / 2 Ref Frames

    Format settings, CABAC : Yes

    Format settings, Reference frames : 2 frames

    Format settings, GOP : M=3, N=15

    Codec ID : 27

    Duration : 2 min 36 s

    Bit rate mode : Variable

    Bit rate : 3 122 Mb/s

    Maximum bit rate : 22.7 Mb/s

    Width : 1 920 pixels

    Height : 1 080 pixels

    Display aspect ratio : 16:9

    Frame rate : 29.970 (30000/1001) FPS

    Color space : YUV

    Chroma subsampling : 4:2:0

    Bit depth : 8 bits

    Scan type : Interlaced

    Scan type, store method : Separated fields

    Scan order : Top Field First

    Bits/(Pixel*Frame) : 50.236

    Stream size : 56.9 GiB (96%)

    Audio

    ID : 4352 (0x1100)

    Menu ID : 1 (0x1)

    Format : AC-3

    Format/Info : Audio Coding 3

    Commercial name : Dolby Digital

    Codec ID : 129

    Duration : 2 min 36 s

    Bit rate mode : Constant

    Bit rate : 256 kb/s

    Channel(s) : 2 channels

    Channel layout : L R

    Sampling rate : 48.0 kHz

    Frame rate : 31.250 FPS (1536 SPF)

    Bit depth : 16 bits

    Compression mode : Lossy

    Delay relative to video : -66 ms

    Stream size : 4.78 MiB (0%)

    Service kind : Complete Main