-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (50 loc) · 3.19 KB
/
Makefile
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
all: 00000000.ivf 00000001.ivf 00000002.ivf 00000003.ivf
clean:
rm -rf *.ivf *.state
### batch 0: [0, 3] ###
# stage 1: vpxenc
## 00000000
00000000-vpxenc.ivf: 00000000.y4m
vpxenc --ivf --codec=vp8 --good --cpu-used=0 --end-usage=cq --min-q=0 --max-q=63 --cq-level=1 --buf-initial-sz=10000 --buf-optimal-sz=20000 --buf-sz=40000 --undershoot-pct=100 --passes=2 --auto-alt-ref=1 --threads=1 --token-parts=0 --tune=ssim --target-bitrate=4294967295 -o 00000000-vpxenc.ivf 00000000.y4m
00000000.ivf: 00000000-vpxenc.ivf
xc-terminate-chunk 00000000-vpxenc.ivf 00000000.ivf
00000000-0.state: 00000000.ivf
xc-dump 00000000.ivf 00000000-0.state
## 00000001
00000001-vpxenc.ivf: 00000001.y4m
vpxenc --ivf --codec=vp8 --good --cpu-used=0 --end-usage=cq --min-q=0 --max-q=63 --cq-level=1 --buf-initial-sz=10000 --buf-optimal-sz=20000 --buf-sz=40000 --undershoot-pct=100 --passes=2 --auto-alt-ref=1 --threads=1 --token-parts=0 --tune=ssim --target-bitrate=4294967295 -o 00000001-vpxenc.ivf 00000001.y4m
00000001-0.ivf: 00000001-vpxenc.ivf
xc-terminate-chunk 00000001-vpxenc.ivf 00000001-0.ivf
00000001-0.state: 00000001-0.ivf
xc-dump 00000001-0.ivf 00000001-0.state
## 00000002
00000002-vpxenc.ivf: 00000002.y4m
vpxenc --ivf --codec=vp8 --good --cpu-used=0 --end-usage=cq --min-q=0 --max-q=63 --cq-level=1 --buf-initial-sz=10000 --buf-optimal-sz=20000 --buf-sz=40000 --undershoot-pct=100 --passes=2 --auto-alt-ref=1 --threads=1 --token-parts=0 --tune=ssim --target-bitrate=4294967295 -o 00000002-vpxenc.ivf 00000002.y4m
00000002-0.ivf: 00000002-vpxenc.ivf
xc-terminate-chunk 00000002-vpxenc.ivf 00000002-0.ivf
00000002-0.state: 00000002-0.ivf
xc-dump 00000002-0.ivf 00000002-0.state
## 00000003
00000003-vpxenc.ivf: 00000003.y4m
vpxenc --ivf --codec=vp8 --good --cpu-used=0 --end-usage=cq --min-q=0 --max-q=63 --cq-level=1 --buf-initial-sz=10000 --buf-optimal-sz=20000 --buf-sz=40000 --undershoot-pct=100 --passes=2 --auto-alt-ref=1 --threads=1 --token-parts=0 --tune=ssim --target-bitrate=4294967295 -o 00000003-vpxenc.ivf 00000003.y4m
00000003-0.ivf: 00000003-vpxenc.ivf
xc-terminate-chunk 00000003-vpxenc.ivf 00000003-0.ivf
00000003-0.state: 00000003-0.ivf
xc-dump 00000003-0.ivf 00000003-0.state
# stage 2: reencode-first-frame
## 00000001
00000001-1.state 00000001.ivf: 00000001.y4m 00000001-0.ivf 00000000-0.state
xc-enc -W -w 0.75 -i y4m -o 00000001.ivf -r -I 00000000-0.state -p 00000001-0.ivf -O 00000001-1.state 00000001.y4m
## 00000002
00000002-1.ivf: 00000002.y4m 00000002-0.ivf 00000001-0.state
xc-enc -W -w 0.75 -i y4m -o 00000002-1.ivf -r -I 00000001-0.state -p 00000002-0.ivf 00000002.y4m
## 00000003
00000003-1.ivf: 00000003.y4m 00000003-0.ivf 00000002-0.state
xc-enc -W -w 0.75 -i y4m -o 00000003-1.ivf -r -I 00000002-0.state -p 00000003-0.ivf 00000003.y4m
# stage 3: rebase
## 00000002
00000002-1.state 00000002.ivf: 00000002.y4m 00000002-1.ivf 00000001-0.state 00000001-1.state
xc-enc -W -w 0.75 -i y4m -o 00000002.ivf -r -I 00000001-1.state -p 00000002-1.ivf -S 00000001-0.state -O 00000002-1.state 00000002.y4m
## 00000003
00000003.ivf: 00000003.y4m 00000003-1.ivf 00000002-0.state 00000002-1.state
xc-enc -W -w 0.75 -i y4m -o 00000003.ivf -r -I 00000002-1.state -p 00000003-1.ivf -S 00000002-0.state 00000003.y4m