<div dir="ltr">Hi, our application is leveraging VAAPI x264 encode and also has the requirement that a monitor may or may not be connected to the GPU output. <div><br></div><div>When no display is connected with wayland the VAAPI plugging fail during init with this error and fail to initialized vaapih264enc:</div><div><b>:00:00.003987000 26531 0x564aa0e27b20 ERROR           vaapidisplay gstvaapidisplay_wayland.c:150:gst_vaapi_display_wayland_setup: failed to determine the display size<br>0:00:00.004037000 26531 0x564aa0e27b20 ERROR                default gstvaapi.c:239:plugin_init: Cannot create a VA display</b><br></div><div><br></div><div>We do not see this problem when using X output.</div><div><br></div><div>Example to repro when running in SSH remote session:</div><div>XDG_RUNTIME_DIR=/tmp/.Xweston/\:0 gst-launch-1.0 videotestsrc num-buffers=1000 ! vaapih264enc ! fakesink --gst-debug=vaapidisplay:5<br></div><div><br></div><div>XDG_RUNTIME_DIR=/tmp/.Xweston/\:0 gst-inspect-1.0 vaapi </div><div>gst-instpect vaapi will report 0 features. which is expected since the init of vaapi fails<br></div><div><br></div><div>We are using Weston on ubuntu 18  This could be a bug in the vaapi init plugin or we are missing something in our system/weston config?</div><div><br></div><div>Thanks</div><div>FredT</div><div><b><br></b></div><div><b><br></b></div></div>