Skip to main content

CLI and Python helpers for converting videos into social-ready publishing profiles.

Project description

motionkit-video-converter

motionkit-video-converter is a Python CLI and library for converting videos into social-ready aspect-ratio profiles with local ffmpeg.

Install

pip install motionkit-video-converter

ffmpeg must already be available on your system PATH.

CLI

Single conversion:

motionkit-video convert input.mp4 --profile reel --format mp4
motionkit-video convert clip.mov --profile square --mode pad --format webm

Batch conversion:

motionkit-video batch ./videos --profile story --format mp4 --output-dir ./dist
motionkit-video batch ./videos --profile landscape --recursive --mode crop

Python API

from motionkit_video_converter import batch_convert, convert_video

result = convert_video("input.mp4", profile="reel", output_format="mp4")

Profiles

  • reel: 1080x1920
  • story: 1080x1920
  • square: 1080x1080
  • landscape: 1920x1080

Rendering Modes

  • crop: fill frame and center-crop
  • pad: fit video inside frame and pad the rest

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

motionkit_video_converter-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

motionkit_video_converter-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for motionkit_video_converter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a563d0d55c984248866cd0b243210868faf9376482f09096345beaca5ca4b81
MD5 346e3b9bb16f6318da643cd85e62fe1e
BLAKE2b-256 a587e015092bc9d90c0277c1c05c1c32b1b743cfed608e0952712ff71a2ee7ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for motionkit_video_converter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7106737e797ebf77f6195e481e14ad34306a8162d95b81a9410b7dcfe1b4e394
MD5 abd8304b2e5728a91968bdac00867559
BLAKE2b-256 ef3fd2a5f3f3780f3f633730310bb9416c2be5e1063996e4c96b53202d0355b6

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