Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3058 Discussions

gstreamer-vaapi broken ? problem connecting vaapidecode to vaapiencode_h264 ?

tapas_k_
Beginner
803 Views

Hi,

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

https://01.org/linuxgraphics/downloads/intel-graphics-installer-linux-1.2.0

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@192.168.0.162:554/cam/realmonitor?channel=1&subtype=0"   ! 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/i965_drv_video.so
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@192.168.0.162:554/cam/realmonitor?channel=1&subtype=0
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 ...
janardana@janardana-Lenovo-B50-30-Touch:~/src/gstreamer/head$

 

 

 

 

0 Kudos
1 Reply
Jiandong_Z_Intel
Employee
803 Views

Hi There,

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

https://01.org/linuxgraphics/forum

https://01.org/linuxgraphics/forum/graphics-installer-discussions

 

Thanks

Zachary

0 Kudos
Reply