-
Notifications
You must be signed in to change notification settings - Fork 16
/
Config.ini
executable file
·374 lines (358 loc) · 14.3 KB
/
Config.ini
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
[Global]
#frameWidth=1200
#frameHeight=600
;output fps
fps=24
#bitrates=[2,5,10]
;Names of the Section for the layout flow: [[Equirectangular, CubeMap, FlatFixed], [Equirectangular, FlatFixed]] means: from Equirectangular to CubeMap to FlatFixed AND from Equirectangular to FlatFixed
;layoutFlow= [["Equirectangular", "FlatFixed"], ["Equirectangular", "EquirectangularTiled"], ["Equirectangular","CubeMap", "FlatFixed"], ["Equirectangular","Pyramid", "FlatFixed"], ["Equirectangular","RhombicDodeca", "FlatFixed"]]
layoutFlow= [["../tOffCopy.mp4", "Equirectangular", "EquirectangularOffset", "Equirectangular"], ["../tOffCopy.mp4", "Equirectangular", "CubeMapOffset"], ["../tOffCopy.mp4", "Equirectangular", "CubeMapOffset", "Equirectangular"], ["../tOffCopy.mp4", "Equirectangular", "CubeMap"], ["../tOffCopy.mp4", "Equirectangular", "EquirectangularOffset"]]
; layoutFlow= [["../tOffCopy.mp4", "Equirectangular", "CubeMapOffset"], ["../tOffCopy.mp4", "Equirectangular"], ["../tOffCopy.mp4", "Equirectangular", "CubeMapOffset", "Equirectangular"], ["../tOffCopy.mp4", "Equirectangular", "CubeMap"], ["../tOffCopy.mp4", "Equirectangular", "EquirectangularOffset"], ["../tOffCopy.mp4", "Equirectangular", "EquirectangularOffset", "Equirectangular"]]
;, ["../car_equirectangular_4k.mp4", "Equirectangular", "CubeMapCompact"], ["../car_equirectangular_4k.mp4", "Equirectangular", "Pyramid"], ["../car_equirectangular_4k.mp4", "Equirectangular","RhombicDodeca"]]
;, ["carEquirectangularTiled.mkv", "EquirectangularTiled", "Pyramid"]]
;layoutFlow= [["Equirectangular","CubeMap"], ["Equirectangular","CubeMapCompact"], ["Equirectangular","Pyramid"], ["Equirectangular","RhombicDodeca"], ["Equirectangular","CubeMap", "FlatFixed"], ["Equirectangular", "FlatFixed"],["Equirectangular"]]
;layoutFlow= [["Equirectangular","Pyramid"]]
;if displayFinalPict is set, it will display the final picture of each flow for each input picture of the original video
displayFinalPict=true
;if not empty, a video will be recorded for each flow using the path + the file name given here (the file name will be unique per flow).
videoOutputName=
;bitrate goal of the output video in kbps
videoOutputBitRate=0
;videoOutputName=
qualityOutputName = quality.txt
; qualityToComputeList = ["MS-SSIM", "SSIM", "PSNR", "S-PSNR-NN", "S-PSNR-I", "WS-PSNR"]
qualityToComputeList = ["S-PSNR-NN", "S-PSNR-I"]
nbFrames= 5
startFrame= 0
[Equirectangular]
;type of the layout: equirectangular is the state-of-the-art equirectangular layout
type=equirectangular
upscale=false
;Width of the reference equirectangular video
refWidth=3840
;Width of the reference equirectangular video
refHeight=2048
;yaw, pitch, roll of the center point of the equirectangular video (in degree)
rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}
;if true, the resolution of the layout is compute based on the resolution of the previous layout (or on the resolution of the reference equirectangular video)
relativeResolution=true
;if relativeResolution=true ratio of the output layout width compare to the reference video; otherwise width size of the output video in pixel number
width=1
height=1
;bitrate ratio of the output video relative to the videoOutputBitRate (if it is the final layout and if the video is encoded).
bitrate=1
offsetRatio=0
[EquirectangularOffset]
;type of the layout: equirectangular is the state-of-the-art equirectangular layout
type=equirectangular
upscale=false
;Width of the reference equirectangular video
refWidth=3840
;Width of the reference equirectangular video
refHeight=2048
;yaw, pitch, roll of the center point of the equirectangular video (in degree)
rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}
;if true, the resolution of the layout is compute based on the resolution of the previous layout (or on the resolution of the reference equirectangular video)
relativeResolution=true
;if relativeResolution=true ratio of the output layout width compare to the reference video; otherwise width size of the output video in pixel number
width=1
height=1
;bitrate ratio of the output video relative to the videoOutputBitRate (if it is the final layout and if the video is encoded).
bitrate=1
offsetRatio=0.8
[EquirectangularRot]
type=equirectangular
relativeResolution=true
width=1
height=1
rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}
[EquirectangularTiled]
type=equirectangularTiled
;Size of the reference input equirectangular video
refWidth=3840
refHeight=2048
;use relative resolution for the face resolutions
relativeResolution=true
;yaw, pitch, roll of the center of face 4x3 (in degree)
rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}
;nbHTiles (resp. nbVTiles) indicate the number of horizontal (resp. vertical) tiles
;You have to compile the software with the RANGE_NB_H_TILES and RANGE_NB_V_TILES macro to be able to use this layout.
;For instance in this example the value 8 should be in the macro RANGE_NB_H_TILES and RANGE_NB_V_TILES otherwise a runtime error will be raised
nbHTiles=8
nbVTiles=8
;hTileRation_X and vTileRation_X indicate the relative horizontal and vertical ratio of the tile X. In this example each tile get 1/8 of the equirectangular picture
hTileRation_0=0.25
hTileRation_1=0.25
hTileRation_2=0.25
hTileRation_3=0.25
hTileRation_4=0.25
hTileRation_5=0.25
hTileRation_6=0.25
hTileRation_7=0.25
vTileRation_0=0.25
vTileRation_1=0.25
vTileRation_2=0.25
vTileRation_3=0.25
vTileRation_4=0.25
vTileRation_5=0.25
vTileRation_6=0.25
vTileRation_7=0.25
;if upscale is set to true, all the tiles will be upscaled to the original tile resolution
upscale=false
;if useTile is set to true, each face will be encoded into an independent video with a target bitrate set by the equirectangularTileBitrate_0_0, equirectangularTileBitrate_0_1, etc. parameters
;if useTile is set to false, the whole projection will be encoded into a unique video (all faces on the same frame) and a global bitrate target set by the bitrate parameter
useTile=true
;resolution of the tile (i,j)=(0,0)
equirectangularTile_0_0=1
; bitrate of the tile (i,j) = (0,0). Ratio of r means r*videoOutputBitRate/64
equirectangularTileBitrate_0_0=0.25
equirectangularTile_0_1=1
equirectangularTileBitrate_0_1=0.25
equirectangularTile_0_2=1
equirectangularTileBitrate_0_2=0.25
equirectangularTile_0_3=1
equirectangularTileBitrate_0_3=0.25
equirectangularTile_0_4=1
equirectangularTileBitrate_0_4=0.25
equirectangularTile_0_5=1
equirectangularTileBitrate_0_5=0.25
equirectangularTile_0_6=1
equirectangularTileBitrate_0_6=0.25
equirectangularTile_0_7=1
equirectangularTileBitrate_0_7=0.25
equirectangularTile_1_0=1
equirectangularTileBitrate_1_0=0.25
equirectangularTile_1_1=1
equirectangularTileBitrate_1_1=0.25
equirectangularTile_1_2=1
equirectangularTileBitrate_1_2=0.25
equirectangularTile_1_3=1
equirectangularTileBitrate_1_3=0.25
equirectangularTile_1_4=1
equirectangularTileBitrate_1_4=0.25
equirectangularTile_1_5=1
equirectangularTileBitrate_1_5=0.25
equirectangularTile_1_6=1
equirectangularTileBitrate_1_6=0.25
equirectangularTile_1_7=1
equirectangularTileBitrate_1_7=0.25
equirectangularTile_2_0=1
equirectangularTileBitrate_2_0=0.25
equirectangularTile_2_1=1
equirectangularTileBitrate_2_1=1
equirectangularTile_2_2=1
equirectangularTileBitrate_2_2=1
equirectangularTile_2_3=1
equirectangularTileBitrate_2_3=1
equirectangularTile_2_4=1
equirectangularTileBitrate_2_4=1
equirectangularTile_2_5=1
equirectangularTileBitrate_2_5=1
equirectangularTile_2_6=1
equirectangularTileBitrate_2_6=0.25
equirectangularTile_2_7=1
equirectangularTileBitrate_2_7=0.25
equirectangularTile_3_0=1
equirectangularTileBitrate_3_0=0.25
equirectangularTile_3_1=1
equirectangularTileBitrate_3_1=1
equirectangularTile_3_2=1
equirectangularTileBitrate_3_2=1
equirectangularTile_3_3=1
equirectangularTileBitrate_3_3=1
equirectangularTile_3_4=1
equirectangularTileBitrate_3_4=1
equirectangularTile_3_5=1
equirectangularTileBitrate_3_5=1
equirectangularTile_3_6=1
equirectangularTileBitrate_3_6=0.25
equirectangularTile_3_7=1
equirectangularTileBitrate_3_7=0.25
equirectangularTile_4_0=1
equirectangularTileBitrate_4_0=0.25
equirectangularTile_4_1=1
equirectangularTileBitrate_4_1=1
equirectangularTile_4_2=1
equirectangularTileBitrate_4_2=1
equirectangularTile_4_3=1
equirectangularTileBitrate_4_3=1
equirectangularTile_4_4=1
equirectangularTileBitrate_4_4=1
equirectangularTile_4_5=1
equirectangularTileBitrate_4_5=1
equirectangularTile_4_6=1
equirectangularTileBitrate_4_6=0.25
equirectangularTile_4_7=1
equirectangularTileBitrate_4_7=0.25
equirectangularTile_5_0=1
equirectangularTileBitrate_5_0=0.25
equirectangularTile_5_1=1
equirectangularTileBitrate_5_1=1
equirectangularTile_5_2=1
equirectangularTileBitrate_5_2=1
equirectangularTile_5_3=1
equirectangularTileBitrate_5_3=1
equirectangularTile_5_4=1
equirectangularTileBitrate_5_4=1
equirectangularTile_5_5=1
equirectangularTileBitrate_5_5=1
equirectangularTile_5_6=1
equirectangularTileBitrate_5_6=0.25
equirectangularTile_5_7=1
equirectangularTileBitrate_5_7=0.25
equirectangularTile_6_0=1
equirectangularTileBitrate_6_0=0.25
equirectangularTile_6_1=1
equirectangularTileBitrate_6_1=1
equirectangularTile_6_2=1
equirectangularTileBitrate_6_2=1
equirectangularTile_6_3=1
equirectangularTileBitrate_6_3=1
equirectangularTile_6_4=1
equirectangularTileBitrate_6_4=1
equirectangularTile_6_5=1
equirectangularTileBitrate_6_5=1
equirectangularTile_6_6=1
equirectangularTileBitrate_6_6=0.25
equirectangularTile_6_7=1
equirectangularTileBitrate_6_7=0.25
equirectangularTile_7_0=1
equirectangularTileBitrate_7_0=0.25
equirectangularTile_7_1=1
equirectangularTileBitrate_7_1=0.25
equirectangularTile_7_2=1
equirectangularTileBitrate_7_2=0.25
equirectangularTile_7_3=1
equirectangularTileBitrate_7_3=0.25
equirectangularTile_7_4=1
equirectangularTileBitrate_7_4=0.25
equirectangularTile_7_5=1
equirectangularTileBitrate_7_5=0.25
equirectangularTile_7_6=1
equirectangularTileBitrate_7_6=0.25
equirectangularTile_7_7=1
equirectangularTileBitrate_7_7=0.25
;bitrate is used only if useTile=false. A ratio r means a bitrate of r*videoOutputBitRate
bitrate=1
[CubeMap]
;type of the layout: cube map layout
type=cubeMap2
;Size of the reference input equirectangular video
refWidth=720
refHeight=480
;use relative resolution for the face resolutions
relativeResolution=true
;yaw, pitch and roll of the center of the Front face (in degree)
; rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}
; rotation= {"type":"angleAxis", "angle":0, "x":0.0, "y":1, "z":0}
rotation= {"type":"quaternion", "w":1, "x":0.0, "y":0.0, "z":0.0}
offsetRatio=0
;the edge of each face. If relativeResolution, ratio compared to the reference input video, otherwise size in pixel.
cubeEdgeLengthFront=1
cubeEdgeLengthLeft=1
cubeEdgeLengthRight=1
cubeEdgeLengthTop=1
cubeEdgeLengthBottom=1
cubeEdgeLengthBack=1
;if useTile is set to true, each face will be encoded into an independent video with a target bitrate set by the bitrateFront, bitrateLeft, etc. parameters
;if useTile is set to false, the whole projection will be encoded into a unique video (all faces on the same frame) and a global bitrate target set by the bitrate parameter
useTile=true
;Relative bitrate of each face (if final layout encoded). A ratio r means r*videoOutputBitRate/6
bitrateFront=1
bitrateLeft=0.25
bitrateRight=0.25
bitrateTop=0.25
bitrateBottom=0.25
bitrateBack=0.25
;bitrate is used only if useTile=false. A ratio r means a bitrate of r*videoOutputBitRate
bitrate=1
[CubeMapOffset]
;type of the layout: cube map layout
type=cubeMap2
;Size of the reference input equirectangular video
refWidth=720
refHeight=480
;use relative resolution for the face resolutions
relativeResolution=true
;yaw, pitch and roll of the center of the Front face (in degree)
; rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}
; rotation= {"type":"angleAxis", "angle":0, "x":0.0, "y":1, "z":0}
rotation= {"type":"quaternion", "w":1, "x":0.0, "y":0.0, "z":0.0}
offsetRatio=0.75
;the edge of each face. If relativeResolution, ratio compared to the reference input video, otherwise size in pixel.
cubeEdgeLengthFront=1
cubeEdgeLengthLeft=1
cubeEdgeLengthRight=1
cubeEdgeLengthTop=1
cubeEdgeLengthBottom=1
cubeEdgeLengthBack=1
;if useTile is set to true, each face will be encoded into an independent video with a target bitrate set by the bitrateFront, bitrateLeft, etc. parameters
;if useTile is set to false, the whole projection will be encoded into a unique video (all faces on the same frame) and a global bitrate target set by the bitrate parameter
useTile=true
;Relative bitrate of each face (if final layout encoded). A ratio r means r*videoOutputBitRate/6
bitrateFront=1
bitrateLeft=0.25
bitrateRight=0.25
bitrateTop=0.25
bitrateBottom=0.25
bitrateBack=0.25
;bitrate is used only if useTile=false. A ratio r means a bitrate of r*videoOutputBitRate
bitrate=1
[CubeMapCompact]
type=cubeMap
relativeResolution=true
cubeEdgeLengthFront=1
cubeEdgeLengthBack=1
cubeEdgeLengthLeft=1
cubeEdgeLengthRight=1
cubeEdgeLengthTop=1
cubeEdgeLengthBottom=1
yaw=0
pitch=0
roll=0
[FlatFixed]
;type of the layout: flatFixed means FoV extraction
type=flatFixed
;relativeResolution cannot be true for flatFixed layout
relativeResolution=false
;indicates if we want to use a static position set by the yaw, pitch and roll parameter or play a traces located at positionTrace
dynamicPositions=false
;The path to the position trace file. Used if dynamicPositions is set to true
positionTrace=pathToPositionTrace
;yaw, pitch, roll of the center point of the FoV (in degree). Used if dynamicPositions is set to false
rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}
;width and height in pixels of the output image
width=1920
height=1080
;Horizontal angle of the display device (in degree)
horizontalAngleOfVision=110
;Vertical angle of the display device (in degree)
verticalAngleOfVision=90
[Pyramid]
type=pyramid2
rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}
relativeResolution=true
;lenght of the pyramid base edge in the 3D space (cannot be 2)
pyramidBaseEdge=2.1
;in number of pixel for the 2D layout
pyramidBaseEdgeLength=1
pyramidHeightTop=1
pyramidHeightBottom=1
pyramidHeightLeft=1
pyramidHeightRight=1
[RhombicDodeca]
type=rhombicDodeca
relativeResolution=true
rhombEdgeLengthFace1=1
rhombEdgeLengthFace2=1
rhombEdgeLengthFace3=1
rhombEdgeLengthFace4=1
rhombEdgeLengthFace5=1
rhombEdgeLengthFace6=1
rhombEdgeLengthFace7=1
rhombEdgeLengthFace8=1
rhombEdgeLengthFace9=1
rhombEdgeLengthFace10=1
rhombEdgeLengthFace11=1
rhombEdgeLengthFace12=1
rotation= {"type":"euler", "yaw":0.0, "pitch":0.0, "roll":0.0}