Audio and Video issues when playing back HDHomeRun DVR recordings

Whenever I play back a recording via the Plex client running on my Xbox One or on my LG TV there are a lot of audio sync issues and video issues. The audio immediately goes out of sync with the video. And the video play normally for a while then pause and then fast forward quickly for a few seconds.

However, other videos that I have play back fine. It’s only the videos recorded with HDHomeRun have this problem when played back with the client Plex media player.

The recordings will play back fine if I play the recordings back on my laptop using either VLC or Windows Media Player.

I have no idea what’s going on here. Any help would be appreciated.