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-4.3.tar.gz (358.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-4.3-py3-none-any.whl (380.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_ffmpeg_v8-4.3.tar.gz
  • Upload date:
  • Size: 358.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-4.3.tar.gz
Algorithm Hash digest
SHA256 47f355f4ced1f961c319df537f66ae8e03351c9a1c3a0b86601f5a542d287abc
MD5 0e5c494443a57652a087e289b74420f3
BLAKE2b-256 61e5f81f7ecf8117825ca6a2de81b168af143bb08bb12ff7736a03573758654c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typed_ffmpeg_v8-4.3-py3-none-any.whl
  • Upload date:
  • Size: 380.2 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_v8-4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a2d307a1b7f4722336a8ab99d43c1fceaac80e5cabc8246832a4d3b9dcef37f7
MD5 38dfb3045c7c8ed38307b7e258c0c411
BLAKE2b-256 84f2f1d057b40ae32d65be3c8f7791c4ebd533dd2557894230fe223cdf348524

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