video watermark removal
1.0.0
Entfernen Sie statische Wasserzeichen aus Videos mit minimalem Setup.
Wirklich grundlegend, aber funktioniert gut genug für einfache statische Wasserzeichen und kann auf einer Laptop-CPU (X3 Echtzeit auf einem i5-5287u (MacBook Pro), x9 Echtzeit auf einem i5-8400) laufen. Sie können kurze Erklärungen finden, wie es hier gemacht wird.
Abhängigkeiten:
# FFMPEG
installer= $( [[ $( uname ) == " Darwin " ]] && echo brew || echo apt )
$installer install ffmpeg
# Python libraries
python3 -m pip install numpy scipy imageio
# Optional, to fetch an example video
# if already installed, make sure youtube-dl is up to date
$installer install youtube-dl
Verwendung:
# The output will default to append "_cleaned" to the existing name,
# and use max 50 keyframes
./remove_watermark.sh /somewhere/my_video.mp4 [/somewhere/output.mp4] [max_keyframes_to_extract]
Getestet auf macOS 10.14 (x86), macOS 14,4 (Arm) und Ubuntu 20.04