Skip to main content

ffmpeg scripts for handicaps

This Python 3 package simplifies 2-pass VP9/Opus encoding for AMQ using ffmpeg. It's basically a wrapper with presets for ffmpeg-python, with some hacky stuff to get 2-pass encodes working.

You can use it to encode every resolution of a video with a single command.

You can override a lot of the presets. Passing norm=True automatically adjusts volume levels for you.

I'll write up documentation later.

Install it with pip

First, install Python 3 if you haven't already. Then,

pip install amqencode

or maybe this on Windows

py -3 -m pip install amqencode

Also make sure that ffmpeg is on your PATH.

Usage

import amqencode in your python scripts.

See sample_encode.py for an example of a script that encodes a video into mp3 and webms, then muxes those outputs with clean audio.

CLI

If you just want to encode a file without writing a standalone script, you can call the package directly from a terminal.

*nix

python3 -m amqencode

Windows

py -3 -m amqencode

However, this is incapable of muxing clean audio into an encode.

Metadata

Release files for amqencode 0.2.3

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

Source distribution (sdist)

Source distribution for amqencode 0.2.3
File Size Uploaded Provenance Actions
amqencode-0.2.3.tar.gz 9.3 kB Without provenance Details for amqencode-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for amqencode 0.2.3
File Interpreter ABI Platform Actions
amqencode-0.2.3-py3-none-any.whl Python 3 none any Details for amqencode-0.2.3-py3-none-any.whl

Total release size: 20.2 kB

Release files / amqencode-0.2.3.tar.gz

Download URL amqencode-0.2.3.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e7e92a91757dc9779fed2f7b7a7c5a71d06a23f2ed75b2ea61cfd67b61e15361
BLAKE2b-256 checksum
How to use checksums
dee65904df478cd8ad4fb003b9c75f6d944ef90d20e5880b8df35440ac965c9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / amqencode-0.2.3-py3-none-any.whl

Download URL amqencode-0.2.3-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a60715380e2ce5dae5d2377c0f8d5cf899c780ca935911ed3f36cfe9f5b8a4c5
BLAKE2b-256 checksum
How to use checksums
47a9bf8c0f574e9064ed60fc78b43bc5fb3bbe7f37300168af6e0b61635d2f82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for amqencode 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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