Codec Badging in Plexamp Bug?

Ok so weird thing I noticed today. I was listening to library radio, I have very few high res files that are above 16bits.

One track played that had 44.1khz and 24bits. And its been about 2 hours of listening and the badging for each track after that track is showing 44.1khz and 24bits when I know this track is not 24bits.

You’d need to post more information, like the XML off the server for a track :sweat_smile:

Right right. Ok so I have the xml open on the server. Just copy paste it here?

Ok so I think the song that caused this was Bad Moon Rising the XML is here:

`<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="29" librarySectionTitle="Ryuzaki Music" librarySectionUUID="d2b39472-32c4-4cda-be07-49c74fbabde6" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1746541907">
<Track ratingKey="152611663" key="/library/metadata/152611663" parentRatingKey="152611639" grandparentRatingKey="122217371" guid="plex://track/5d07cdb2403c640290f4be95" parentGuid="plex://album/5d07c1a0403c64029085e41f" grandparentGuid="plex://artist/5d07bbfc403c6402904a61f5" parentStudio="Fantasy" type="track" title="Bad Moon Rising" grandparentKey="/library/metadata/122217371" parentKey="/library/metadata/152611639" librarySectionTitle="Ryuzaki Music" librarySectionID="29" librarySectionKey="/library/sections/29" grandparentTitle="Creedence Clearwater Revival" parentTitle="Chronicle: The 20 Greatest Hits" summary="" index="4" parentIndex="1" ratingCount="1385557" userRating="6.0" viewCount="40" skipCount="1" lastViewedAt="1747420032" lastRatedAt="1590645002" parentYear="1976" thumb="/library/metadata/152611639/thumb/1743403006" art="/library/metadata/122217371/art/1746864525" parentThumb="/library/metadata/152611639/thumb/1743403006" grandparentThumb="/library/metadata/122217371/thumb/1746864525" grandparentArt="/library/metadata/122217371/art/1746864525" duration="139829" addedAt="1715049893" updatedAt="1746864525" musicAnalysisVersion="1">
<Media id="152686105" duration="139829" bitrate="9216" audioChannels="2" audioCodec="pcm" container="aiff" audioProfile="pcm_s24be" hasVoiceActivity="0">
<Part accessible="1" exists="1" id="152727012" key="/library/parts/152727012/1717000819/file.aiff" duration="139829" file="/Volumes/Media MG5 iTunes/Plexamp Music Library/_Music/_Music_HiRes_AIFF/Creedence Clearwater Revival/Creedence Clearwater Revival - Chronicle_ The 20 Greatest Hits (Remastered 2023)/04 - Bad Moon Rising.aiff" size="161166918" audioProfile="pcm_s24be" container="aiff" deepAnalysisVersion="6" hasThumbnail="1" requiredBandwidths="8965,8903,8903,8903,8903,8903,8903,8903">
<Stream id="8210935" streamType="2" selected="1" codec="pcm" index="0" channels="2" bitrate="9216" albumGain="-7.08" albumPeak="0.973041" albumRange="5.580393" bitDepth="24" endRamp="-51.00 0.13;-38.58 2.63;-29.95 3.33;-23.29 4.13;-20.19 4.73;-17.47 5.23;-14.50 5.73;-11.62 6.03;-8.03 6.43;-5.21 6.63;-2.93 6.83;2.40 7.33;3.60 7.83;6.66 11.03;" gain="-7.08" loudness="-12.46" lra="1.91" peak="0.964012" profile="pcm_s24be" requiredBandwidths="8960,8900,8900,8900,8900,8900,8900,8900" samplingRate="192000" startRamp="-10.72 0.00;-7.41 0.10;-4.77 0.40;-2.54 0.70;1.75 3.10;3.69 5.80;6.09 64.60;" displayTitle="PCM (Stereo)" extendedDisplayTitle="PCM (Stereo)"> </Stream>
<Stream id="8568616" key="/library/streams/8568616" streamType="4" codec="lrc" format="lrc" minLines="3" provider="com.plexapp.agents.lyricfind" timed="1" displayTitle="LRC" extendedDisplayTitle="LRC (External)"> </Stream>
<Stream id="8568617" key="/library/streams/8568617" streamType="4" codec="txt" format="txt" provider="com.plexapp.agents.lyricfind" displayTitle="TXT" extendedDisplayTitle="TXT (External)"> </Stream>
</Part>
</Media>
<Image alt="Bad Moon Rising" type="coverPoster" url="/library/metadata/122217371/thumb/1746864525"/>
<Image alt="Bad Moon Rising" type="background" url="/library/metadata/122217371/art/1746864525"/>
<Genre id="111984" filter="genre=111984" tag="Rock & Roll"/>
<Guid id="mbid://f242b049-65d6-3380-99b0-01de017d375e"/>
<Mood id="110088" filter="mood=110088" tag="Nocturnal"/>
<Mood id="110048" filter="mood=110048" tag="Organic"/>
<Mood id="109792" filter="mood=109792" tag="Freewheeling"/>
<Mood id="109733" filter="mood=109733" tag="Confident"/>
<Mood id="109817" filter="mood=109817" tag="Summery"/>
<Mood id="109798" filter="mood=109798" tag="Earthy"/>
<Mood id="109736" filter="mood=109736" tag="Exuberant"/>
<Extras size="0"> </Extras>
<Related> </Related>
</Track>
</MediaContainer>`

