Skip to main content

Generate/Execute FFmpeg commands for files in acting directory

Project description

Description

Generate and execute collection of FFmpeg commands sequentially from external file to produce WebMs that meet AnimeThemes.moe encoding 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.

Install

Requirements:

  • FFmpeg
  • Python >= 3.6

Install:

pip install animethemes-beta-batch-encoder

Usage

    python -m beta_batch_encoder [-h] [--generate | -g] [--execute | -e] [--file [FILE]] [--configfile [CONFIGFILE]] --loglevel [{debug,info,error}]

Mode

--generate generates 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.

--execute executes commands from file in the current directory line-by-line.

By default, the program looks for a file named commands.txt in the current directory. This file name can be specified by the --file argument.

--generate and --execute generates commands from input files in the current directory and executes the commands sequentially.

None will give modes options to run.

File

The file that commands are written to or read from.

By default, the program will write to or read from commands.txt in the current directory.

Config File

The configuration file in which our encoding properties are defined.

By default, the program will write to or read from beta_batch_encoder.ini in the user config directory of appname beta_batch_encoder and author AnimeThemes.

Example: C:\Users\Kyrch\AppData\Local\AnimeThemes\beta_batch_encoder\beta_batch_encoder.ini

Audio Filters

  • Exit Saves audio filters if selected and continues script execution.
  • Custom Apply a custom audio filter string.
  • Fade In Select an exponential value to apply Fade In.
  • Fade Out Select a start position and an exponential value to Fade Out.
  • Mute Select a start and end position to leave the volume at 0.

Encoding Properties

AllowedFileTypes is a comma-separated listing of file extensions that will be considered for source file candidates.

EncodingModes is a comma-separated listing of bitrate control modes for inclusion and ordering of commands.

Available bitrate control modes are:

  • CBR Constant Bitrate Mode
  • VBR Variable Bitrate Mode
  • CQ Constrained Quality Mode

CRFs is a comma-separated listing of ordered CRF values to use with VBR and/or CQ bitrate control modes.

Threads is the number of threads used to encode. Default is 4.

LimitSizeEnable is a flag for including the -fs argument to terminate an encode when it exceeds the allowed size. Default is True.

AlternateSourceEnable is a flag for alternate command lines between source files. Default is False.

IncludeUnfiltered is a flag for including or excluding an encode without video filters for each bitrate control mode and CRF pairing. Default is True.

VideoFilters is a configuration item list used for named video filtergraphs for each bitrate control mode and CRF pairing.

Logging

Determines the level of the logging for the program.

--loglevel error will only output error messages.

--loglevel info will output error messages and script progression info messages.

--loglevel debug will output all messages, including variable dumps.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

animethemes-beta-batch-encoder-1.1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file animethemes-beta-batch-encoder-1.1.tar.gz.

File metadata

File hashes

Hashes for animethemes-beta-batch-encoder-1.1.tar.gz
Algorithm Hash digest
SHA256 37cf4ba44be744ecf39a1418ec3ff56b79836dfdf1de2d510f30a67417c34d67
MD5 04d2433c5834d2c295db4a8d9687e740
BLAKE2b-256 85417387e750261788034501046a1e725f4f3b6574ad98c7825a5c7baebab21a

See more details on using hashes here.

File details

Details for the file animethemes_beta_batch_encoder-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for animethemes_beta_batch_encoder-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e63721dcd06d0b57c5d89e6e36483eec1b42166a9f4435bf25afd2f70f626a5
MD5 81f82f56e3ee2fb2f906df45ef129fae
BLAKE2b-256 c91619bb803f0f46e266fd481e3a00d04f0c542b783749011e14570c7d0db07d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page