[PR #9723] Fix multiple codec checking in CodecProfiles conditions #12203

Closed
opened 2026-02-07 06:51:49 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/9723

State: closed
Merged: Yes


ContainsAnyCodec checks if its codec list contains the specified one.
#9411 limited this check to one codec per codec profile.
However, I haven't seen us use more than one.

With something like:

{
    "Codec": "h264,hevc",
    "Container": "mkv",
    "Conditions": [
        {
            "Condition": "LessThanEqual",
            "Property": "VideoBitrate",
            "Value": "10000000",
            "IsRequired": "true"
        }
    ]
},
{
    "Codec": "h264",
    "Container": "mkv",
    "Conditions": [
        {
            "Condition": "LessThanEqual",
            "Property": "VideoLevel",
            "Value": "42",
            "IsRequired": "true"
        }
    ]
}

both conditions should apply for h264 in mkv.

Changes
Allow (bring back) a list of codecs in CodecProfiles while keeping the idea of #9411.

Issues
N/A

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/9723 **State:** closed **Merged:** Yes --- `ContainsAnyCodec` checks if its codec list contains the specified one. #9411 limited this check to one codec per codec profile. _However, I haven't seen us use more than one._ With something like: ```json { "Codec": "h264,hevc", "Container": "mkv", "Conditions": [ { "Condition": "LessThanEqual", "Property": "VideoBitrate", "Value": "10000000", "IsRequired": "true" } ] }, { "Codec": "h264", "Container": "mkv", "Conditions": [ { "Condition": "LessThanEqual", "Property": "VideoLevel", "Value": "42", "IsRequired": "true" } ] } ``` both conditions should apply for `h264` in `mkv`. **Changes** Allow (bring back) a list of codecs in `CodecProfiles` while keeping the idea of #9411. **Issues** N/A
OVERLORD added the pull-request label 2026-02-07 06:51:49 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12203