Skip to main content

Typed FFmpeg bindings for FFmpeg 8.x

Project description

typed-ffmpeg-v8

Typed FFmpeg bindings for FFmpeg 8.x.

Installation

pip install typed-ffmpeg-v8

Or install the latest version (which uses v8):

pip install typed-ffmpeg

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

Features

  • Full type hints for all FFmpeg 8.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_v8-1.0.0a1.tar.gz (213.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_v8-1.0.0a1-py3-none-any.whl (233.7 kB view details)

Uploaded Python 3

File details

Details for the file typed_ffmpeg_v8-1.0.0a1.tar.gz.

File metadata

  • Download URL: typed_ffmpeg_v8-1.0.0a1.tar.gz
  • Upload date:
  • Size: 213.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_v8-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 f60597e9a1b26b00b8b6e032b441e42b809d03c7c0c7729c5feefded91189e87
MD5 60041a1dc0aa90d34026473f56fa2074
BLAKE2b-256 884c8d271a4da44bc342fb578ca61c213c281ab8fa999da28e31fb0d76d2ab1a

See more details on using hashes here.

File details

Details for the file typed_ffmpeg_v8-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for typed_ffmpeg_v8-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 95ccea19ddc47391906d1f06931ea6a3ad1c93d0a446eb214ca6ca8f4ed72374
MD5 ac20e2f29af82e55aed8af97cf7a6180
BLAKE2b-256 26983c29fa609b7dfc2afd85ac7e24c6fe844cebab0fa9cd43d8371c31ea3737

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