# Audio sync on the fly

**URL:** <https://forums.plex.tv/t/audio-sync-on-the-fly/709216>\
**Category:** Plex Media Server\
**Tags:** playback\
**Created:** [April 13, 2021, 2:49pm UTC](https://forums.plex.tv/t/audio-sync-on-the-fly/709216 "2021-04-13T14:49:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsmith2003](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fsmith2003](https://forums.plex.tv/u/fsmith2003)\
**Post date:** [April 13, 2021, 2:49pm UTC](https://forums.plex.tv/t/audio-sync-on-the-fly/709216/1 "2021-04-13T14:49:11Z")

</div>

Was wondering if it would be possible to add an audio sync feature? Either on the server or client side. I have entire videos that seem to be just barley off but enough that I can tell. It would be nice to have audio sync ahead or delay as an optimization option on the server side. On the client side maybe something to adjust on the fly even if transcoding had to come into play.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [April 13, 2021, 3:19pm UTC](https://forums.plex.tv/t/audio-sync-on-the-fly/709216/2 "2021-04-13T15:19:48Z")

</div>

[Plex Media Player](https://forums.plex.tv/t/plex-media-player/120475/last) and/or [Plex HTPC](https://forums.plex.tv/t/introducing-plex-htpc/703075/1) can do it already.

---

<div class="post-metadata">

**Author:** ![fsmith2003](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fsmith2003](https://forums.plex.tv/u/fsmith2003)\
**Post date:** [April 13, 2021, 3:43pm UTC](https://forums.plex.tv/t/audio-sync-on-the-fly/709216/3 "2021-04-13T15:43:19Z")

</div>

Really!? Can I do this on Nvidia Shield?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [April 13, 2021, 4:40pm UTC](https://forums.plex.tv/t/audio-sync-on-the-fly/709216/4 "2021-04-13T16:40:56Z")

</div>

No, unfortunately these apps only work on PC or Mac.  
I don’t think the Android Plex client can do that.

---

<div class="post-metadata">

**Author:** ![fsmith2003](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fsmith2003](https://forums.plex.tv/u/fsmith2003)\
**Post date:** [April 13, 2021, 7:39pm UTC](https://forums.plex.tv/t/audio-sync-on-the-fly/709216/5 "2021-04-13T19:39:25Z")

</div>

Darn. Would it be technically possible for this to be implemented in the future on the server end? Maybe as part of the optimization process if you choose to do so but basically just delaying or accelerating the audio timings?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [April 14, 2021, 5:01am UTC](https://forums.plex.tv/t/audio-sync-on-the-fly/709216/6 "2021-04-14T05:01:18Z")

</div>

Doing this on the server might be technically possible, but it will result in larger RAM requirements and/or more frequent hard drive accesses.

The better solution is to fix this issue directly in your files.  
In order to do that, you first need to determine whether

1. is the delay actually needed on all client types?
2. is it a constant number, no matter whether you are watching the beginning of the file or are close to the end of it?

Only if the answer to both is Yes, you can fix it relatively easy.  
Get MKVtoolnix,  
drag the file into it  
mark the audio track  
and adjust the Delay parameter.

If the answer to 1) is No, you rather want a general delay setting at the client.  
However, if possible in general, this is limited by the available memory of the client. Because it has to store either more video or more audio data and play these at different times. This won’t be possible with most player software stacks.

If the answer to 2) is No, you very likely have combined audio and video from different sources. In which case you also need to determine by which factor you need to “shrink” or “stretch” the playback speed of the audio track. Doing this on the fly is impossible.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [July 13, 2021, 5:01am UTC](https://forums.plex.tv/t/audio-sync-on-the-fly/709216/7 "2021-07-13T05:01:42Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
