FFMpeg-Compressor: Add Configuration section in README.md

This commit is contained in:
OleSTEEP 2023-10-01 23:29:34 +03:00
parent 4b76a600fb
commit 06116b5de1
2 changed files with 19 additions and 1 deletions

View file

@ -6,3 +6,21 @@ Python utility uses ffmpeg to compress Visual Novel Resources
* Change the configuration of the utility in `ffmpeg-comp.toml` for yourself * Change the configuration of the utility in `ffmpeg-comp.toml` for yourself
* `ffmpeg-comp {folder}` * `ffmpeg-comp {folder}`
* In result you get `{folder-compressed}` near with original `{folder}` * In result you get `{folder-compressed}` near with original `{folder}`
### Configuration
#### FFMPEG section
* FFMpegParams - Some parameters & flags for ffmpeg command line interface (default: `"-hide_banner -loglevel error"`)
* MimicMode - Rename compressed file to it original name and extension. VN engines determine the file type by its header, so for example PNG file named file.jpg will be loaded as PNG file. (default: `false`)
#### AUDIO section
* Extension - Required audio file extension. It supports: `.aac`, `.flac`, `.m4a`, `.mp3`, `.ogg`, `.opus`, `.raw`, `.wav`, `.wma`.
* BitRate - (mp3 only, for now) Required audio bitrate. For best quality use `320k` value, but for worse use `1-9` (9 worst) number range.
#### IMAGE section
* Extension - Required image file extension. It supports: `.apng`, `.avif`, `.jfif`, `.pjpeg`, `.pjp`, `.svg`, `.webp`, `.jpg/.jpeg`, `.png`, `.raw`
* CompLevel - Compression level for images. Values range: `0-100` (100 - max compression, 0 - min compression)
* JpegComp - (May be deleted in future) Compression level specific for jpeg images. Values range: `0-10` (10 - max compression, 0 - min compression)
#### VIDEO section
* Extension - Required image file extension. It supports: `.3gp`, `.amv`, `.avi`, `.gif`, `.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)

View file

@ -1,6 +1,6 @@
[FFMPEG] [FFMPEG]
FFmpegParams = "-hide_banner -loglevel error" FFmpegParams = "-hide_banner -loglevel error"
MimicMode = true MimicMode = false
[AUDIO] [AUDIO]
Extension = "mp3" Extension = "mp3"