Showing results for 
Search instead for 
Did you mean: 

gstreamer-vaapi broken ? problem connecting vaapidecode to vaapiencode_h264 ?


I installed latest intel graphics for linux by following wiki on ubuntu 15.04/intel baytrail (lenevo B50 touch laptop).:

I am trying to execute following pipeline : (It seems that vaapidecode is unable to connect with vaapiencode_h264 .  Can anyone tell me why it is failing  ? )

GST_DEBUG=3 gst-launch-1.0 flvmux name=mux streamable=true ! rtmpsink sync=true location="rtmp://xxxxxxx" rtspsrc location="rtsp://admin:admin@"   ! rtph264depay ! queue ! h264parse ! vaapidecode ! queue ! vaapiencode_h264 rate-control=cbr tune=high-compression ! mux.
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Got context from element 'vaapidecode0': gst.vaapi.Display=context, display=(GstVaapiDisplay)NULL;
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:admin@
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
0:00:00.304117302  3863 0x7fef1c03f800 FIXME                default gstutils.c:3766:gst_pad_create_stream_id_internal:<fakesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Redistribute latency...
Redistribute latency...
0:00:00.709249061  3863      0x1608450 WARN                GST_PADS gstpad.c:3989:gst_pad_peer_query:<vaapidecode0:src> could not send sticky events
0:00:00.832054174  3863 0x7fef1c03f8f0 WARN                 basesrc gstbasesrc.c:2943:gst_base_src_loop:<udpsrc1> error: Internal data flow error.
0:00:00.832118375  3863 0x7fef1c03f8f0 WARN                 basesrc gstbasesrc.c:2943:gst_base_src_loop:<udpsrc1> error: streaming task paused, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: Internal data flow error.
Additional debug info:
gstbasesrc.c(2943): gst_base_src_loop (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.528707555
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
0:00:00.842904885  3863      0x16082d0 WARN                 rtspsrc gstrtspsrc.c:6051:gst_rtspsrc_send:<rtspsrc0> error: Got error response: 455 (Method Not Valid in This State).
0:00:00.843011339  3863      0x16082d0 WARN                 rtspsrc gstrtspsrc.c:8011:gst_rtspsrc_pause:<rtspsrc0> error: Could not send message. (Generic error)
Setting pipeline to NULL ...
Freeing pipeline ...





0 Kudos
1 Reply

Hi There,

Because you are using graphic driver from, it is OTC driver. Maybe following URL can help you :




0 Kudos