And then a hour or more later the song in the picture above was showing 24bit but the xml is showing 16bits.

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="11" librarySectionTitle="Plexamp Music" librarySectionUUID="90b39d9a-f9fd-4748-97da-2eaae04fd3ab" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1746541907">
<Track ratingKey="140920362" key="/library/metadata/140920362" parentRatingKey="140920359" grandparentRatingKey="109145242" guid="plex://track/5d07cdbb403c640290f58924" parentGuid="plex://album/5d07c173403c640290846a84" grandparentGuid="plex://artist/5d07bc02403c6402904aa391" parentStudio="Warner Bros. Records" type="track" title="Points of Authority" grandparentKey="/library/metadata/109145242" parentKey="/library/metadata/140920359" librarySectionTitle="Plexamp Music" librarySectionID="11" librarySectionKey="/library/sections/11" grandparentTitle="Linkin Park" parentTitle="Hybrid Theory" summary="" index="4" parentIndex="1" ratingCount="967607" userRating="6.0" viewCount="39" skipCount="3" lastViewedAt="1747425765" parentYear="2000" thumb="/library/metadata/140920359/thumb/1733517983" art="/library/metadata/109145242/art/1746952895" parentThumb="/library/metadata/140920359/thumb/1733517983" grandparentThumb="/library/metadata/109145242/thumb/1746952895" grandparentArt="/library/metadata/109145242/art/1746952895" duration="200266" addedAt="1701142856" updatedAt="1746254138" musicAnalysisVersion="1">
<Media id="140997120" duration="200266" bitrate="1411" audioChannels="2" audioCodec="pcm" container="aiff" audioProfile="pcm_s16be" hasVoiceActivity="0">
<Part accessible="1" exists="1" id="141037632" key="/library/parts/141037632/1660618260/file.aiff" duration="200266" file="/Volumes/Media MG5 iTunes/Plexamp Music Library/_Explicit Music/_Explicit_AIFF/Linkin Park/Linkin Park - Hybrid Theory/04 - Points Of Authority.aiff" size="35429360" audioProfile="pcm_s16be" container="aiff" deepAnalysisVersion="6" hasThumbnail="1" requiredBandwidths="1381,1381,1381,1381,1381,1381,1381,1381">
<Stream id="7587406" streamType="2" selected="1" codec="pcm" index="0" channels="2" bitrate="1411" albumGain="-11.40" albumPeak="1.000000" albumRange="8.824490" endRamp="-47.28 0.17;-38.44 0.77;-29.33 1.47;-23.32 1.97;-20.89 2.07;-16.08 2.37;-13.06 2.47;-9.36 2.57;-5.49 2.67;-2.44 2.77;2.47 2.87;5.36 2.97;6.24 3.07;" gain="-11.40" loudness="-7.00" lra="6.34" peak="0.988586" profile="pcm_s16be" requiredBandwidths="1378,1378,1378,1378,1378,1378,1378,1378" samplingRate="44100" startRamp="-22.09 0.00;-11.72 0.10;-8.58 0.40;-1.54 10.20;0.88 10.30;3.34 10.60;6.70 20.40;" displayTitle="PCM (Stereo)" extendedDisplayTitle="PCM (Stereo)"> </Stream>
<Stream id="7587418" key="/library/streams/7587418" streamType="4" codec="lrc" format="lrc" minLines="3" provider="com.plexapp.agents.lyricfind" timed="1" displayTitle="LRC" extendedDisplayTitle="LRC (External)"> </Stream>
<Stream id="7587419" key="/library/streams/7587419" streamType="4" codec="txt" format="txt" provider="com.plexapp.agents.lyricfind" displayTitle="TXT" extendedDisplayTitle="TXT (External)"> </Stream>
</Part>
</Media>
<Image alt="Points of Authority" type="coverPoster" url="/library/metadata/109145242/thumb/1746952895"/>
<Image alt="Points of Authority" type="background" url="/library/metadata/109145242/art/1746952895"/>
<Genre id="110797" filter="genre=110797" tag="Rap & Roll"/>
<Guid id="mbid://b5735816-c489-31c1-b194-90bc592c3876"/>
<Mood id="109636" filter="mood=109636" tag="Angst-Ridden"/>
<Mood id="109638" filter="mood=109638" tag="Aggressive"/>
<Extras size="0"> </Extras>
<Related> </Related>
</Track>
</MediaContainer>

I just noticed something. All my 16bit tracks do not have BitDepth in the XML. Every single track after bad moon rising which was a 24bit track has resulted in the codec badge getting stuck.

Is there any reason why the bit depth for 16bit tracks is not in the xml or in the media info?

There was a while we defaulted to 24-bit if the info wasn’t in the file. In the latest release, we default to 16-bit, but you might need to clear caches on the app if you want the changes to be visible.

Yup that fixed it. Thanks!!

That is interesting. Just curious. For bitDepth, Plex does or does not store that value for each track? Or does it only store the bitdepth value for tracks above 16bits? Or below 24bits?

I am just interested in understanding how and why.

It should store it correctly for all media types and formats, but apparently there’s some which don’t work. Could be an ffmpeg issue, or something in the server analysis.

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