Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server (/showthread.php?tid=231955) Pages:
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
|
RE: New Era: VAAPI with EGL interoperation - wsnipex - 2015-09-16 pretty simple: passthrough audio ON: sync playback to display: OFF passthrough audio OFF: sync playback to display: ON RE: New Era: VAAPI with EGL interoperation - Oshan Ruiz - 2015-09-16 (2015-09-16, 17:38)wsnipex Wrote: pretty simple: I think what is confusing to most people is that with both settings: "adjust refresh rate to match video" & "sync playback to display" enabled it would appear that they would work against each other. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-16 (2015-09-16, 17:28)ggp759 Wrote:(2015-09-16, 15:16)FernetMenta Wrote: the point is that you can't adjust refresh rate to match video to a 100% match. No. Sync Playback syncs perfectly the fps to the videoclock. Simplified, whenever we change the front with the backbuffer one fps is displayed. This happens fps count a second. Fully in vsync -> perfect video. Problem here is: If video and audio don't match exactly. Use case a) The VSync Clock runs at 23.99 fps and not at 23.976 fps -> no problem for video as it is just displayed "a bit" faster -> you won't notice. Cause in perfect vsync 23.99 fps are displayed per second - perfectly matching your screen, just like a clock - always doing: tick, tick, tick e.g. frame, frame, frame - the clock just runs faster as a 23.976 clock would run - no one cares. Problem comes into play, when you have audio. Cause audio and video would go ahead of each other. Therefore one needs to do something when this is happening. With passthrough audio: we only have two choices drop or dupe and that you can hear very loud if you have bad luck, it makes a famous psssst noise to correct this offset. Without passthrough audio: We resample a bit and video stays perfectly in sync and you won't even notice anything => Reason why you should disable it when you passthrough. In a perfect world where videos are really exactly 23.976 fps and your refreshrate is really 23.976 hz -> Sync Playback does not harm (even if you passthrough), but it won't be able to help you - as everything is perfect already. And: world is not perfect. Use case b) You play 59.94 fps content at 60 hz -> vclock "speeds it up" automatically, cause swapBuffers every 1000 / 60.0 ms vs. 1000 / 59.94 ms -> audio needs to be speed up too. With passthrough: drop samples (ugly, bad experience) Without passthrough: resample with a factor > 1 - audio will get a little bit higher in tone -> but you won't realize. Adjust Refreshrate to match video is something else - it tries to find a refreshrate, so that Refreshrate % (modulo) fps == some even non fractional value. 25 fps at 50 hz is fine, 23.976 fps at 23.976 hz is fine. 23.976 at 24.0 hz -> not fine. But with RefClock -> no issue video wise. So to summarize: - Use Adjust Refreshrate to match video: good precondition to have the Sync Playback do a nice job afterwards - Use Adjust Refreshrate to match video: also if you are a passthrough audio user - cause 23.976 fps content + passthrough audio played at 60 hz - won't work without either visual stutter or audio drops. - Passthrough audio sucks for "perfect playback" as video clock might not match fps exactly, we need to drop / dupe or resync after 200 ms off - Enable Sync Playback to Display _if_ you don't use passthrough audio as it cares for perfect video while maintaining your audio in sync without you noticing. Edit: Not covered in here: What happens if you play 24.0 fps content at 60 hz? How would you play 23.976 fps at 60 hz? -> Some wikipedia for the dear user able to read: https://en.wikipedia.org/wiki/Three-two_pull_down Personally: I don't use passthrough audio at all - I have a 5.1 capable LPCM receiver which I feed directly. Since we have dcadec support - I even can decode DTS-HDMA and have perfect audio also in combination with perfect video. RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-09-16 (2015-09-16, 17:38)wsnipex Wrote: pretty simple: So in my case that the setup is: Mediaplayer>AVR>TV I use Audio Profiles switch http://forum.kodi.tv/showthread.php?tid=200081 to swich between AVR Profile and TV So is better if i use TV from Audio also to have sync playback to display or my avr (as referred pages ago) auto sync ? Thank You RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-16 Just disable passthrough and enable Sync Playback to Display always. RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-09-16 My 3 cents to "Sync Playback to Display" - I've noticed that with this option enabled my audio floats in really bad way - it speeds up and slows down making sound really bad (worst moments are with soundtrack playng in the background - on music you can hear very well this effect). With "Sync Playback to Display" disabled everything seems to be ok. My audio setup: Beebox-->USB DAC-->Amplifier. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-16 No Debug Log - no problem. RE: New Era: VAAPI with EGL interoperation - Oshan Ruiz - 2015-09-16 So essentially with passthrough disabled LPCM will be sent with all 5.1 channels just won't see the useless lights on receiver "DTS, DTS-HDMA, etc." RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-16 (2015-09-16, 18:55)oshan Wrote: So essentially with passthrough disabled LPCM will be sent with all 5.1 channels just won't see the useless lights on receiver "DTS, DTS-HDMA, etc." Hehe - exactly :-). Also note: Some AVRs do special things when they receive DTS / DTS-HD - e.g. boosting something, a sound some people like. But it's most likely the light that people love. It's the same insane thing like buying a DAC - that only does 16 bit and max 48 khz - as I needed to teach someone that had a 3000 dollar DAC running on android and everything was downsampled to audiotrack's system samplerate. RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-09-16 (2015-09-16, 18:52)fritsch Wrote: No Debug Log - no problem. What else do you need fritsch? There is no special message in any logs, I just hear it. Should I enable additional logging on Kodi? BTW I've also small issue with next option - "pause playback during refresh rate change" (or similar - I try to translate into english). when I start playback there is no video signal but audio starts for about 0.5 sec and then resumes after refresh rate change. So it seems to be little bit unusual. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-16 No - Debug Log is sufficient. You are aware that you run an alpha build with rough edges, right? RE: New Era: VAAPI with EGL interoperation - Ney - 2015-09-16 (2015-09-16, 18:59)fritsch Wrote:(2015-09-16, 18:55)oshan Wrote: So essentially with passthrough disabled LPCM will be sent with all 5.1 channels just won't see the useless lights on receiver "DTS, DTS-HDMA, etc." With recorded PVR stuff, I get audio skips, which are worst with sync on and passthrough off, and best with sync off and passthrough on also, as long as those DACS are branded as NOS or "analog in sound" and is expensive enough, people will be idiots and buy them. my 32bit 384kHz DAC RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-16 @Ney: Afaik you run the non supported OE build ... which has a complete different mechanism to sync. - might be possible. But as said before: no Debug Log no issue. If you run the ppa - post it here - if not - send me an email. RE: New Era: VAAPI with EGL interoperation - Ney - 2015-09-16 Yeah fritch, i know no issue. Just wondered out loud, I will try Jarvis when I get time and/or get you logs RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-16 @Ney: makes me wonder anyways. As this runs in my living room - cannot afford that some of the addons, the wife is using, won't work anymore :-) without any issues. |