Skip to main content

Typed FFmpeg bindings for FFmpeg 5.x

Project description

typed-ffmpeg-v5

Typed FFmpeg bindings for FFmpeg 5.x.

Installation

pip install typed-ffmpeg-v5

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 5.x installed on your system

Features

  • Full type hints for all FFmpeg 5.x 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


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_v5-4.0.0.tar.gz (292.8 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_v5-4.0.0-py3-none-any.whl (312.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for typed_ffmpeg_v5-4.0.0.tar.gz
Algorithm Hash digest
SHA256 acc0f6856fe792dd0d11e4792b18a27ba78180872c70f2dbe3d9d949b01f066d
MD5 f5c28acb588d0cef36ea7b386b9f35b7
BLAKE2b-256 648eea1b6c63c667b1b8c44a31f7d2f92ec2fc81a7bd93ce9aa91aeb3fd6cfb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typed_ffmpeg_v5-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3ac9fb09d0b9465df10881458688205fda70336db4b75829ea72677cebf804c
MD5 e0878338ffed8289a84068e1ff002777
BLAKE2b-256 36f3822ac6c35d853108a2ed1d9f4a55f5ce530035f3bfd69f7f604354704f8b

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