Plex Media Server (2022-03-27).txt (709.1 KB) Server Version: PlexMediaServer-1.25.8.5663-e071c3d62 Player Version: tvOS Plex App version 8.0 (2172), running on tvOS 15.4 (19L440)
Condition and Reproduction: have Match Frame Rate == Enabled for tvOS. Description: Audio is noticeably delayed for the content streamed to my Apple TV 4K HDR from my Plex Server. Delay appears to occur regardless of playback file type and resolution (ex: 1080P and 4K HDR). (I have not tested other Plex streaming options, such as the free tv/channels/shows/movies).
Note: for the file I was playing during this testing (my copy of Sicario in 4K UHD), when enhanced debugging information is turned on for the tvOS app, I can see that the FPS (container) == 24.416666, and the FPS (filters) == 23.975995. The Display FPS is 23.976.
The Audio is converted to FLAC 7.1 (original for the file I was playing in the logs was TrueHD audio; see details below, pulled from VLC Player).
File Details (for log generation, although as mentioned, issue occurs with all streamed files from my server): Stream 0
Codec: MPEG-H Part2/HEVC (H.265) (hevc)
Language: English
Type: Video
Video resolution: 3840x2160
Buffer dimensions: 3840x2176
Frame rate: 23.976215
Decoded format: Planar 4:2:0 YUV 10-bit LE
Orientation: Top left
Color primaries: ITU-R BT.2020
Color transfer function: SMPTE ST2084 (PQ)
Color space: ITU-R BT.2020 Range
Stream 1
Codec: TrueHD Audio (trhd)
Language: English
Type: Audio
Channels: 3F2M2R/LFE
Sample rate: 48000 Hz
Bits per sample: 32
Happy to provide additional details / work with the Plex team on this one.
This is an issue with PMS as other devices capable of refresh rate switching are also seeing this such as the Shield and the Amazon FireTV. @chuckpa@chrisallen and I are looking into it. I discovered this behavior this past weekend. This regression has been around since the launch of PMS v1.25.0.5282. The transcoder is sending 24.416666fps in the stream headers.
@chrisallen - I downgraded my server version to 1.24.5.5173-8dcc73a59 using the package from the link you provided. Retested with the same exact configuration (Apple TV tvOS version and app version, same media, etc.).
Still seeing an audio delay. Anecdotally, the delay seems smaller, but that might just be a placebo effect.
re: the stream aspects (from enhanced video player debugging option; this was direct stream for video, transcode for audio):
Nothing yet. All that rules out is the 24.42fps value that appears to be a red herring. I am working on narrowing down a similar issue for Android TV but don’t have any fix yet to share sorry.
Thanks @chrisallen - appreciate the continued work on this. Let me know if there’s anything I can assist with (build testing, swapping ffmpeg builds, etc). Sounds like there’s a broader userbase that is experiencing the same issue, so happy to help where I can.
I am seeing this issue myself on multiple setups using Apple TV. I have resorted to configuring the Plex client to use the old player engine in the settings. This reverts the Plex app to use Apple’s AVPlayer. It will transcodes more often but no more audio lip sync issues.
Absolutely, horrible that there is no fix for this yet, Netflix and all the other players work now…… PLEX??
Edit: just installed Infuse and linked Plex, works perfectly now…
Would love an update here when you guys have a beta out for this
I also have resorted to using Infuse as a Plex Media Server client when using my Apple TV 4K boxes. With the Plex client on Apple devices, the audio leads the video as bad as by 1-2 seconds.
Hi @JohnConner and @maerek have tried with the Apple TV 4K connected directly to my LG OLED TV and cannot reproduce the delay issue. I have also connected the Apple TV 4K directly to my soundbar (which then connects to my TV) and cannot reproduce. Can you give any more details on your setup?
Setup: LG TV - HDMI Cable to Denon AVR X1600H - Apple TV4k (2021)
For some weeks I am encountering Audio Sync Problems, but only with PLEX (other apps work perfectly)
When I set Audio Delay to ca. 150cm on my AVR it is better. But then Netflix and Prime Video etc. are out of sync.
Turning off “match framerate” in ATV helps. But video not as smooth.
Using old player in Plex also works. But video not that sharp.
@chrisallen - my set up is listed below. Just watched my 4K version of Dune, which I ripped directly from my Blu-ray copy. I noticed that the video lagged the audio. Similar to @hexxcode , I could set an audio delay, but then playback in all of my other AppleTV applications would be affected.
Happy to pull more debug information.
AppleTV 4K 2nd Generation (64GB) (tvOS 15.4) running the Plex app (8.2 (2517)), connected via HDMI to…