laborde-visio1/Makefile
likho dde405e6b4 Clarified instructions for contributing.
Added new make recipe for testing subtitles.
2025-02-23 09:28:09 -08:00

21 lines
557 B
Makefile

ORIGINAL_SUBS=autogen-subs
VIDEO=1ere.mkv
# VIDEO=1ere-introcut.mp4
test: getvideo
ffmpeg -i $(VIDEO) -i mangen-subs.fr.vtt -vcodec copy -acodec copy -c:s mov_text test.mp4 -y
getvideo:
yt-dlp https://www.youtube.com/watch?v=WRq2197FlMw -o $(VIDEO)
cleansubs:
python scripts/parse-subs.py $(ORIGINAL_SUBS).fr.vtt
getsubs:
yt-dlp --write-auto-subs --sub-lang=fr --skip-download https://www.youtube.com/watch?v=WRq2197FlMw -o autogen-subs
# omit the music
# clip:
# ffmpeg -ss 3:18 -i 1ere-combined.mp4 -vcodec copy -acodec copy 1ere-introcut.mp4