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.1.tar.gz (346.0 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.1-py3-none-any.whl (366.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_ffmpeg_v8-4.1.tar.gz
  • Upload date:
  • Size: 346.0 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.1.tar.gz
Algorithm Hash digest
SHA256 c006248ec7b2a352669c9d17a2375ea6b3e92256dc15c0fc2e8dba2e3733e8b5
MD5 6eab9cd64b928991a49b4365fe877eea
BLAKE2b-256 f73a3a41768c9e4d5871d10975b54cf0e2b30a3011e55d046b39a210c1591653

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typed_ffmpeg_v8-4.1-py3-none-any.whl
  • Upload date:
  • Size: 366.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf07c92137ce30710783aca9d2834d2446371320c05f6ee6c04548c3a8bddb59
MD5 67e318f7a5b74563c04fdbcc126d9751
BLAKE2b-256 ecfa1ef8a3a50a3962495a190ccb3bb56771af21150471be7f50fe8099d0e0f6

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