Skip to main content

Friendly FFmpeg wrapper CLI for Linux and macOS

Project description

mpegtic

Friendly FFmpeg wrapper CLI for Linux and macOS.

Requires system FFmpeg (ffmpeg + ffprobe on your PATH).

Install

pip / pipx / uv (recommended)

pip install mpegtic
# or
pipx install mpegtic
# or
uv tool install mpegtic

Homebrew

# After the formula is published to a tap:
brew install mpegtic/mpegtic/mpegtic

The Homebrew formula depends on ffmpeg, so one install pulls both.

From a release wheel (no git)

pip install mpegtic==0.1.0

Quick start

mpegtic info video.mkv
mpegtic remux video.mp4 -o video.mkv
mpegtic convert song.wav -f mp3
mpegtic streams remove video.mkv --subs all -o clean.mkv
mpegtic subtitle burn video.mkv --track 0
mpegtic compress video.mp4 --crf 28
mpegtic gif clip.mp4 --start 5 --duration 3

Dry-run any command:

mpegtic --dry-run --explain remux in.mp4 -o out.mkv

Raw FFmpeg escape hatch:

mpegtic -- -i in.mp4 -c copy out.mkv
mpegtic ffmpeg -- -i in.mp4 -vf scale=1280:-1 out.mp4

Defaults & profiles

mpegtic config init
mpegtic config show
mpegtic config set crf 20
mpegtic --profile web convert video.mov -f mp4

Config lives at ~/.config/mpegtic/config.toml (via platformdirs).

Commands

Area Commands
Inspect info
Containers remux, convert, streams keep|remove|default
Subtitles subtitle burn|extract|add|convert
Audio audio extract|replace|volume|normalize
Video trim, merge, split, resize, crop, rotate, speed, fps, compress, thumbnail, watermark, fade
GIF gif
Config config init|show|set|path
Escape mpegtic -- …, mpegtic ffmpeg -- …

Development

pip install -e ".[dev]"
pytest

Release checklist

  1. Bump version in pyproject.toml and src/mpegtic/__init__.py
  2. python -m build and test pip install dist/*.whl
  3. Tag vX.Y.Z (GitHub Actions publishes to PyPI)
  4. Update Formula/mpegtic.rb URL + sha256 from the PyPI sdist
  5. Push formula to the Homebrew tap

Notes

Hard-burning (subtitle burn) needs an FFmpeg build with libass (subtitles filter). Soft mux/extract/remove work without it.

License

MIT

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

mpegtic-0.1.0.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mpegtic-0.1.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file mpegtic-0.1.0.tar.gz.

File metadata

  • Download URL: mpegtic-0.1.0.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mpegtic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e9fe9be582cc69c395efe3a2455d34bf929fdbe771ed730527ce58d0865b6e48
MD5 22051338af128f0f7e4057742bfd292e
BLAKE2b-256 81532c86ce74c750143ee5dfcdb7efeae3ed58508637f802a2f91da4250ec03a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mpegtic-0.1.0.tar.gz:

Publisher: publish.yml on lucidsleeping/mpegtic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mpegtic-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mpegtic-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mpegtic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19d668fd8ce54c2fc07f088362adfbc0bb3c1f76463f38e9257a6351ebaafad7
MD5 5f7a7ebf9407372ea2c997c48b0e1f34
BLAKE2b-256 f79950a3672d22e007c97eb0b22118425b9b330e16f285ef37d6bc5aa2f35b91

See more details on using hashes here.

Provenance

The following attestation bundles were made for mpegtic-0.1.0-py3-none-any.whl:

Publisher: publish.yml on lucidsleeping/mpegtic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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