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.

Part of the HappyHorse toolset: https://happyhorseai.im/

Install

pip install motionkit-video-converter

ffmpeg must already be available on your system PATH.

Requirements

  • local ffmpeg
  • Python 3.10+

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

Website

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for motionkit_video_converter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 75e3d25adf13ac4eb2185fc848887f800e832e19a1d6a6165c88618b10534812
MD5 f5eaa5d956071865c729ff93977056b2
BLAKE2b-256 b84d695716e05e061f33ada5cab8550e333a178c10522d04e7ea25e5a3cfa148

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for motionkit_video_converter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4153cecd0e2115066e121a71b860dc81e82d9c7212d8a239c5e875d0b8f27cb
MD5 3a92dd8550423e6177a2b9b63403b1d4
BLAKE2b-256 802fc4be5480e3d46ad9027545e86a522712f556a9ef0597576beb9ba3b9160d

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