diff --git a/guide/output-and-naming/index.html b/guide/output-and-naming/index.html index 33b243e4..7073fbc2 100644 --- a/guide/output-and-naming/index.html +++ b/guide/output-and-naming/index.html @@ -2876,7 +2876,7 @@ For an episode with no on-screen name, {episode_name?} and its adja audio -Audio codec +Audio codec; rename it with codec_names DDP, DD, AAC, DTS-X @@ -2886,8 +2886,8 @@ For an episode with no on-screen name, {episode_name?} and its adja audio_full -Codec + channels combined -DDP5.1, DTS-X.5.1.4 +Codec + channels combined; a name that ends in a digit gets a separator +DDP5.1, DTS-X.5.1.4, AC-4.2.0 atmos diff --git a/reference/configuration/index.html b/reference/configuration/index.html index abaa923c..be1e7db1 100644 --- a/reference/configuration/index.html +++ b/reference/configuration/index.html @@ -1997,7 +1997,7 @@ default.

Output & naming -output_template, tag, tag_rules, tag_group_name, tag_imdb_tmdb, chapter_fallback_name, unicode_filenames +output_template, tag, tag_rules, codec_names, tag_group_name, tag_imdb_tmdb, chapter_fallback_name, unicode_filenames DRM & CDM diff --git a/reference/configuration/output/index.html b/reference/configuration/output/index.html index 037a7e30..9ffa35c7 100644 --- a/reference/configuration/output/index.html +++ b/reference/configuration/output/index.html @@ -1155,6 +1155,17 @@ + + +
  • + + + + codec_names + + + +
  • @@ -2034,6 +2045,17 @@ +
  • + +
  • + + + + codec_names + + + +
  • @@ -2185,6 +2207,29 @@ Use {absolute?} so the name stays clean when it is unknown.

    +

    codec_names

    + +

    Renames the codec and HDR names in the filename. Each map key is a name that unshackle writes by +default, and its value is the name to write instead. The map applies to the video, audio, +and hdr template variables, and so +also to audio_full. A name that is not in the map stays as it is, and an empty value removes +the name. You can also set codec_names for one service under services.

    +
    unshackle.yaml
    codec_names:
    +  DDP: EAC3      # DDP5.1  -> EAC3.5.1
    +  DD: AC3        # DD5.1   -> AC3.5.1
    +  H.265: HEVC    # H.265   -> HEVC
    +  HDR10P: HDR10+ # DV.HDR10P -> DV.HDR10+
    +
    +

    For hdr, unshackle renames each part of a Dolby Vision label separately, so HDR10P also +changes DV.HDR10P to DV.HDR10+. When an audio name ends in a digit, audio_full puts a +separator before the channels: EAC3.5.1, not EAC35.1.

    +
    +

    tag_rules see the new names

    +

    unshackle evaluates tag_rules after the rename. With the example above, a +rule must match audio: EAC3, not audio: DDP.

    +

    tag_rules