Package: animethemes-batch-encoder
DescriptionGenerate and execute collection of FFmpeg commands sequentially from external file to produce WebMs that meetAnimeThemes.moeencoding standards.Take advantage of sleep, work, or any other time that we cannot actively monitor the encoding process to produce a set of encodes for later quality checking and/or tweaking for additional encodes.Ideally we are iterating over a combination of filters and settings, picking the best one at the end.InstallRequirements:FFmpegPython >= 3.6Install:pip install animethemes-batch-encoderUsagepython -m batch_encoder [-h] [--generate | -g] [--execute | -e] [--custom | -c] [--file [FILE]] [--configfile [CONFIGFILE]] [--inputfile [INPUTFILES]] --loglevel [{debug,info,error}]Mode--generategenerates commands from input files in the current directory.The user will be prompted for values that are not determined programmatically, such as inclusion/exclusion of a source file candidate, start time, end time, output file name and new audio filters.--executeexecutes commands from file in the current directory line-by-line.By default, the program looks for a file namedcommands.txtin the current directory. This file name can be specified by the--fileargument.--generateand--executegenerates commands from input files in the current directory and executes the commands sequentially.Nonewill give modes options to run.Custom--customcustomizes options like Create Preview, Limit Size Enable, CRFs and Encoding Modes for each output file. Default configs are specified in the--fileargument.FileThe file that commands are written to or read from.By default, the program will write to or read fromcommands.txtin the current directory.Config FileThe configuration file in which our encoding properties are defined.By default, the program will write to or read frombatch_encoder.iniin the user config directory of appnamebatch_encoderand authorAnimeThemes.Example:C:\Users\Kyrch\AppData\Local\AnimeThemes\batch_encoder\batch_encoder.iniInput File--inputfilewill give the option to insert input files in advance, separated by two commas. Example:python -m batch_encoder -g --inputfile 'source file.mkv,,source file 2.mkv'.Audio FiltersExitSaves audio filters if selected and continues script execution.CustomApply a custom audio filter string.Fade InSelect an exponential value to apply Fade In.Fade OutSelect a start position and an exponential value to Fade Out.MuteSelect a start and end position to leave the volume at 0.Video FiltersNo FiltersAdd a line without filterscale=-1:720Add downscale to 720pscale=-1:720,hqdn3d=0:0:3:3,gradfun,unsharpAdd downscale to 720p and filters by AnimeThemeshqdn3d=0:0:3:3,gradfun,unsharpAdd filters by AnimeThemeshqdn3d=0:0:3:3Add lightdenoise filterhqdn3d=1.5:1.5:6:6Add heavydenoise filterunsharpAdd unsharp filterCustomApply a custom video filter string.Encoding PropertiesAllowedFileTypesis a comma-separated listing of file extensions that will be considered for source file candidates.EncodingModesis a comma-separated listing ofbitrate control modesfor inclusion and ordering of commands.Available bitrate control modes are:CBRConstant Bitrate ModeVBRVariable Bitrate ModeCQConstrained Quality ModeCRFsis a comma-separated listing of ordered CRF values to use withVBRand/orCQbitrate control modes.CBRBitratesis comma-separated listing of ordered bitrate values to use withCBR.CBRMaxBitratesis comma-separated listing of ordered maximum bitrate values to use withCBR.Threadsis the number of threads used to encode. Default is 4.LimitSizeEnableis a flag for including the-fsargument to terminate an encode when it exceeds the allowed size. Default is True.AlternateSourceEnableis a flag for alternate command lines between source files. Default is False.CreatePreviewis a flag for create a command line to preview seeks. Default is False.IncludeUnfilteredis a flag for including or excluding an encode without video filters for each bitrate control mode and CRF pairing. Default is True.VideoFiltersis a configuration item list used for named video filtergraphs for each bitrate control mode and CRF pairing.LoggingDetermines the level of the logging for the program.--loglevel errorwill only output error messages.--loglevel infowill output error messages and script progression info messages.--loglevel debugwill output all messages, including variable dumps.