diff --git a/onlineTraining/Makefile b/onlineTraining/Makefile index 43c0925..9b37188 100644 --- a/onlineTraining/Makefile +++ b/onlineTraining/Makefile @@ -61,10 +61,21 @@ links: download: make --file=Makefile.d/Makefile.youtube-dl + .PHONY: videos -videos: +videos: otVideos machsVideos + +# Videos zu den onlineTrainings +.PHONY: otVideos +otVideos: make --file=Makefile.d/Makefile.clips all +# Videos zu den AchievementGroups im MAchS +.PHONY: machsVideos +machsVideos: + mkdir --parents build/videos.d/machs/groups + make --file=Makefile.d/Makefile.clips.machs all + .PHONY: images images: make --file=Makefile.d/Makefile.images diff --git a/onlineTraining/Makefile.d/Makefile.clips.machs b/onlineTraining/Makefile.d/Makefile.clips.machs new file mode 100644 index 0000000..054a5f1 --- /dev/null +++ b/onlineTraining/Makefile.d/Makefile.clips.machs @@ -0,0 +1,13 @@ +jsonGroupsClips := $(wildcard clips.d/machs/groups/*.json) +webmGroupsClips := $(patsubst clips.d/machs/groups/%.json, build/videos.d/machs/groups/%.webm, $(jsonGroupsClips)) + +.PHONY: all +all: $(webmGroupsClips) + +build/videos.d/%.webm: clips.d/%.json + ./yt-clipper.py $^ + +.PHONY: echo +echo: + echo jsonGroupsClips: $(jsonGroupsClips) + echo webmGroupsClips: $(webmGroupsClips) diff --git a/onlineTraining/clips.d/machs/groups/aufspringen.json b/onlineTraining/clips.d/machs/groups/aufspringen.json new file mode 100644 index 0000000..f2ea068 --- /dev/null +++ b/onlineTraining/clips.d/machs/groups/aufspringen.json @@ -0,0 +1,8 @@ +[{ + "source": "https://www.youtube.com/watch?v=k2kMAJPyaHs", + "target": "build/videos.d/aufspringen.webm", + "from": "00:04.867", + "to": "00:35.900", + "crop": {"x": 568, "y": 124, "w": 898, "h": 784}, + "scale": {"h": 320} +}]