I have a pc with ubuntu 18.04 where I've installed gstreamer 1.14.1 from repository. This pc is connected to an IP camera from which I receive a h264 stream via rtsp. I'm using the following pipeline for testing:</br></br>
<i>gst-launch-1.0 rtspsrc location="rtsp://root:root@192.168.0.91:554/axis-media/media.amp?videocodec=h264&resolution=3840x2160&compression=0&clock=0&date=0&fps=25&videokeyframeinterval=10&videobitrate=0&camera=1" protocols=GST_RTSP_LOWER_TRANS_TCP latency=0 ! rtph264depay ! queue ! vaapih264dec ! videoconvert ! video/x-raw, format=BGR ! fakesink dump=true</i></br></br>
and everything works fine, I can see the dumped data (if I attach a display sink I can see the stream). If I run the command <i>gst-inspect-1.0 vaapi</i> I can see 16 features and vaapih264dec is included.</br>
As long as I am logged on this pc for testing everything's good. But this pc must work remotely and an application using a similar pipeline should run without the need to be logged in. So without logging in I've connected to the pc via ssh but the same pipeline returns me the error</br></br>
<i>WARNING: erroneous pipeline: no element "vaapih264dec"</i></br></br>
and the command <i>gst-inspect-1.0 vaapi</i> shows 0 features.</br>
As suggested in <a href="http://gstreamer-devel.966125.n4.nabble.com/Headless-VA-API-hardware-accelerated-H-264-video-encoding-with-vaapih264enc-td4688424.html" target="_top" rel="nofollow" link="external">this similar post</a> I've tried to put <i>DISPLAY= WAYLAND_DISPLAY=</i> in front of the pipeline but still, same result.</br></br>
I then proceeded to build gstreamer (1.15.2) from source building gstreamer-vaapi only with drm (<i>--enable-drm=yes --enable-x11=no --enable-glx=no --enable-wayland=no --enable-egl=no</i>) and for what I can see it compiled and installed correctly. Compiled also the intel driver i965. </br>
Via ssh I've exported the following environment variable to be sure not to conflict with old gstreamer from repo: <i>PATH, LD_LIBRARY_PATH, LIBVA_DRIVERS_PATH, LIBVA_DRIVER_NAME</i> but still i get <i>no element "vaapih264dec"</i> and <i>gst-instpect</i> shows 0 features.</br></br>
Do you have any suggestions?</br>
Many thanks
<br/><hr align="left" width="300" />
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>