nvh264enc Could not initialize supporting library once 3.rd the same stream opened
Submitted by Liene
Link to original bug (#771008)
Description
Used stream : gst-launch-1.0 videotestsrc ! videoconvert ! video/x-raw ! nvh264enc ! h264parse ! video/x-h264,stream-format=byte-stream ! avdec_h264 ! videoconvert ! autovideosink. It works correct for 2 streams. Once I open another one the same stream, it dumps error messages:
Setting pipeline to PAUSED ...
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
ERROR: Pipeline doesn't want to pause.
Got context from element 'autovideosink0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)NULL;
ERROR: from element /GstPipeline:pipeline0/GstNvH264Enc:nvh264enc0: Could not initialize supporting library.
Additional debug info:
gstvideoencoder.c(1534): gst_video_encoder_change_state (): /GstPipeline:pipeline0/GstNvH264Enc:nvh264enc0:
Failed to open encoder
Setting pipeline to NULL ...
Freeing pipeline ...
Version: 1.8.3