Intel® Desktop Boards
Peer-to-peer support only
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
11448 Discussions

gtreamer with dvbsrc and intel msdk

vandanachadha
Novice
282 Views

We are using an intel skylake thru gstreamer.

it runs fine when using a videotestsrc. However, I get an error if i am using a TV Tuner card as the input (dvbsrc). i get an out of memory error if i use it with a file sourec also.

 

gstreamer pipeline for filesrc

gst-launch-1.0 -v --gst-debug-no-color=1 filesrc location=~/sample_videos/big_buck_bunny_720p_2mb.mp4 ! decodebin name=demux demux. ! queue ! audioresample ! audioconvert ! avenc_aac bitrate = 128000 ! queue ! mpegtsmux bitrate=3000000 alignment=7 name=mux ! filesink location=file_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.

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
Pipeline is PREROLLING ...
Got context from element 'msdkh264enc0': gst.msdk.Context=context, gst.msdk.Context=(GstMsdkContext)"\(GstMsdkContext\)\ msdkcontext1";
/GstPipeline:pipeline0/GstDecodeBin:demux/GstTypeFindElement:typefind.GstPad:src: caps = video/quicktime, variant=(string)iso
/GstPipeline:pipeline0/GstDecodeBin:demux/GstTypeFindElement:typefind.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:demux/GstMultiQueue:multiqueue0.GstMultiQueuePad:src_0: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)main, codec_data=(buffer)014d401fffe10017674d401fda014016ec0440000003004000000c83c60ca801000468ef3c80, width=(int)1280, height=(int)720, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin:demux/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)main, codec_data=(buffer)014d401fffe10017674d401fda014016ec0440000003004000000c83c60ca801000468ef3c80, width=(int)1280, height=(int)720, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
Redistribute latency...
/GstPipeline:pipeline0/GstDecodeBin:demux/avdec_h264:avdec_h264-0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)main, codec_data=(buffer)014d401fffe10017674d401fda014016ec0440000003004000000c83c60ca801000468ef3c80, width=(int)1280, height=(int)720, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
/GstPipeline:pipeline0/GstDecodeBin:demux/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)main, codec_data=(buffer)014d401fffe10017674d401fda014016ec0440000003004000000c83c60ca801000468ef3c80, width=(int)1280, height=(int)720, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
/GstPipeline:pipeline0/GstDecodeBin:demux/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)main, codec_data=(buffer)014d401fffe10017674d401fda014016ec0440000003004000000c83c60ca801000468ef3c80, width=(int)1280, height=(int)720, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
/GstPipeline:pipeline0/GstDecodeBin:demux/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)main, codec_data=(buffer)014d401fffe10017674d401fda014016ec0440000003004000000c83c60ca801000468ef3c80, width=(int)1280, height=(int)720, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin:demux/GstMultiQueue:multiqueue0.GstMultiQueuePad:src_1: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)4, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)11b0, rate=(int)48000, channels=(int)6, channel-mask=(bitmask)0x0000000000000000
/GstPipeline:pipeline0/GstDecodeBin:demux/avdec_aac:avdec_aac0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)4, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)11b0, rate=(int)48000, channels=(int)6, channel-mask=(bitmask)0x0000000000000000
/GstPipeline:pipeline0/GstDecodeBin:demux/GstAacParse:aacparse0.GstPad:src: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)4, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)11b0, rate=(int)48000, channels=(int)6, channel-mask=(bitmask)0x0000000000000000
/GstPipeline:pipeline0/GstDecodeBin:demux/GstAacParse:aacparse0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)4, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)11b0, rate=(int)48000, channels=(int)6, channel-mask=(bitmask)0x0000000000000000
/GstPipeline:pipeline0/GstDecodeBin:demux/GstMultiQueue:multiqueue0: max-size-buffers = 5
/GstPipeline:pipeline0/GstDecodeBin:demux/GstMultiQueue:multiqueue0: max-size-time = 0
/GstPipeline:pipeline0/GstDecodeBin:demux/GstMultiQueue:multiqueue0: max-size-bytes = 2097152
/GstPipeline:pipeline0/GstDecodeBin:demux/GstMultiQueue:multiqueue0.GstMultiQueuePad:sink_0: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)main, codec_data=(buffer)014d401fffe10017674d401fda014016ec0440000003004000000c83c60ca801000468ef3c80, width=(int)1280, height=(int)720, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin:demux/GstMultiQueue:multiqueue0.GstMultiQueuePad:sink_1: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)4, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)11b0, rate=(int)48000, channels=(int)6, channel-mask=(bitmask)0x0000000000000000
/GstPipeline:pipeline0/GstDecodeBin:demux/GstAacParse:aacparse0.GstPad:src: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)4, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)11b0, rate=(int)48000, channels=(int)6, channel-mask=(bitmask)0x0000000000000000
/GstPipeline:pipeline0/GstDecodeBin:demux/avdec_aac:avdec_aac0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)4, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)11b0, rate=(int)48000, channels=(int)6, channel-mask=(bitmask)0x0000000000000000
/GstPipeline:pipeline0/GstDecodeBin:demux/avdec_aac:avdec_aac0.GstPad:src: caps = audio/x-raw, format=(string)F32LE, layout=(string)non-interleaved, rate=(int)48000, channels=(int)6, channel-mask=(bitmask)0x000000000000003f
/GstPipeline:pipeline0/GstDecodeBin:demux/GstMultiQueue:multiqueue0: max-size-buffers = 5
/GstPipeline:pipeline0/GstDecodeBin:demux/GstMultiQueue:multiqueue0: max-size-time = 0
/GstPipeline:pipeline0/GstDecodeBin:demux/GstMultiQueue:multiqueue0: max-size-bytes = 2097152
/GstPipeline:pipeline0/GstDecodeBin:demux/avdec_h264:avdec_h264-0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = audio/x-raw, format=(string)F32LE, layout=(string)non-interleaved, rate=(int)48000, channels=(int)6, channel-mask=(bitmask)0x000000000000003f
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = audio/x-raw, format=(string)F32LE, layout=(string)non-interleaved, rate=(int)48000, channels=(int)6, channel-mask=(bitmask)0x000000000000003f
/GstPipeline:pipeline0/GstQueue:queue2.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstQueue:queue2.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstQueue:queue2.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, framerate=(fraction)25/1
/GstPipeline:pipeline0/avenc_aac:avenc_aac0.GstPad:src: caps = audio/mpeg, channels=(int)6, rate=(int)48000, mpegversion=(int)4, base-profile=(string)lc, framed=(boolean)true, stream-format=(string)raw, channel-mask=(bitmask)0x000000000000003f, level=(string)4, profile=(string)lc, codec_data=(buffer)11b056e500
/GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = audio/mpeg, channels=(int)6, rate=(int)48000, mpegversion=(int)4, base-profile=(string)lc, framed=(boolean)true, stream-format=(string)raw, channel-mask=(bitmask)0x000000000000003f, level=(string)4, profile=(string)lc, codec_data=(buffer)11b056e500
/GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = audio/mpeg, channels=(int)6, rate=(int)48000, mpegversion=(int)4, base-profile=(string)lc, framed=(boolean)true, stream-format=(string)raw, channel-mask=(bitmask)0x000000000000003f, level=(string)4, profile=(string)lc, codec_data=(buffer)11b056e500
/GstPipeline:pipeline0/GstMpegTsMux:mux.GstBaseTsMuxPad:sink_0: caps = audio/mpeg, channels=(int)6, rate=(int)48000, mpegversion=(int)4, base-profile=(string)lc, framed=(boolean)true, stream-format=(string)raw, channel-mask=(bitmask)0x000000000000003f, level=(string)4, profile=(string)lc, codec_data=(buffer)11b056e500
Redistribute latency...
/GstPipeline:pipeline0/GstMsdkH264Enc:msdkh264enc0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, framerate=(fraction)25/1
Redistribute latency...
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:demux/avdec_h264:avdec_h264-0: Unable to allocate memory
Additional debug info:
../subprojects/gst-libav/ext/libav/gstavviddec.c(955): gst_ffmpegviddec_get_buffer2 (): /GstPipeline:pipeline0/GstDecodeBin:demux/avdec_h264:avdec_h264-0:
The downstream pool failed to allocated buffer.
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

gstreamer pipeline for dvbsrc

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.
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 ...

The debug level 5 logs are attached.

Labels (1)
0 Kudos
0 Replies
Reply