error: getting data stream error when using msdkh264enc
i have installed intel media sdk on my machine and the examples in that run fine. However when i run the below gstreamer pipeline, i get error
Pipeline
`gst-launch-1.0 --gst-debug=3 filesrc location=/home/vandana/sample_videos/big_buck_bunny_720p_2mb.mp4 ! decodebin name=demux demux. ! queue ! audioresample ! audioconvert ! avenc_aac bitrate=192000 ! mux. mpegtsmux bitrate=5000000 alignment=7 name=mux ! filesink location=/home/vandana/sample_videos/sample-mp4-file_lt.ts demux. ! queue ! msdkh264enc hardware=true ! video/x-h264,stream-format=byte-stream,profile=high ! h264parse ! mux.`
Logs
libva info: VA-API version 1.11.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_11
libva info: va_openDriver() returns 0
Setting pipeline to PAUSED ...
libva info: VA-API version 1.11.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_11
libva info: va_openDriver() returns 0
0:00:00.040951282 21893 0x55aca38ebe10 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete:<filesrc0> pad not activated yet
Pipeline is PREROLLING ...
Got context from element 'msdkh264enc0': gst.msdk.Context=context, gst.msdk.Context=(GstMsdkContext)"\(GstMsdkContext\)\ msdkcontext1";
0:00:00.046714269 21893 0x7f286c0a2d40 WARN qtdemux qtdemux.c:3101:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 1
0:00:00.046766206 21893 0x7f286c0a2d40 WARN qtdemux qtdemux.c:3101:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 2
Redistribute latency...
0:00:00.104990328 21893 0x55aca38a1590 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool0> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
Redistribute latency...
0:00:00.105078458 21893 0x55aca38a1590 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool1> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.105139905 21893 0x55aca38a1590 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool2> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.105213075 21893 0x7f2864008630 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool2> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.105270679 21893 0x7f2864008630 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool2> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
Redistribute latency...
0:00:00.105394611 21893 0x55aca38a1590 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool3> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.105454194 21893 0x7f2864008630 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool3> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.105485546 21893 0x7f2864008630 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool3> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.126799907 21893 0x55aca38a14a0 FIXME basesink gstbasesink.c:3386:gst_base_sink_default_event:<filesink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
0:00:00.127131802 21893 0x55aca38a14a0 FIXME aggregator gstaggregator.c:1365:gst_aggregator_aggregate_func:<mux> Subclass should call gst_aggregator_selected_samples() from its aggregate implementation.
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:01.129732883 21893 0x55aca38a1590 WARN default gstmsdkvideomemory.c:207:gst_video_meta_map_msdk_memory: The surface is not allocated
0:00:01.129788717 21893 0x55aca38a1590 ERROR default video-frame.c:168:gst_video_frame_map_id: failed to map video frame plane 0
0:00:01.129819870 21893 0x55aca38a1590 WARN msdkenc gstmsdkenc.c:1672:gst_msdkenc_handle_frame:<msdkh264enc0> Failed to map frame
0:00:01.470362790 21893 0x55aca38a1540 WARN audioencoder gstaudioencoder.c:981:gst_audio_encoder_finish_frame:<avenc_aac0> Can't copy metadata because input buffer disappeared
Got EOS from element "pipeline0".
Execution ended after 0:00:01.341743595
Setting pipeline to NULL ...
Freeing pipeline ...
Also attaching the level 5 logs for a similar pipeline for filesink
LD_LIBRARY_PATH=/usr/local/lib:/opt/intel/mediasdk/lib gst-launch-1.0 -v --gst-debug-no-color=1 dvbsrc modulation=5 adapter=0 frequency=147000000 delsys=dvb-c-b ! decodebin name=demux demux. ! queue ! audioresample ! audioconvert ! avenc_aac bitrate = 128000 ! queue ! mpegtsmux bitrate=3000000 alignment=7 name=mux ! filesink location=dvb_msdk_out_210308.mp4 demux. ! queue ! msdkh264enc i-frames=60 b-frames=4 bitrate=1200 frame-packing=-1 ! video/x-h264,stream-format=byte-stream,profile=main ! mux.