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 1: Generates commands from input files in the current directory. User will be prompted for inclusion/exclusion of input file, start time, end time and output file name.
  • --mode 2: Execute commands from file line-by-line in the current directory.
  • --mode 3: Generate commands from input files in the current directory in the same manner as Mode 1 and then execute commands without writing to file.
  • [FILE]: The file that commands are written to or read from. Default: commands.txt in the current directory. Unused in --mode 3.
  • [CONFIGFILE]: The configuration file in which our properties are defined. Default: batch_encoder.ini written to the same directory as the batch_encoder.py script.
  • AllowedFileTypes: Configuration property for file extensions that will be considered source file candidates
  • EncodingModes: Configuration property for the inclusion and order of encoding modes {CBR, VBR, CQ}
  • CRFs: Configuration property for the ordered list of CRF values to use with VBR and/or CQ encoding modes
  • IncludeUnfiltered: Configuration property that sets the flag for including/excluding an encode without video filters for each EncodingMode
  • VideoFilters: Configuration items used for named video filtergraphs
  • --loglevel error: Only show error messages
  • --loglevel info: Show error messages and script progression info messages
  • --loglevel debug: Show 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.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

animethemes_batch_encoder-1.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: animethemes-batch-encoder-1.0.tar.gz
  • Upload date:
  • Size: 11.5 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.tar.gz
Algorithm Hash digest
SHA256 b85c410d3b4e52c9cefd07d61b05bf73903692b3b823cea8f4d1424858fafb4b
MD5 75461649ace209b5e55f7a5aab310a35
BLAKE2b-256 6e45e0dacc79bd46a83a20320b2f688f460939cccbc0b0505467ed5a00c84582

See more details on using hashes here.

File details

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

File metadata

  • Download URL: animethemes_batch_encoder-1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 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-py3-none-any.whl
Algorithm Hash digest
SHA256 244991a99fe7d3776ed464bc9169b60845a34b08024981d35a3c749f04b13336
MD5 246b4df0f8ac81bd518f129578bf120a
BLAKE2b-256 03a42c602745b32af9e01dd8566e53b5c17bef0c6c7cf9f079fb5e6039ccef80

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