Skip to main content

Modern Python FFmpeg wrappers with comprehensive typing (latest version)

Project description

typed-ffmpeg

Modern Python FFmpeg wrappers with comprehensive typing.

Installation

pip install typed-ffmpeg

This meta-package installs the latest version of typed-ffmpeg (currently v8).

Usage

import ffmpeg

# Input and output
input_file = ffmpeg.input("input.mp4")
output_file = input_file.hflip().output("output.mp4")
output_file.run()

# Complex filter graph
in_file = ffmpeg.input("input.mp4")
overlay_file = ffmpeg.input("overlay.png")

output = (
    ffmpeg.filters
    .concat(
        in_file.trim(start_frame=10, end_frame=20),
        in_file.trim(start_frame=30, end_frame=40),
    )
    .video(0)
    .overlay(overlay_file.hflip())
    .output("out.mp4")
)

output.run()

Requirements

  • Python 3.10+
  • FFmpeg installed on your system

Features

  • Full type hints for all FFmpeg filters, codecs, and formats
  • IDE autocomplete support
  • Runtime validation
  • Filter graph visualization
  • JSON serialization

Documentation

License

MIT License - see LICENSE file for details

Project details


Release history Release notifications | RSS feed

This version

4.0.0

Download files

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

Source Distribution

typed_ffmpeg-4.0.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typed_ffmpeg-4.0.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file typed_ffmpeg-4.0.0.tar.gz.

File metadata

  • Download URL: typed_ffmpeg-4.0.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for typed_ffmpeg-4.0.0.tar.gz
Algorithm Hash digest
SHA256 cea182167ddfc7fcaecfd0b90ce096b287d21a9ca955371a576eb14097df4957
MD5 88f11d7f72fc440d8494a2a2c1405fd7
BLAKE2b-256 2192dacc03b0e5107d63269d57c689b09b290d138de89b33187bc00786b04a97

See more details on using hashes here.

File details

Details for the file typed_ffmpeg-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: typed_ffmpeg-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for typed_ffmpeg-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42758e91fbfb6b6eb01ce95c52b3eac86cb267f61d626df6c4cd62869cc00f56
MD5 0f402af42c1c3df0fae6a2bab4420a9d
BLAKE2b-256 6c8ee960363fd2057b801c76691ddc65be20ef36eae2c48a32da29327599fe79

See more details on using hashes here.

Supported by

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