feat: add frame class extraction and formatting for media files

This commit is contained in:
sha
2025-12-25 05:13:56 +00:00
parent 4e7cf94d58
commit 37efdf60d3
7 changed files with 224 additions and 61 deletions
+38
View File
@@ -31,4 +31,42 @@ SOURCE_DICT = {
'DVDRip': ['DVDRip', 'DVD-Rip', 'DVDRIP'],
'HDTV': ['HDTV'],
'BluRay': ['BluRay', 'BLURAY', 'Blu-ray'],
}
FRAME_CLASSES = {
'480p': {
'nominal_height': 480,
'typical_widths': [640, 704, 720],
'description': 'Standard Definition (SD) - DVD quality'
},
'576p': {
'nominal_height': 576,
'typical_widths': [720, 768],
'description': 'PAL Standard Definition (SD) - European DVD quality'
},
'720p': {
'nominal_height': 720,
'typical_widths': [1280],
'description': 'High Definition (HD) - 720p HD'
},
'1080p': {
'nominal_height': 1080,
'typical_widths': [1920],
'description': 'Full High Definition (FHD) - 1080p HD'
},
'1440p': {
'nominal_height': 1440,
'typical_widths': [2560],
'description': 'Quad High Definition (QHD) - 1440p 2K'
},
'2160p': {
'nominal_height': 2160,
'typical_widths': [3840],
'description': 'Ultra High Definition (UHD) - 2160p 4K'
},
'4320p': {
'nominal_height': 4320,
'typical_widths': [7680],
'description': 'Ultra High Definition (UHD) - 4320p 8K'
}
}