Improved AAC/h264 match on old mediainfo

This commit is contained in:
DataHoarder 2021-12-26 15:32:43 +01:00
parent e82697bf2a
commit 5656ae4e06
2 changed files with 29 additions and 2 deletions

View file

@ -1,7 +1,7 @@
// ==UserScript==
// @name AnimeBytes Mediainfo Improvements
// @author WeebDataHoarder
// @version 1.22.3
// @version 1.22.4
// @downloadURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
// @updateURL https://git.gammaspectra.live/WeebDataHoarder/userscripts/raw/branch/master/AnimeBytes/ab-mediainfo.user.js
// @description AnimeBytes Mediainfo Improvements. Adds several listing and matching releases against mediainfo utilities. MIT license
@ -17,7 +17,7 @@
// @require deps/compat.js?1
// @require deps/resources.js?1
// @require deps/settings.js?1
// @require deps/mediainfo.js?6
// @require deps/mediainfo.js?8
// @require deps/ab-class.js?1
// @run-at document-end
// ==/UserScript==

View file

@ -39,6 +39,13 @@ class Mediainfo {
},
legacy: "AAC"
},
{
name: "HE-AAC",
match: {
codec_id: /^(A_)?AAC\/MPEG4\/LC\/SBR/
},
legacy: "AAC"
},
{
name: "HE-AAC",
match: {
@ -493,6 +500,26 @@ class Mediainfo {
legacy: "h264 $bitDepth-bit"
},
{
name: "h264 $chroma",
match: {
codec_id: /^(V_MPEG4\/ISO\/AVC|avc1|AVC|V_MS\/VFW\/FOURCC \/ H264)$/,
resolution: "24 bits",
colorimetry: /^(4:2:0|(?<chroma>[0-9]:[0-9]:[0-9]))/
},
legacy: "h264"
},
{
name: "h264 10-bit $chroma",
match: {
codec_id: /^(V_MPEG4\/ISO\/AVC|avc1|V_MS\/VFW\/FOURCC \/ H264)$/,
resolution: /^30 bits/,
colorimetry: /^(4:2:0|(?<chroma>[0-9]:[0-9]:[0-9]))/
},
legacy: "h264 $bitDepth-bit"
},
{
name: "Theora",
match: {