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-batch-encoder

Usage

    python -m batch_encoder [-h] --mode [{1,2,3}] [--file [FILE]] [--configfile [CONFIGFILE]] --loglevel [{debug,info,error}]

Mode

--mode 1 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 and output file name.

--mode 2 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.

--mode 3 generates commands from input files in the current directory and executes the commands sequentially without writing to file.

The --file argument will be ignored in this case.

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 batch_encoder.ini in the user config directory of appname batch_encoder and author AnimeThemes.

Example: C:\Users\paranarimasu\AppData\Local\AnimeThemes\batch_encoder\batch_encoder.ini

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.

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

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-batch-encoder-1.0.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

animethemes_batch_encoder-1.0.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file animethemes-batch-encoder-1.0.1.tar.gz.

File metadata

  • Download URL: animethemes-batch-encoder-1.0.1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for animethemes-batch-encoder-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4d3c401f4011213a8d31ae47449d6c93c8b1f7a0d3e8d60442d0b4dc2b262193
MD5 c2b43e65c12eb6aadc7cb5f50124caac
BLAKE2b-256 2306f31d06a136cbe45bb3541f1c0780b42d78666bd18e7342f54d1ccc443963

See more details on using hashes here.

File details

Details for the file animethemes_batch_encoder-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: animethemes_batch_encoder-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for animethemes_batch_encoder-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46b45e04177a4779202d826a150b0f7dff265b4132082207b2d7f736df323795
MD5 0ab43ba15e33ee52bee46938888ac201
BLAKE2b-256 309d451669f270f7c41661d4aded9f5a85d2f0b90285cb4a589139c875906cf2

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