ArrProfiles/regex_patterns/x264.yml

82 lines
2.2 KiB
YAML

name: x264
pattern: ^(?!.*remux)(?=.*(?:\bDVDRip(?!.*\b(?:XviD|[xh][\-\.\s]?265|HEVC|AV1)\b)|\b[xh][\-\.\s]?264\b)).*
description: "An open source encoder that produces H.264 videos. \n\n- Ensures `remux`\
\ is not present anywhere\n- Matches both `x264` and `h264` (assuming misclassification\
\ if `remux` is absent)\n- Matches `DVDRip`, **only if it is NOT followed by** `XviD`,\
\ `x265`, or `AV1`\n- Matches in cases of multiple sources (e.g., `DVDRip` and `BDRip`\
\ with varying encodes)."
tags:
- Encoder
- Codec
tests:
- expected: true
id: 4
input: Wallander UK S01-S04 DVDRip XviD BDRip x264-Scene (2008-2016)
lastRun: '2025-02-16T16:04:21.638922'
matchSpan:
end: 61
start: 0
matchedContent: Wallander UK S01-S04 DVDRip XviD BDRip x264-Scene (2008-2016)
matchedGroups: []
passes: true
- expected: true
id: 5
input: Movie.2024.WEB-DL.1080p.x264.AAC.mkv
lastRun: '2025-02-16T16:04:21.638922'
matchSpan:
end: 36
start: 0
matchedContent: Movie.2024.WEB-DL.1080p.x264.AAC.mkv
matchedGroups: []
passes: true
- expected: true
id: 6
input: Movie.2024.BDRip.720p.H.264.mkv
lastRun: '2025-02-16T16:04:21.638922'
matchSpan:
end: 31
start: 0
matchedContent: Movie.2024.BDRip.720p.H.264.mkv
matchedGroups: []
passes: true
- expected: false
id: 7
input: Movie.2024.DVDRip.XviD.AC3.avi
lastRun: '2025-02-16T16:04:21.638922'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: false
id: 8
input: Movie.2024.DVDRip.x265.HEVC.mkv
lastRun: '2025-02-16T16:04:21.638922'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: false
id: 9
input: Movie.2024.DVDRip.AV1.OPUS.mkv
lastRun: '2025-02-16T16:04:21.638922'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: false
id: 10
input: Movie.2024.BDRip.1080p.x264-REMUX.mkv
lastRun: '2025-02-16T16:04:21.638922'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: false
id: 11
input: Movie.2024.720p.WEB-DL.H.265.mkv
lastRun: '2025-02-16T16:04:21.638922'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true