Skip to main content

Typed FFmpeg bindings for FFmpeg 6.x

Project description

typed-ffmpeg-v6

Typed FFmpeg bindings for FFmpeg 6.x.

Installation

pip install typed-ffmpeg-v6

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

Features

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_ffmpeg_v6-4.3.tar.gz
  • Upload date:
  • Size: 311.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_v6-4.3.tar.gz
Algorithm Hash digest
SHA256 a99ba53b7fff8c173422a4f2cfe9fb90084471b11032754c5506f9707bbb6f61
MD5 4bfbf35e8fae307f67c4e9a923cb7d7d
BLAKE2b-256 b95da75c5b949144ad47bf80c17553ca0f44552c4139b6fb015e4242bd35abe0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typed_ffmpeg_v6-4.3-py3-none-any.whl
  • Upload date:
  • Size: 332.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_v6-4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8fbd761ec3052ab7b2331d3f9253dd2698cc7faad43fef2d41002c2190e10065
MD5 ee4577d68f38e437de682766bdeac435
BLAKE2b-256 47b1d33888b70ce7224953473e0cf9f8233e61af721d98cdaf971bfb3071459b

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