summaryrefslogtreecommitdiffstats
path: root/fiz/naloga/videi/Makefile
blob: a6746406aef171618c8cfec7d89c664e32b905d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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