Command-line tools for media file editing, wrapping FFmpeg and others
CLI tools for media file editing, wrapping FFmpeg and others
Install with pip
(add sudo
if necessary):
python3 -m pip install joker-studio
Example:
joker-studio crop -c 0 0 .1 .2 -t 120 60 myvideo.mp4
This command will
myvideo.crop.mp4
(original myvideo.mp4
untouched)Convert multiple .ts
videos to .mp4
:
joker-studio conv video1.ts video2.ts
Extract aujoker-studio from video as .mp3
:
joker-studio conv -f mp3 -f myvideo.mp4
Split a video into 4 segments of equal duration:
joker-studio split -n 4 myvideo.mp4
Split into segments, each (but the last one) of duration 5 minutes (300 seconds):
joker-studio split -s 300 myvideo.mp4
Add 10 sec aujoker-studio fade-in, 6 sec video fade-in, 4 sec video fade-out
joker-studio fade -a 10 0 -v 6 4 myvideo.mp4
This command generates a video with hard subtitle named myvideo.wSub.mp4
joker-studio sub -s myvideo.english.srt myvideo.mp4
Remove all “unsafe” characters on Unix-like systems, i.e. characters you should quote in shell scripts,
and invalid characters on Microsoft Windows:
joker-studio ren -f san *.jpg
Rename waterlife.jpg
to img-800x600.waterlife.jpg
:
joker-studio ren -f img waterlife.jpg
Rename lightning.jpg
to ih-F8F07B7F3F0E0E0F.lightning.jpg
, where F8F07B7F3F0E0E0F
is an imagehash
joker-studio ren -f ih lightning.jpg
Remove preset prefixes:
joker-studio ren -fn -c *.jpg
More info:
joker-studio ren -h