summaryrefslogtreecommitdiffstats
path: root/fiz/naloga/videi/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-06-01 03:24:04 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-06-01 03:24:04 +0200
commit324e498c63145c6612ba8142ddd4e59670108582 (patch)
tree6e6fda75695bae205bf790d73f9f1cfa47846907 /fiz/naloga/videi/Makefile
parentmeritev (diff)
downloadsola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar.gz
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar.bz2
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar.lz
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar.xz
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.tar.zst
sola-gimb-3-324e498c63145c6612ba8142ddd4e59670108582.zip
Diffstat (limited to '')
-rw-r--r--fiz/naloga/videi/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/fiz/naloga/videi/Makefile b/fiz/naloga/videi/Makefile
new file mode 100644
index 0000000..a674640
--- /dev/null
+++ b/fiz/naloga/videi/Makefile
@@ -0,0 +1,12 @@
+default: 2A1.mp4 2A2.mp4 2A3.mp4 2A4.mp4 2A6.3.mp4 2A6.4.mp4 2A7.mp4 2A7.1.mp4 3A1.mp4 3A2.1.mp4 3A3.1.mp4
+ for i in *.mp4; \
+ do t=`rev <<<$$i | cut -d. -f2- | rev` && \
+ f=`grep "$$t " podatki.tsv | cut -f2` && \
+ ffmpeg -i $$i -vf "select=eq(n\,$$f)" -vframes 1 $$t.png && \
+ ffmpeg -i $$i -f mkvtimestamp_v2 $$t.txt; \
+ done
+%.mp4:
+ wget -c -O$@ of.sijanec.eu/sfu/$@
+clean:
+ rm *.mp4 *.png *.txt
+.PHONY: clean default