-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration Files
patrickenfuego edited this page Aug 19, 2022
·
7 revisions
Two configuration files, ffmpeg.ini
and encoder.ini
, can be found in the /config
directory inside the project root folder. Each file allows you to specify options that aren't available via parameter, which is useful for frequently used settings that are inconvenient to pass every time via -FFMpegExtra
/-EncoderExtra
(although I still find these more convenient for less used options).
Each time the script runs, the configuration files are parsed and loaded.
Here you can specify options for both x264
and x265
separately:
; COMMENT
; Encoder specific settings in key=value form
[x264]
open-gop=0
keyint=192
min-keyint=24
me=umh
[x265]
open-gop=0
keyint=192
min-keyint=24
sao=0
This file allows you to pass settings to ffmpeg, which is divided into two categories:
-
Arguments
- Options that receive an argument, like-loglevel warning
-
NoArguments
- Command switches that receive no argument, like-shortest
; COMMENT
[Arguments]
; Settings that take arguments. Do not quote arguments:
-loglevel=panic
-cpucount=10
[NoArguments]
; Settings that take no arguments:
-hide_banner
-shortest
As of this writing, the prefix -
is required for each setting, although I'll make it optional in the future.