-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (40 loc) · 1001 Bytes
/
Makefile
File metadata and controls
47 lines (40 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Based on: https://stackoverflow.com/questions/17166739/how-to-display-image-for-particular-time-in-a-video-using-ffmpeg
TARGET=$@
SHELL=/bin/bash
.DEFAULT_GOAL: all
.PHONY: all
all: output/pre-roll/total.mp4
output/pre-roll/total.mp4: \
output/pre-roll-slides/pre-roll.txt
ffmpeg \
-f concat \
-i output/pre-roll-slides/pre-roll.txt \
-y \
-codec copy $(TARGET)
output/pre-roll-slides/pre-roll.txt: \
output/pre-roll-slides/1-intro.mp4 \
output/pre-roll-slides/3-sponsors.mp4
ls output/pre-roll-slides \
| grep -v '.txt' \
| awk '{print "file \x27"$$0"\x27"}' \
> $(TARGET)
output/pre-roll-slides/1-intro.mp4: \
input/pre-roll-slides/1-intro.png
ffmpeg \
-loop 1 \
-f image2 \
-i input/pre-roll-slides/1-intro.png \
-c:v libx264 \
-t 5 \
-y \
$(TARGET)
output/pre-roll-slides/3-sponsors.mp4: \
input/pre-roll-slides/3-sponsors.png
ffmpeg \
-loop 1 \
-f image2 \
-i input/pre-roll-slides/3-sponsors.png \
-c:v libx264 \
-t 5 \
-y \
$(TARGET)