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.0a2.tar.gz (346.1 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.0a2-py3-none-any.whl (367.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_ffmpeg_v8-1.0.0a2.tar.gz
  • Upload date:
  • Size: 346.1 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.0a2.tar.gz
Algorithm Hash digest
SHA256 6339ff94a6b8f5ee3684858fd18491b1cdb9ed07949fedae05a0fe562050eee7
MD5 c85365515c87a7c28aef0b1ff3ed19ce
BLAKE2b-256 816310909f44470dcc32da36fac0b5c7ce8a0844cc7bce8c502acd9ff5b202a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typed_ffmpeg_v8-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 140dcb44c83fd86cc70e0621580b85dc4705b4fc22301faa19099c63c753bc99
MD5 8386e7c8d517d2658283df938a8d39d1
BLAKE2b-256 e245738e9c28c122348b63791365ea62b7f6ec3e6334c7bd20bea451a6a2c7c3

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