FFMpeg-Compressor: Support .m2t file format

This commit is contained in:
OleSTEEP 2023-10-30 00:56:53 +03:00
parent 37e3c9b257
commit e48b7599d1
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ Python utility uses ffmpeg to compress Visual Novel Resources
* CompLevel - Compression level for images. Values range: `0-100` (100 - max compression, 0 - min compression) * CompLevel - Compression level for images. Values range: `0-100` (100 - max compression, 0 - min compression)
#### VIDEO section #### VIDEO section
* Extension - Required image file extension. It supports: `.3gp`, `.amv`, `.avi`, `.gif`, `.m4v`, `.mkv`, `.mov`, `.mp4`, `.m4v`, `.mpeg`, `.mpv`, `.webm`, `.ogv` * Extension - Required image file extension. It supports: `.3gp`, `.amv`, `.avi`, `.gif`, `.m2l`, `.m4v`, `.mkv`, `.mov`, `.mp4`, `.m4v`, `.mpeg`, `.mpv`, `.webm`, `.ogv`
* Codec - (May be optional in future) Required video codec. (See official ffmpeg documentation for supported codecs) * Codec - (May be optional in future) Required video codec. (See official ffmpeg documentation for supported codecs)
### TODO (for testing branch) ### TODO (for testing branch)

View file

@ -17,7 +17,7 @@ def get_req_ext(file):
def get_file_type(file): def get_file_type(file):
audio_ext = ['.aac', '.flac', '.m4a', '.mp3', '.ogg', '.opus', '.raw', '.wav', '.wma'] audio_ext = ['.aac', '.flac', '.m4a', '.mp3', '.ogg', '.opus', '.raw', '.wav', '.wma']
image_ext = ['.apng', '.avif', '.bmp', '.jfif', '.pjpeg', '.pjp', '.svg', '.webp', '.jpg', '.jpeg', '.png', '.raw'] image_ext = ['.apng', '.avif', '.bmp', '.jfif', '.pjpeg', '.pjp', '.svg', '.webp', '.jpg', '.jpeg', '.png', '.raw']
video_ext = ['.3gp' '.amv', '.avi', '.gif', '.m4v', '.mkv', '.mov', '.mp4', '.m4v', '.mpeg', '.mpv', '.webm', video_ext = ['.3gp' '.amv', '.avi', '.gif', '.m2t', '.m4v', '.mkv', '.mov', '.mp4', '.m4v', '.mpeg', '.mpv', '.webm',
'.ogv'] '.ogv']
file_extension = os.path.splitext(file)[1] file_extension = os.path.splitext(file)[1]