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, orgif - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file happy_horse_1_0_video_converter_py-0.1.0.tar.gz.
File metadata
- Download URL: happy_horse_1_0_video_converter_py-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad0ce5f3d64a9c7ba5bdbc4e9f1b5be210b21c2aff6394cfeb6da21157394cb0
|
|
| MD5 |
6edba4293bab59bdcb6fa109f7b78767
|
|
| BLAKE2b-256 |
cd777b704a17a77bf15d00403db63335309b4cc9515273d69a82f5833dff1bb8
|
File details
Details for the file happy_horse_1_0_video_converter_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: happy_horse_1_0_video_converter_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dc534ca386dfdfbb9a18d14d1288bf94215916724e7eb077a9e7ef91d472b6f
|
|
| MD5 |
ad6364887527cdb51b56f3b7bd3d34d3
|
|
| BLAKE2b-256 |
54cd8babfde191f7bc4139e36057317593e2b44b0838ab6302d03610bad9cf6c
|