1 unstable release
0.8.1 | Mar 31, 2022 |
---|
#11 in #preset
26KB
589 lines
WARNING: This project is still developing
clevert
Extensible file converter.
Intro
Today's file convertors always focus on a few formats. They wrap some libraries like FFmpeg into a GUI.
It's not enough and we couldn't stop at this. So clevert was born:
-
To be a universal solution. You don't have to care about different software's different behavior.
-
Parallelized. Let's take advantage of all CPU cores.
-
Flexible and extensible. Load file type supports from
profile pack
, even make your ownprofile pack
to support more files.
Examples
current = 'ffmpeg_mp3'
[presets.global]
input_dir = 'input'
output_dir = 'output'
[presets.ffmpeg]
program = 'D:\Libraries\ffmpeg\5.0-gpl-shared\bin\ffmpeg.exe'
[presets.ffmpeg_mp3]
parent = 'ffmpeg'
args_template = '-y -i {input_file} -c:a libmp3lame -b:a 192k -q:a 0 {output_file}'
output_extension = 'mp3'
[presets.ffmpeg_slice]
parent = 'ffmpeg'
args_template = '-y -i {input_file} -ss 00:00:00 -to 00:00:00.01 -c copy {output_file}'
[presets.pngquant]
program = 'D:\Libraries\pngquant\2.17.0\pngquant.exe'
args_template = '--speed 1 --quality 0-50 --nofs -f -o {output_file} {input_file}'
output_extension = 'png'
[presets.waifu2x] # github.com/nihui/waifu2x-ncnn-vulkan
program = 'waifu2x-ncnn-vulkan'
args_template = '-i {input_file} -o {output_file} -n 0 -s 2'
output_extension = 'png'
threads_count = 1 # must be 1
Todo List
-
Web UI.
-
Better argument generator.
-
Help document and Intro.
-
Profile packs.
-
StdIn.
Note
https://wiki.inkscape.org/wiki/Using_the_Command_Line
https://inkscape.org/doc/inkscape-man.html
https://github.com/amadvance/advancecomp
Alternative
Dependencies
~0.6–7.5MB
~61K SLoC