速度较慢,-an
不保留音频。
ffmpeg -i input.mkv -an -filter:v "setpts=PTS/60" output.mkv
将扫描版图片转为黑白,自适应threshold,效果挺好。
convert input.png -colorspace gray -negate -lat 50x50+10% -negate output.png
#!/usr/bin/env fish | |
argparse --name=test "d/dryrun" "p/path=" -- $argv | |
if test $_flag_d | |
echo "Dry running..." | |
end | |
if not test -d $_flag_p | |
echo "Path not exists: $_flag_p" |
#!/bin/fish | |
set SCRIPT_PATH "/path/to/script.py" | |
set EXEC_PATH /bin/python | |
while true | |
inotifywait -e modify $SCRIPT_PATH && $EXEC_PATH $SCRIPT_PATH | |
end |
import sys | |
import os | |
import re | |
""" | |
USAGE: python sub_match.py DIR | |
""" | |
#!/bin/fish | |
argparse --name mox2cbz 'w/webp' -- $argv | |
or return | |
# input filename | |
set fn $argv | |
# output filename | |
set out_fn (basename $fn ".epub")".cbz" |