changed clip managment to one clip per json

This commit is contained in:
marko
2021-03-14 09:11:36 +01:00
parent b4a62b6cf1
commit accb41421b
21 changed files with 132 additions and 5 deletions

View File

@@ -40,3 +40,6 @@ links:
download: download:
make --file=Makefile.d/Makefile.youtube-dl make --file=Makefile.d/Makefile.youtube-dl
.PHONY: videos
videos:
make --file=Makefile.d/Makefile.clips all

View File

@@ -0,0 +1,11 @@
jsonClips := $(wildcard clips.d/*.json)
jsonTaisoClips := $(wildcard clips.d/taiso/*.json)
webmClips := $(patsubst clips.d/%.json, videos.d/%.webm, $(jsonClips))
webmTaisoClips := $(patsubst clips.d/taiso/%.json, videos.d/taiso/%.webm, $(jsonTaisoClips))
.PHONY: all
all: $(webmClips) $(webmTaisoClips)
videos.d/%.webm: clips.d/%.json
./yt-clipper.py $^

View File

@@ -0,0 +1,7 @@
[{
"source": "https://www.youtube.com/embed/6wcWZZw6RGk",
"target": "videos.d/anfersen.webm",
"from": "01:40.208",
"to": "01:54.625",
"crop": {"x": 581, "y": 32, "w": 1309, "h": 1018}
}]

View File

@@ -0,0 +1,6 @@
[{
"source": "https://www.youtube.com/embed/HZ7Y41JVoZ8",
"target": "videos.d/handtuchzug.webm",
"from": "02:37.880",
"to": "02:54.200"
}]

View File

@@ -0,0 +1,7 @@
[{
"source": "https://www.youtube.com/watch?v=DsMj71FhToo",
"target": "videos.d/harei-ushiro.webm",
"from": "03:31.344",
"to": "04:21.294",
"crop": {"x": 656, "y": 0, "w": 1264, "h": 1018}
}]

View File

@@ -0,0 +1,7 @@
[{
"source": "https://www.youtube.com/watch?v=DsMj71FhToo",
"target": "videos.d/DeAshiBarei-TsugiAshi.webm",
"from": "02:55.442",
"to": "03:23.803",
"crop": {"x": 656, "y": 0, "w": 1264, "h": 1018}
}]

View File

@@ -0,0 +1,7 @@
[{
"source": "https://www.youtube.com/watch?v=DsMj71FhToo",
"target": "videos.d/harei-yoko.webm",
"from": "02:29.750",
"to": "02:48.035",
"crop": {"x": 656, "y": 0, "w": 1264, "h": 1018}
}]

View File

@@ -0,0 +1,7 @@
[{
"source": "https://www.youtube.com/embed/6wcWZZw6RGk",
"target": "videos.d/hopserlauf.webm",
"from": "01:09.000",
"to": "01:24.833",
"crop": {"x": 581, "y": 32, "w": 1309, "h": 1018}
}]

View File

@@ -0,0 +1,7 @@
[{
"source": "https://www.youtube.com/embed/6wcWZZw6RGk",
"target": "videos.d/indianer.webm",
"from": "04:36.917",
"to": "05:05.458",
"crop": {"x": 581, "y": 32, "w": 1309, "h": 1018}
}]

View File

@@ -0,0 +1,7 @@
[{
"source": "https://www.youtube.com/embed/6wcWZZw6RGk",
"target": "videos.d/kniehebelauf.webm",
"from": "01:24.917",
"to": "01:39.542",
"crop": {"x": 581, "y": 32, "w": 1309, "h": 1018}
}]

View File

@@ -0,0 +1,7 @@
[{
"source": "https://www.youtube.com/embed/6wcWZZw6RGk",
"target": "videos.d/***REMOVED***Eingang-kniebeuge.webm",
"from": "03:45.250",
"to": "04:05.167",
"crop": {"x": 581, "y": 32, "w": 1309, "h": 1018}
}]

View File

@@ -0,0 +1,6 @@
[{
"source": "https://www.youtube.com/embed/jxt1gagi6C4",
"target": "videos.d/loecherlaufen.webm",
"from": "05:44.633",
"to": "06:17.949"
}]

View File

@@ -0,0 +1,6 @@
[{
"source": "https://www.youtube.com/embed/jxt1gagi6C4",
"target": "videos.d/loecherspringen.webm",
"from": "05:01.483",
"to": "05:06.399"
}]

View File

@@ -0,0 +1,6 @@
[{
"source": "https://www.youtube.com/embed/HZ7Y41JVoZ8",
"target": "videos.d/sockenkreisel.webm",
"from": "05:21.240",
"to": "05:34.880"
}]

View File

@@ -0,0 +1,6 @@
[{
"source": "https://www.youtube.com/watch?v=oFBJH1dddGg",
"target": "videos.d/taiso/beingraetche.webm",
"from": "01.368",
"to": "06.774"
}]

View File

@@ -0,0 +1,6 @@
[{
"source": "https://www.youtube.com/watch?v=uOmLFzjECP4",
"target": "videos.d/taiso/schultereindrehen.webm",
"from": "02.119",
"to": "17.033"
}]

View File

@@ -0,0 +1,6 @@
[{
"source": "https://www.youtube.com/embed/zDj1Yf4d07I",
"target": "videos.d/taiso/sumo.webm",
"from": "03.103",
"to": "20.804"
}]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@@ -0,0 +1,13 @@
---
title: onlineTraining 2021-03-17
...
# Erwärmung
Der Reihe rum jeder eine Übung vormachen
# Timer
[Timer](http://natemago.github.io/tabata-timer/)

View File

@@ -19,7 +19,7 @@ Wir laufen den Strand entlang.
# Schiff gesichtet {data-background="images.d/seefahrt.d/ship-5822314.jpg"} # Schiff gesichtet {data-background="images.d/seefahrt.d/ship-5822314.jpg"}
Tasächlich erspähen wir ein Schiff. Um zu erreichen, bevor es ablegt, Tasächlich erspähen wir ein Schiff. Um es zu erreichen, bevor es ablegt,
müssen wir uns aber beeilen. müssen wir uns aber beeilen.
# Kniehebelauf {data-background-video="videos.d/kniehebelauf.webm" data-background-video-loop="loop"} # Kniehebelauf {data-background-video="videos.d/kniehebelauf.webm" data-background-video-loop="loop"}
@@ -66,12 +66,13 @@ Unsere Überfahrt verdienen wir uns, indem wir arbeiten.
- Arme machen mit! - Arme machen mit!
- 3-mal 30 sek - 3-mal 30 sek
# In der Nacht {data-background="images.d/seefahrt.d/pumuckl-und-der-blaue-klabauter_sz-442700.jpg"} # In der Nacht {data-background="images.d/seefahrt.d/moon-5803873.jpg"}
Während der Nacht erwachen wir durch ein Geräusch. Wir sehen uns in der Während der Nacht erwachen wir durch ein Geräusch. Wir sehen uns in der
Kajüte um und entdecken einen Klabautermann. Wir entschließen uns, ihn zu fangen. Kajüte um und entdecken einen Klabautermann. Wir entschließen uns, ihn
zu fangen.
# Hinterher {data-background="images.d/seefahrt.d/pumuckl-und-der-blaue-klabauter_sz-442700.jpg"} # Hinterher {data-background="images.d/seefahrt.d/Klabautermann_on_ship.jpg"}
Zuerst springt er immer wieder durch offene Luken, Bullaugen und Zuerst springt er immer wieder durch offene Luken, Bullaugen und
Ladeklappen. Wir immer hinterher Ladeklappen. Wir immer hinterher

View File

@@ -5,8 +5,9 @@ import json
import ffmpeg import ffmpeg
import subprocess import subprocess
import glob import glob
import sys
jsonFileName = "clips.json" jsonFileName = sys.argv[1]
#jsonFileName = "***REMOVED***Kniebeuge.json" #jsonFileName = "***REMOVED***Kniebeuge.json"
clipDict = {} clipDict = {}