This also happens to me with specific Simpsons episodes. I think somehow the AVI file is corrupted, and the Plex web player is not so generous to play the supposedly bad parts as other players.
This happens only on web (macOS, but both on Safari and Chrome, both Catalina and Big Sur). Does not happen in native Plex apps (iOS, tvOS). The file also plays great with Moovist or IINA directly.
The skips happen exactly at the same spot in every browser every time.
Media info:
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV Shows" librarySectionUUID="c2d64051-4e27-443d-bbd5-c989a22fe108" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1605652404">
<Video ratingKey="2004" key="/library/metadata/2004" parentRatingKey="1999" grandparentRatingKey="217" guid="com.plexapp.agents.thetvdb://71663/21/5?lang=hu" parentGuid="com.plexapp.agents.thetvdb://71663/21?lang=hu" grandparentGuid="com.plexapp.agents.thetvdb://71663?lang=hu" type="episode" title="The Devil Wears Nada" titleSort="Devil Wears Nada" grandparentKey="/library/metadata/217" parentKey="/library/metadata/1999" librarySectionTitle="TV Shows" librarySectionID="2" librarySectionKey="/library/sections/2" grandparentTitle="A Simpson csalƔd" parentTitle="Season 21" contentRating="TV-PG" summary="Marge and a group called the "Charity Chicks" pose for a calendar in hopes of raising money for charity, but Marge becomes the talk of the town thanks to her racy poses. Meanwhile, Carl is chosen as the newest supervisor at the nuclear power plant, and hires Homer to be his personal assistant." index="5" parentIndex="21" rating="7.0" viewOffset="76567" viewCount="1" lastViewedAt="1606650471" year="2009" thumb="/library/metadata/2004/thumb/1600413015" art="/library/metadata/217/art/1605201663" parentThumb="/library/metadata/1999/thumb/1600413019" grandparentThumb="/library/metadata/217/thumb/1605201663" grandparentArt="/library/metadata/217/art/1605201663" grandparentTheme="/library/metadata/217/theme/1605201663" duration="1248640" originallyAvailableAt="2009-11-15" addedAt="1440105096" updatedAt="1600413015">
<Media id="1922" duration="1248640" bitrate="1164" width="624" height="352" aspectRatio="1.78" audioChannels="2" audioCodec="mp3" videoCodec="mpeg4" videoResolution="sd" container="avi" videoFrameRate="PAL" videoProfile="advanced simple">
<Part accessible="1" exists="1" id="1939" key="/library/parts/1939/1440089318/file.avi" duration="1248640" file="/mnt/disk2/Plex/TVShows/The.Simpsons/The.Simpsons.S21.HUN.HDTV.XviD-HSF/hsf-simpsons-2105.avi" size="183724032" container="avi" deepAnalysisVersion="4" requiredBandwidths="2465,2465,2465,2465,2465,2465,2465,2465" videoProfile="advanced simple">
<Stream id="8563" streamType="1" codec="mpeg4" index="0" bitrate="995" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" frameRate="25.000" height="352" level="5" profile="advanced simple" refFrames="1" requiredBandwidths="2313,2313,2313,2313,2313,2313,2313,2313" width="624" displayTitle="SD (MPEG4)" extendedDisplayTitle="SD (MPEG4)"/>
<Stream id="8564" streamType="2" selected="1" codec="mp3" index="1" channels="2" bitrate="169" audioChannelLayout="stereo" requiredBandwidths="169,169,169,169,169,169,169,169" samplingRate="48000" streamIdentifier="1" displayTitle="Unknown (MP3 Stereo)" extendedDisplayTitle="Unknown (MP3 Stereo)"/>
</Part>
</Media>
<Writer id="4365" filter="writer=4365" tag="Tim Long"/>
<Extras size="0"></Extras>
<Related></Related>
</Video>
</MediaContainer>
Extract from the output of ffmpeg -v error -i /Users/gk/Downloads/hsf-simpsons-2105.avi -f null - 2>error.log
:
[null @ 0x7fc4b7813200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 12 >= 12
[null @ 0x7fc4b7813200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 35 >= 35
[null @ 0x7fc4b7813200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 59 >= 59
[null @ 0x7fc4b7813200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 82 >= 82
[null @ 0x7fc4b7813200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 105 >= 105
[null @ 0x7fc4b7813200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 129 >= 129
[null @ 0x7fc4b7813200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 152 >= 152
[null @ 0x7fc4b7813200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 176 >= 176
The video tends to skip also if I choose reencoding instead of playing it directly.
Here is the file for debugging purposes: http://gk.lka.hu/x/keep/hsf-simpsons-2105.avi
Plex Web version: 4.47.1, PMS: 1.21.0.3616 (Ubuntu Linux x86_64)
Any suggestions how to help fixing the issue?