Add m4a and m4v support

This commit is contained in:
henryruhs
2025-02-03 12:13:45 +01:00
parent e47140ea27
commit c9296de559
2 changed files with 4 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ face_mask_regions : List[FaceMaskRegion] = list(face_mask_region_set.keys())
audio_type_set : AudioTypeSet =\ audio_type_set : AudioTypeSet =\
{ {
'm4a': 'audio/mp4',
'mp3': 'audio/mpeg', 'mp3': 'audio/mpeg',
'ogg': 'audio/ogg', 'ogg': 'audio/ogg',
'wav': 'audio/x-wav' 'wav': 'audio/x-wav'
@@ -52,6 +53,7 @@ image_type_set : ImageTypeSet =\
video_type_set : VideoTypeSet =\ video_type_set : VideoTypeSet =\
{ {
'avi': 'video/x-msvideo', 'avi': 'video/x-msvideo',
'm4v': 'video/mp4',
'mkv': 'video/x-matroska', 'mkv': 'video/x-matroska',
'mp4': 'video/mp4', 'mp4': 'video/mp4',
'mov': 'video/quicktime', 'mov': 'video/quicktime',

View File

@@ -109,9 +109,9 @@ FaceMaskType = Literal['box', 'occlusion', 'region']
FaceMaskRegion = Literal['skin', 'left-eyebrow', 'right-eyebrow', 'left-eye', 'right-eye', 'glasses', 'nose', 'mouth', 'upper-lip', 'lower-lip'] FaceMaskRegion = Literal['skin', 'left-eyebrow', 'right-eyebrow', 'left-eye', 'right-eye', 'glasses', 'nose', 'mouth', 'upper-lip', 'lower-lip']
FaceMaskRegionSet = Dict[FaceMaskRegion, int] FaceMaskRegionSet = Dict[FaceMaskRegion, int]
AudioFormat = Literal['mp3', 'ogg', 'wav'] AudioFormat = Literal['m4a', 'mp3', 'ogg', 'wav']
ImageFormat = Literal['bmp', 'jpeg', 'png', 'tiff', 'webp'] ImageFormat = Literal['bmp', 'jpeg', 'png', 'tiff', 'webp']
VideoFormat = Literal['avi', 'mkv', 'mov', 'mp4', 'webm'] VideoFormat = Literal['avi', 'm4v', 'mkv', 'mov', 'mp4', 'webm']
TempFrameFormat = Literal['bmp', 'jpeg', 'png', 'tiff'] TempFrameFormat = Literal['bmp', 'jpeg', 'png', 'tiff']
AudioTypeSet = Dict[AudioFormat, str] AudioTypeSet = Dict[AudioFormat, str]
ImageTypeSet = Dict[ImageFormat, str] ImageTypeSet = Dict[ImageFormat, str]