Content Rating mp4 metadata field

I am trying to write a “content rating” of “TV-Y” to my mp4 file so that Plex can pull it through and detect it as content rating when doing a media scan. The library is set to scan local metadata only so only metadata from the file is displayed.

I have this working for genre by post processing my file with ffmpg however I cannot work out what filed I should be writing to for “content rating”. I believe the code that handles this is…

With yt-dlp I have used…
--postprocessor-args "Metadata:-metadata Genre=Kids -metadata rating=TV-Y"

Genre is working as expected, content_rating is not

As far as I can see the field is called

ContentRating

I just added TV-MA via MetaZ.app on macOS and it worked fine. This is how it shows in MediaInfo.app

So I “think” the issue is that mp4 containers on windows by default don’t have a field for content_rating

which leave me wondering, what field is it storing ----:com.apple.iTunes:iTunEXTC this in from the code snippet and can I emulate it?

Doh, iTunEXTC is the field. If I use Kid3 to populate it with…
mpaa|TV-Y|300|BecasueReasons then the content rating to TV-Y will show up inside plex

Now to work out how to write that field with ffmpeg or something else supported by yt-dlp because --postprocessor-args "Metadata:-metadata iTunEXTC=mpaa|TV-Y|300|BecasueReasons" doesnt seem to add the tag at all

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