CLI tools for media file editing, wrapping FFmpeg and others
Project description
joker-studio
CLI tools for media file editing, wrapping FFmpeg and others
Install with pip
(add sudo
if necessary):
python3 -m pip install joker-studio
Crop
Example:
dio crop -c 0 0 .1 .2 -t 120 60 myvideo.mp4
This command will
- remove the leading 2 minutes and trailing 1 minute
- crop 10% at bottom and 20% on the left
- save result as
myvideo.crop.mp4
(originalmyvideo.mp4
untouched)
Convert
Convert multiple .ts
videos to .mp4
:
dio conv video1.ts video2.ts
Extract audio from video as .mp3
:
dio conv -f mp3 -f myvideo.mp4
Split
Split a video into 4 segments of equal duration:
dio split -n 4 myvideo.mp4
Split into segments, each (but the last one) of duration 5 minutes (300 seconds):
dio split -s 300 myvideo.mp4
Fade
Add 10 sec audio fade-in, 6 sec video fade-in, 4 sec video fade-out
dio fade -a 10 0 -v 6 4 myvideo.mp4
Burn subtitle
This command generates a video with hard subtitle named myvideo.wSub.mp4
dio sub -s myvideo.english.srt myvideo.mp4
Rename files
Remove all "unsafe" characters on Unix-like systems, i.e. characters you should quote in shell scripts, and invalid characters on Microsoft Windows:
dio ren -f san *.jpg
Rename waterlife.jpg
to img-800x600.waterlife.jpg
:
dio ren -f img waterlife.jpg
Rename lightning.jpg
to ih-F8F07B7F3F0E0E0F.lightning.jpg
, where F8F07B7F3F0E0E0F
is an imagehash
dio ren -f ih lightning.jpg
More info:
dio ren -h
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
File details
Details for the file joker-studio-0.1.tar.gz
.
File metadata
- Download URL: joker-studio-0.1.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e406cfe77026eeeeee6d047f4b36850106b0317f9d61760b59f3969e76e3cb40 |
|
MD5 | 26528936c02d3e73bec969af27ebc534 |
|
BLAKE2b-256 | 912914717f5326d51cb3325a9e451d64f94d7a940b410162fca38c3f109d71b1 |