<div dir="ltr"><div><div>hi Haihao, Thanks for your reply, i made everything in debug mode and set the environment flag (I ssh to the target box, set DISPLAY to the native display (:0) and then on bash prompt,  export VA_INTEL_DEBUG=1 ) but nothing additional gets printed. When you said "You will see nothing on the window after setting VA_INTEL_DEBUG=1", did you mean on the native window, I should not see any frames rendering and instead I should see something else? Sorry,  I am a bit confused.<br><br></div>Regards,<br><br></div>Ratin<br><div><div><br><br><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 4, 2015 at 6:07 PM, Xiang, Haihao <span dir="ltr"><<a href="mailto:haihao.xiang@intel.com" target="_blank">haihao.xiang@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Maybe it is caused by the display server. You can give a try with<br>
setting VA_INTEL_DEBUG=1 in your environment. You will see nothing on<br>
the window after setting VA_INTEL_DEBUG=1.<br>
<br>
Thanks<br>
Haihao<br>
<div><div class="h5"><br>
<br>
> I am integrating vaapi with ffmpeg on a Intel Nuc D54250WYK running<br>
> ubuntu 14.04.2 LTS with lightDM as the window manager, display<br>
> connected via mini HDMI-> regular HDMI to a 1080 P monitor. I am<br>
> calling vaPutSurface on a surface and it appears that it takes roughly<br>
> abt 30 msec to finish. I was wondering if anybody have an idea why<br>
> this would be the case. The surface is allocated, decoded and then<br>
> vaPutSurface is called for it. Note the delta in lines like<br>
><br>
> "|2015-06-03 17:29:13.210 Delta(usec): 131| Calling va putsurface for<br>
> suface ID: 67108864<br>
> |2015-06-03 17:29:13.242 Delta(usec): 31561| putsurface done for<br>
> surface ID: 67108864<br>
> "<br>
><br>
><br>
> took 31 msec.<br>
><br>
> status = vaPutSurface( pVAAPICNTX->vaDisplay,<br>
>  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â vs->id,<br>
>  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â pVAAPICNTX->voWindow,<br>
>  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â 0, 0, pVAAPICNTX->vid_width,<br>
> pVAAPICNTX->vid_height,<br>
>  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â 0, 0, pVAAPICNTX->voWidth,<br>
> pVAAPICNTX->voHeight,<br>
>  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â NULL, 0,<br>
>  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â VA_FRAME_PICTURE);<br>
><br>
><br>
><br>
> window creation is pretty straight forward:<br>
> m_winAttr.background_pixel = XBlackPixel(m_display,<br>
> m_visinfo->screen);<br>
>  win.window = XCreateWindow(m_display, m_rootWindow, rect.x, rect.y,<br>
> rect.width, rect.height, 0, m_visinfo->depth, InputOutput,<br>
> m_visinfo->visual, CWBackPixel | CWBorderPixel | CWColormap |<br>
> CWEventMask | CWOverrideRedirect, &m_winAttr);<br>
><br>
> XAllocNamedColor(m_display, m_winAttr.colormap,"black", &color, &rgb);<br>
> XSetWindowBackground(m_display, win.window, color.pixel);<br>
><br>
> I would like to get some feedback.<br>
><br>
><br>
> Thanks<br>
><br>
><br>
> Ratin<br>
><br>
><br>
> |2015-06-03 17:29:13.209 Delta(usec): 31652| putsurface done for<br>
> surface ID: 67108883<br>
> |2015-06-03 17:29:13.210 Delta(usec): 1311| Allocating surface<br>
> 67108870<br>
> |2015-06-03 17:29:13.210 Delta(usec): 266| DrawHorizBand: Surface<br>
> 67108870 in use , - rendering..<br>
> |2015-06-03 17:29:13.210 Delta(usec): 73| Releasing surface: 67108868,<br>
> we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.210 Delta(usec): 131| Calling va putsurface for<br>
> suface ID: 67108864<br>
> |2015-06-03 17:29:13.242 Delta(usec): 31561| putsurface done for<br>
> surface ID: 67108864<br>
> |2015-06-03 17:29:13.243 Delta(usec): 1284| Releasing surface:<br>
> 67108868, we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.243 Delta(usec): 66| Allocating surface 67108871<br>
> |2015-06-03 17:29:13.244 Delta(usec): 235| DrawHorizBand: Surface<br>
> 67108871 in use , - rendering..<br>
> |2015-06-03 17:29:13.244 Delta(usec): 160| Calling va putsurface for<br>
> suface ID: 67108867<br>
> |2015-06-03 17:29:13.275 Delta(usec): 31568| putsurface done for<br>
> surface ID: 67108867<br>
> |2015-06-03 17:29:13.277 Delta(usec): 1284| Allocating surface<br>
> 67108872<br>
> |2015-06-03 17:29:13.277 Delta(usec): 267| DrawHorizBand: Surface<br>
> 67108872 in use , - rendering..<br>
> |2015-06-03 17:29:13.277 Delta(usec): 71| Releasing surface: 67108871,<br>
> we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.277 Delta(usec): 132| Calling va putsurface for<br>
> suface ID: 67108866<br>
> |2015-06-03 17:29:13.309 Delta(usec): 31595| putsurface done for<br>
> surface ID: 67108866<br>
> |2015-06-03 17:29:13.310 Delta(usec): 1289| Allocating surface<br>
> 67108873<br>
> |2015-06-03 17:29:13.310 Delta(usec): 254| DrawHorizBand: Surface<br>
> 67108873 in use , - rendering..<br>
> |2015-06-03 17:29:13.310 Delta(usec): 153| Calling va putsurface for<br>
> suface ID: 67108868<br>
> |2015-06-03 17:29:13.342 Delta(usec): 31456| putsurface done for<br>
> surface ID: 67108868<br>
> |2015-06-03 17:29:13.343 Delta(usec): 1247| Allocating surface<br>
> 67108874<br>
> |2015-06-03 17:29:13.343 Delta(usec): 240| DrawHorizBand: Surface<br>
> 67108874 in use , - rendering..<br>
> |2015-06-03 17:29:13.343 Delta(usec): 70| Releasing surface: 67108872,<br>
> we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.343 Delta(usec): 129| Calling va putsurface for<br>
> suface ID: 67108865<br>
> |2015-06-03 17:29:13.375 Delta(usec): 31632| putsurface done for<br>
> surface ID: 67108865<br>
> |2015-06-03 17:29:13.376 Delta(usec): 1228| Releasing surface:<br>
> 67108872, we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.376 Delta(usec): 66| Allocating surface 67108875<br>
> |2015-06-03 17:29:13.377 Delta(usec): 247| DrawHorizBand: Surface<br>
> 67108875 in use , - rendering..<br>
> |2015-06-03 17:29:13.377 Delta(usec): 141| Calling va putsurface for<br>
> suface ID: 67108871<br>
> |2015-06-03 17:29:13.408 Delta(usec): 31652| putsurface done for<br>
> surface ID: 67108871<br>
> |2015-06-03 17:29:13.410 Delta(usec): 1234| Allocating surface<br>
> 67108876<br>
> |2015-06-03 17:29:13.410 Delta(usec): 257| DrawHorizBand: Surface<br>
> 67108876 in use , - rendering..<br>
> |2015-06-03 17:29:13.410 Delta(usec): 69| Releasing surface: 67108875,<br>
> we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.410 Delta(usec): 127| Calling va putsurface for<br>
> suface ID: 67108870<br>
> |2015-06-03 17:29:13.442 Delta(usec): 31668| putsurface done for<br>
> surface ID: 67108870<br>
> |2015-06-03 17:29:13.443 Delta(usec): 1262| Allocating surface<br>
> 67108877<br>
> |2015-06-03 17:29:13.443 Delta(usec): 236| DrawHorizBand: Surface<br>
> 67108877 in use , - rendering..<br>
> |2015-06-03 17:29:13.443 Delta(usec): 161| Calling va putsurface for<br>
> suface ID: 67108872<br>
> |2015-06-03 17:29:13.475 Delta(usec): 31656| putsurface done for<br>
> surface ID: 67108872<br>
> |2015-06-03 17:29:13.476 Delta(usec): 1248| Allocating surface<br>
> 67108878<br>
> |2015-06-03 17:29:13.477 Delta(usec): 250| DrawHorizBand: Surface<br>
> 67108878 in use , - rendering..<br>
> |2015-06-03 17:29:13.477 Delta(usec): 69| Releasing surface: 67108876,<br>
> we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.477 Delta(usec): 128| Calling va putsurface for<br>
> suface ID: 67108869<br>
> |2015-06-03 17:29:13.508 Delta(usec): 31638| putsurface done for<br>
> surface ID: 67108869<br>
> |2015-06-03 17:29:13.510 Delta(usec): 1228| Releasing surface:<br>
> 67108876, we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.510 Delta(usec): 79| Allocating surface 67108879<br>
> |2015-06-03 17:29:13.510 Delta(usec): 250| DrawHorizBand: Surface<br>
> 67108879 in use , - rendering..<br>
> |2015-06-03 17:29:13.510 Delta(usec): 140| Calling va putsurface for<br>
> suface ID: 67108875<br>
> |2015-06-03 17:29:13.542 Delta(usec): 31724| putsurface done for<br>
> surface ID: 67108875<br>
> |2015-06-03 17:29:13.543 Delta(usec): 1239| Allocating surface<br>
> 67108880<br>
> |2015-06-03 17:29:13.543 Delta(usec): 232| DrawHorizBand: Surface<br>
> 67108880 in use , - rendering..<br>
> |2015-06-03 17:29:13.543 Delta(usec): 51| Releasing surface: 67108879,<br>
> we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.544 Delta(usec): 106| Calling va putsurface for<br>
> suface ID: 67108874<br>
> |2015-06-03 17:29:13.575 Delta(usec): 31677| putsurface done for<br>
> surface ID: 67108874<br>
> |2015-06-03 17:29:13.576 Delta(usec): 1244| Allocating surface<br>
> 67108881<br>
> |2015-06-03 17:29:13.577 Delta(usec): 232| DrawHorizBand: Surface<br>
> 67108881 in use , - rendering..<br>
> |2015-06-03 17:29:13.577 Delta(usec): 126| Calling va putsurface for<br>
> suface ID: 67108876<br>
> |2015-06-03 17:29:13.609 Delta(usec): 31734| putsurface done for<br>
> surface ID: 67108876<br>
> |2015-06-03 17:29:13.610 Delta(usec): 1211| Allocating surface<br>
> 67108882<br>
> |2015-06-03 17:29:13.610 Delta(usec): 233| DrawHorizBand: Surface<br>
> 67108882 in use , - rendering..<br>
> |2015-06-03 17:29:13.610 Delta(usec): 48| Releasing surface: 67108880,<br>
> we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.610 Delta(usec): 104| Calling va putsurface for<br>
> suface ID: 67108873<br>
> |2015-06-03 17:29:13.642 Delta(usec): 31764| putsurface done for<br>
> surface ID: 67108873<br>
> |2015-06-03 17:29:13.643 Delta(usec): 1229| Releasing surface:<br>
> 67108880, we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.643 Delta(usec): 56| Allocating surface 67108883<br>
> |2015-06-03 17:29:13.643 Delta(usec): 205| DrawHorizBand: Surface<br>
> 67108883 in use , - rendering..<br>
> |2015-06-03 17:29:13.643 Delta(usec): 126| Calling va putsurface for<br>
> suface ID: 67108879<br>
> |2015-06-03 17:29:13.675 Delta(usec): 31694| putsurface done for<br>
> surface ID: 67108879<br>
> |2015-06-03 17:29:13.676 Delta(usec): 1234| Allocating surface<br>
> 67108864<br>
> |2015-06-03 17:29:13.677 Delta(usec): 229| DrawHorizBand: Surface<br>
> 67108864 in use , - rendering..<br>
> |2015-06-03 17:29:13.677 Delta(usec): 50| Releasing surface: 67108883,<br>
> we havent rendred it! exiting..<br>
> |2015-06-03 17:29:13.677 Delta(usec): 106| Calling va putsurface for<br>
> suface ID: 67108878<br>
> |2015-06-03 17:29:13.709 Delta(usec): 31713| putsurface done for<br>
> surface ID: 67108878<br>
> |2015-06-03 17:29:13.710 Delta(usec): 1243| Allocating surface<br>
> 67108867<br>
> |2015-06-03 17:29:13.710 Delta(usec): 225| DrawHorizBand: Surface<br>
> 67108867 in use , - rendering..<br>
> |2015-06-03 17:29:13.710 Delta(usec): 127| Calling va putsurface for<br>
> suface ID: 67108880<br>
> |2015-06-03 17:29:13.742 Delta(usec): 31744| putsurface done for<br>
> surface ID: 67108880<br>
> |2015-06-03 17:29:13.743 Delta(usec): 1248| Allocating surface<br>
> 67108866<br>
> |2015-06-03 17:29:13.743 Delta(usec): 233| DrawHorizBand: Surface<br>
> 67108866 in use , - rendering..<br>
> |2015-06-03 17:29:13.743 Delta(usec): 50| Releasing surface: 67108864,<br>
> we havent rendred i<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Libva mailing list<br>
> <a href="mailto:Libva@lists.freedesktop.org">Libva@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/libva" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libva</a><br>
<br>
<br>
</blockquote></div><br></div></div></div></div>