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

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-1.0.0a2.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-1.0.0a2-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file typed_ffmpeg-1.0.0a2.tar.gz.

File metadata

  • Download URL: typed_ffmpeg-1.0.0a2.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-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 7aa13d0aebab165e6613af6f913cbc7a092fbf318d322992c3a3f1cd22dcd7b5
MD5 825a776ec7d1c9de3565d4c2212c2d48
BLAKE2b-256 a5cedafb169a0259fc582723bb38cd3aaea2ab104589d30666e64675e175442d

See more details on using hashes here.

File details

Details for the file typed_ffmpeg-1.0.0a2-py3-none-any.whl.

File metadata

  • Download URL: typed_ffmpeg-1.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 1.9 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-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 5afbfc0804473850cf9e9115483f34b0ec2ba82674bb0af3cdc5f1204cb4de0d
MD5 743df92bab3128dc4029446234af789a
BLAKE2b-256 3dba6272f3add346dd89b3ba207bd5184fde433a532f7e9fcef5c48edfa47c54

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