Skip to main content

CLI and Python helpers for video format conversion with ffmpeg.

Project description

happy-horse-1.0-video-converter-py

CLI and Python helpers for converting videos with local ffmpeg.

Part of the Happyhorse toolset: tryhappyhorse.com

Install

pip install happy-horse-1.0-video-converter-py

Requirements

This package requires ffmpeg to be installed and available on PATH.

If ffmpeg is installed but not on PATH, you can point the package to it with the FFMPEG_PATH environment variable.

Example:

ffmpeg -version

CLI Usage

hh-video convert input.mp4 --to webm
hh-video convert demo.mov --to mp4 --output ./dist/demo.mp4
hh-video batch ./videos --to gif
hh-video batch ./videos --to mp4 --output-dir ./dist --recursive

Python API

from happyhorse_video_converter import batch_convert, convert_video

result = convert_video('input.mp4', 'webm')
summary = batch_convert('./videos', 'gif', recursive=True)

Features

  • Convert a single file to webm, mp4, or gif
  • Batch convert a directory
  • Continue batch processing even if one file fails
  • Expose the same workflow through CLI and Python API

Website

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

happy_horse_1_0_video_converter_py-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for happy_horse_1_0_video_converter_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ad0ce5f3d64a9c7ba5bdbc4e9f1b5be210b21c2aff6394cfeb6da21157394cb0
MD5 6edba4293bab59bdcb6fa109f7b78767
BLAKE2b-256 cd777b704a17a77bf15d00403db63335309b4cc9515273d69a82f5833dff1bb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for happy_horse_1_0_video_converter_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5dc534ca386dfdfbb9a18d14d1288bf94215916724e7eb077a9e7ef91d472b6f
MD5 ad6364887527cdb51b56f3b7bd3d34d3
BLAKE2b-256 54cd8babfde191f7bc4139e36057317593e2b44b0838ab6302d03610bad9cf6c

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