Skip to main content

Typed FFmpeg bindings for FFmpeg 7.x

Project description

typed-ffmpeg-v7

Typed FFmpeg bindings for FFmpeg 7.x.

Installation

pip install typed-ffmpeg-v7

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

Features

  • Full type hints for all FFmpeg 7.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_v7-4.3.tar.gz (346.3 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_v7-4.3-py3-none-any.whl (367.6 kB view details)

Uploaded Python 3

File details

Details for the file typed_ffmpeg_v7-4.3.tar.gz.

File metadata

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

File hashes

Hashes for typed_ffmpeg_v7-4.3.tar.gz
Algorithm Hash digest
SHA256 23f6c4c0af70a72f88386a8bfbc2ce1cff995cb770a7ea00a1a8c18a4c43951c
MD5 e13e60323010e9cd999e6d92e284f6a1
BLAKE2b-256 31ba10d38cc802a0a02992c35fd1974f5535eec4c1ccbb6e9ecea961150a7d55

See more details on using hashes here.

File details

Details for the file typed_ffmpeg_v7-4.3-py3-none-any.whl.

File metadata

  • Download URL: typed_ffmpeg_v7-4.3-py3-none-any.whl
  • Upload date:
  • Size: 367.6 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_v7-4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ba59bc40b18cf72f6a827711d440104be01b441455a7bbd7ebbae2e30bfbe1c
MD5 dbf719800f3b80720b773dcc3a8ea58c
BLAKE2b-256 bfe26e79bf44ddc90ed45c36284c195d0b30f5179d8de1a9dc97e0712cf4982b

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