Metadata-Version: 2.1
Name: joker-studio
Version: 0.2.1
Summary: CLI tools for media file editing, wrapping FFmpeg and others
Home-page: https://github.com/frozflame/joker-studio
Author: anonym
Author-email: anonym@example.com
License: GNU General Public License (GPL)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Description-Content-Type: text/markdown
Requires-Dist: imagehash~=4.3.1
Requires-Dist: joker-cast~=0.5.2
Requires-Dist: joker-stream~=0.5.0
Requires-Dist: joker-textmanip
Requires-Dist: joker~=0.3.3
Requires-Dist: numpy~=2.2.1
Requires-Dist: pillow~=11.0.0
Requires-Dist: pymediainfo~=1.0
Requires-Dist: scipy~=1.14.1
Requires-Dist: volkanic~=0.5.3

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` (original `myvideo.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](https://github.com/JohannesBuchner/imagehash)

    dio ren -f ih lightning.jpg
    
Remove preset prefixes:

    dio ren -fn -c *.jpg 
    
More info:
    
    dio ren -h 
