This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Transcript from subtitles | |
``` | |
yt-dlp --skip-download --write-subs --write-auto-subs --sub-lang en --sub-format ttml --convert-subs srt --exec before_dl:"sed -e '/^[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9] --> [0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9]$/d' -e '/^[[:digit:]]\{1,3\}$/d' -e 's/<[^>]*>//g' -e '/^[[:space:]]*$/d' -i '' %(requested_subtitles.:.filepath)#q" 'YOUTUBE_CHANNEL_URL' | |
``` | |
Only subtitles | |
``` | |
yt-dlp --skip-download --write-subs --write-auto-subs --sub-lang en --sub-format ttml --convert-subs srt 'YOUTUBE_CHANNEL_URL' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
where magick >nul 2>&1 || (echo magick not found, please install from https://imagemagick.org/index.php and/or add to PATH && goto :end) | |
echo Removing background using ImageMagick... | |
forfiles /S /M *.png* /C "cmd /c magick convert @file -fuzz 10% -transparent white @file && echo @file DONE" | |
:end | |
PAUSE |