-
Notifications
You must be signed in to change notification settings - Fork 8
/
projection.yaml
138 lines (130 loc) · 2.99 KB
/
projection.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# video projection parameters
# For VR video filer options see: https://ffmpeg.org/ffmpeg-filters.html#v360
#
# Notes:
# - You can not use brackets in name.
# - names must be unique.
# - root keys should contain _vr_ for vr video projections
# - root keys should contain _sbs_ for side by side video projections
# - root keys should contain _ou_ for over/under = top/botoom video projections
vr_he_180_sbs:
name: '3D SBS VR Video 180'
video_filter: 'v360=input=he:in_stereo=sbs:pitch=${pitch}:yaw=${yaw}:roll=${roll}:output=flat:d_fov=${fov}:w=${width}:h=${height}'
parameter:
height: 720
width: 1240
fov: 100
pitch: -45
yaw: 0
roll: 0
keys:
pitch:
increase: "w"
decrease: "s"
yaw:
increase: "d"
decrease: "a"
roll:
increase: "e"
decrease: "q"
fov:
increase: "-"
decrease: "+"
vr_fisheye_200_sbs:
name: '3D SBS VR Video Fisheye 200'
video_filter: 'v360=input=fisheye:in_stereo=sbs:id_fov=200:pitch=${pitch}:yaw=${yaw}:roll=${roll}:output=flat:d_fov=${fov}:w=${width}:h=${height}'
parameter:
height: 720
width: 1240
fov: 100
pitch: -45
yaw: 0
roll: 0
keys:
pitch:
increase: "w"
decrease: "s"
yaw:
increase: "d"
decrease: "a"
roll:
increase: "e"
decrease: "q"
fov:
increase: "-"
decrease: "+"
vr_equirect_360_ou:
name: '3D Vertical VR Video 360/180'
video_filter: 'v360=input=equirect:in_stereo=tb:pitch=${pitch}:yaw=${yaw}:roll=${roll}:output=flat:d_fov=${fov}:w=${width}:h=${height}'
parameter:
height: 720
width: 1240
fov: 100
pitch: -45
yaw: 0
roll: 0
keys:
pitch:
increase: "w"
decrease: "s"
yaw:
increase: "d"
decrease: "a"
roll:
increase: "e"
decrease: "q"
fov:
increase: "-"
decrease: "+"
vr_he_180_ou:
name: '3D Vertical VR Video 180'
video_filter: 'v360=input=he:in_stereo=tb:pitch=${pitch}:yaw=${yaw}:roll=${roll}:output=flat:d_fov=${fov}:w=${width}:h=${height}'
parameter:
height: 720
width: 1240
fov: 100
pitch: -45
yaw: 0
roll: 0
keys:
pitch:
increase: "w"
decrease: "s"
yaw:
increase: "d"
decrease: "a"
roll:
increase: "e"
decrease: "q"
fov:
increase: "-"
decrease: "+"
flat:
name: '2D Video'
video_filter: "scale=${width}:${height}"
parameter:
height: 720
width: -1
flat_with_parameters:
name: '2D Video with Filters'
video_filter: "pad='max(ih,iw):max(ih,iw):max(ih,iw)/2:max(ih,iw)/2',scale=${width}:${height},rotate='(PI/180)*${rotation}',crop='iw*1/max(1, ${zoom}/5):ih*1/max(1, ${zoom}/5):2*${x}:2*${y}',scale=${width}:${height}"
parameter:
height: 1024
width: 1024
zoom: 5
x: 0
y: 0
rotation: 0
keys:
y:
increase: "s"
decrease: "w"
x:
increase: "d"
decrease: "a"
zoom:
increase: "+"
decrease: "-"
rotation:
increase: "e"
decrease: "q"