Skip to main content

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] [--custom | -c] [--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.

Custom

--custom customizes options like Create Preview, Limit Size Enable, CRFs and Encoding Modes for each output file. Default configs are specified in the --file argument.

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.

Video Filters

  • No Filters Add a line without filter
  • scale=-1:720 Add downscale to 720p
  • scale=-1:720,hqdn3d=0:0:3:3,gradfun,unsharp Add downscale to 720p and filters by AnimeThemes
  • hqdn3d=0:0:3:3,gradfun,unsharp Add filters by AnimeThemes
  • hqdn3d=0:0:3:3 Add lightdenoise filter
  • hqdn3d=1.5:1.5:6:6 Add heavydenoise filter
  • unsharp Add unsharp filter
  • Custom Apply a custom video filter string.

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.

CreatePreview is a flag for create a command line to preview seeks. 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.

Metadata

Release files for animethemes-beta-batch-encoder 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for animethemes-beta-batch-encoder 1.4.1
File Size Uploaded
animethemes-beta-batch-encoder-1.4.1.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for animethemes-beta-batch-encoder 1.4.1
File Interpreter ABI Platform
animethemes_beta_batch_encoder-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.2 kB

Release files / animethemes-beta-batch-encoder-1.4.1.tar.gz

Download URL animethemes-beta-batch-encoder-1.4.1.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
49a50b8c03c191c0a54c127e44c6e0f6debf2a0804211f7173c06837d5ca0115
BLAKE2b-256 checksum
How to use checksums
68265e671a660b30172fa7273f92119df0a2a46f2ae53fb66ea24874c0e67642
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / animethemes_beta_batch_encoder-1.4.1-py3-none-any.whl

Download URL animethemes_beta_batch_encoder-1.4.1-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5a6130edba4b4d3288086b46e11a4b628041497d311b061e57b8d459e6091f8
BLAKE2b-256 checksum
How to use checksums
f7c3ef0c6c1f9e5c811f6db33a443ada637c43451da8474b84392abba6dd63f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.4.1 This release

2 release files

1.4

2 release files

1.3.1

2 release files

1.3

2 release files

1.2

2 release files

1.1.1

2 release files

1.1

2 release files

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page