Skip to main content

FFmpeg Micro for Python

The official Python client for FFmpeg Micro: The FFmpeg API. FFmpeg Micro runs FFmpeg in the cloud: transcode and compress video, stitch clips, add text overlays, extract audio, generate thumbnails and transcribe speech through one API. There are no servers to manage and no FFmpeg builds to maintain.

pip install ffmpeg-micro

Quickstart

Get an API key from the FFmpeg Micro dashboard. The free plan needs no credit card.

import os
import time

import ffmpeg_micro
from ffmpeg_micro.models import CreateTranscodeRequest

config = ffmpeg_micro.Configuration(access_token=os.environ["FFMPEG_MICRO_API_KEY"])

with ffmpeg_micro.ApiClient(config) as client:
    api = ffmpeg_micro.DefaultApi(client)

    job = api.v1_transcodes_post(CreateTranscodeRequest.from_dict({
        "inputs": [{"url": "https://example.com/input.mov"}],
        "outputFormat": "mp4",
        "preset": {"quality": "high", "resolution": "1080p"},
    }))

    while api.v1_transcodes_id_get(job.id).status not in ("completed", "failed", "canceled"):
        time.sleep(5)

    print(api.v1_transcodes_id_download_get(job.id).url)

Inputs can be public HTTP(S) URLs or files you upload first with v1_upload_presigned_url_post and v1_upload_confirm_post.

What it covers

Every endpoint in the FFmpeg Micro API:

  • Transcodes: create, list, get, cancel and download jobs, including multi-video compositions, raw FFmpeg options and @text-overlay
  • Uploads of your own files through presigned URLs
  • FFprobe media metadata for any input
  • Transcription of speech to text, with downloadable results
  • Blueprints, which are ready-made multi-step video pipelines
  • Generate endpoints for scenes, translation, images, speech and animation

Each method and model is documented in docs/. Method names follow the HTTP route (v1_transcodes_post is POST /v1/transcodes).

Notes

  • Transcode.inputs[].size_bytes is a decimal string on current jobs ("991017"), as the API returns it. The client exposes it as a wrapper; read size_bytes.actual_instance and convert with int(...).
  • Job status values are pending, processing, completed, failed and canceled.

Errors

Failed calls raise ffmpeg_micro.ApiException (subclasses include UnauthorizedException, NotFoundException and ServiceException). The exception's status and body carry the API's error response.

How it is built

The client is generated with OpenAPI Generator from the OpenAPI spec the API itself serves, so it always matches the live API. ./generate.sh regenerates it.

MIT licensed.

Metadata

Release files for ffmpeg-micro 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ffmpeg-micro 0.1.1
File Size Uploaded Provenance
ffmpeg_micro-0.1.1.tar.gz 58.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ffmpeg-micro 0.1.1
File Interpreter ABI Platform
ffmpeg_micro-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 217.8 kB

Release files / ffmpeg_micro-0.1.1.tar.gz

Download URL ffmpeg_micro-0.1.1.tar.gz
Size 58.4 kB
Tags Source
SHA-256 checksum
How to use checksums
19830042cdf478463cffb10dec915aba3e8d13ca473ec11be2b1b26e055d72fa
BLAKE2b-256 checksum
How to use checksums
2ee73e141373b65cd587510ea26c18b7fc9980794eadbe7d8c85099db7d9091f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / ffmpeg_micro-0.1.1-py3-none-any.whl

Download URL ffmpeg_micro-0.1.1-py3-none-any.whl
Size 159.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7c29a7d7a23380c19fffca92cdd8a76ee097a65017c9f11f62988627455044b
BLAKE2b-256 checksum
How to use checksums
184f2fe9c4463ed24c147432d74d636c2e5ecfba7fe9b2e8e01e0e856170bc06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for ffmpeg-micro 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ffmpeg_micro-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page