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.0.2.tar.gz (343.4 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.0.2-py3-none-any.whl (364.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_ffmpeg_v7-4.0.2.tar.gz
  • Upload date:
  • Size: 343.4 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.0.2.tar.gz
Algorithm Hash digest
SHA256 a90fae9e8fbf9abb9624c374aee80ba030c34691459ed7bc7dda2bd9b2791b83
MD5 ddea5837dc09f865ae639c2d428e88af
BLAKE2b-256 91b4994686d0bee241d20c6eb778f22119e427165f4fa82822483dd5a3d0b95a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typed_ffmpeg_v7-4.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db3339fd04465fc4ab657e2109bb688a7454a0f601e1a8de9368f3ba8dc167ba
MD5 ad023096e5b70adc850a154f2e75610c
BLAKE2b-256 2294a1db9b3bc0fdae20468a827ce3ffbdb6d5afdfe0bcfb1c73030ac1197531

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