Not able to play 2 gstreamer video pipeline simultaniously

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Not able to play 2 gstreamer video pipeline simultaniously

750 Views
arunkumar_rajag
Contributor III

Hi,

We are trying to play 2 videos simultaneously. But when trying to start second video, pipeline getting exited. And individually 2 videos are playing. so there is no issue with video files.

Gstreamer version gstreamer-0.10.36

Software - 4.14.98 kernel and yocto release. SOC - imx8dx.

Please find the below pipelines.

gst-launch-1.0 filesrc location=1.mp4 ! decodebin ! imxvideoconvert_g2d ! waylandsink window-width=1280 window-height=720 &
GST_DEBUG=3 gst-launch-1.0 filesrc location=2.mp4 ! decodebin ! imxvideoconvert_g2d ! waylandsink window-width=1280 window-height=720 

Plese find the log when start to play 2 video after 1st video started.

--------------------------------------------------------------------------------------------------------------------------------

0:00:00.080984625 19163 0x212962c0 WARN basesrc gstbasesrc.c:3583:gst_base_src_start_complete:<filesrc0> pad not activated yet
Pipeline is PREROLLING ...

====== AIUR: 4.5.2 build on Apr 9 2021 08:16:32. ======
Core: MPEG4PARSER_06.16.03 build on Oct 16 2019 06:53:57
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm_elinux.so.3.2
------------------------
Track 00 [video_0] Enabled
Duration: 0:00:30.033333000
Language: und
Mime:
video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, codec_data=(buffer)01640028ffe1001e67640028acd940780227e5c05a808080a0000003002000000781e30632c001000568e93b2c8bfdf8f800
------------------------
------------------------
Track 01 [audio_0] Enabled
Duration: 0:00:30.526666000
Language: und
Mime:
audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)0, stream-format=(string)raw, codec_data=(buffer)1190
------------------------

====== BEEP: 4.5.2 build on Apr 9 2021 08:16:35. ======
Core: AAC decoder Wrapper build on Dec 7 2017 18:13:51
file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm_elinux.so.3
CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_ARMV8 build on Sep 20 2017 15:02:50.
0:00:00.171260500 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3285:aiurdemux_send_stream_newsegment: Pad video: Send newseg 0:00:00.000000000 first buffer 0:00:00.000000000
0:00:00.175270375 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3285:aiurdemux_send_stream_newsegment: Pad audio: Send newseg 0:00:00.000000000 first buffer 0:00:00.000000000
0:00:00.206987875 19163 0xffff7c004cf0 WARN v4l2 gstv4l2object.c:2022:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.207097125 19163 0xffff7c004cf0 WARN v4l2 gstv4l2object.c:2022:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.207392875 19163 0xffff7c004cf0 WARN v4l2 gstv4l2object.c:4394:gst_v4l2_object_probe_caps:<v4l2h264dec0:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument
0:00:00.207470250 19163 0xffff7c004cf0 WARN v4l2 gstv4l2object.c:2022:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.20751[ 896.850084] vpu-b0 2c000000.vpu_decoder: dma_alloc_coherent of size 1572864 failed
3500 19163 0xffff7c004cf0 WARN v4l2 gstv4l2object.c:2022:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.255881250 19163 0xffff80067000 WARN v4l2 gstv4l2object.c:4394:gst_v4l2_object_probe_caps:<v4l2h264dec0:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument
0:00:00.256020750 19163 0xffff80067000 WARN v4l2 gstv4l2object.c:2022:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.256060125 19163 0xffff80067000 WARN v4l2 gstv4l2object.c:2022:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.259295375 19163 0xffff80067000 FIXME basesink gstbasesink.c:3145:gst_base_sink_default_event:<waylandsink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
0:00:00.259622250 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.261061000 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.263343125 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.263720125 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.263815500 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.264783000 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.265712125 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.266676875 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
Redistribute latency...
0:00:00.358022375 19163 0xffff80067000 WARN v4l2bufferpool gstv4l2bufferpool.c:794:gst_v4l2_buffer_pool_start:<v4l2h264dec0:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:00:00.360068625 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.362369000 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.365883625 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.367946125 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.368710875 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.376246000 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.377042875 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.381617625 19163 0xffff80067000 ERROR waylandsink wlwindow.c:143:gst_wl_window_new_internal: Ivi surface created with Id:108
0:00:00.381894625 19163 0xffff80067000 WARN waylandsink wlwindow.c:183:gst_wl_window_new_internal: init surface_state fail, fallback to scale=1 fullscreen (1280x448)
layer-add-surfaces: surface (108) created
layer-add-surfaces: surface (108) configured with:
dst region: x:0 y:0 w:1280 h:720
src region: x:0 y:0 w:1280 h:720
visibility: TRUE
added to layer (1000)
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
layer-add-surfaces: surface (108) configured with:
dst region: x:0 y:0 w:1280 h:720
src region: x:0 y:0 w:1280 h:720
visibility: TRUE
added to layer (1000)
0:00:00.734441250 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.734605125 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad audio push error type -1
0:00:00.735205375 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:3421:aiurdemux_push_pad_buffer: Pad video push error type -5
0:00:00.735251500 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:1021:aiurdemux_pull_task: pausing task, reason error

0:00:00.735313375 19163 0xffff84047140 WARN aiurdemux aiurdemux.c:1028:aiurdemux_pull_task:<aiurdemux0> error: streaming stopped, reason error, state 3
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAiurDemux:aiurdemux0: GStreamer encountered a general stream error.
Additional debug info:
../../../git/plugins/aiurdemux/aiurdemux.c(1028): aiurdemux_pull_task (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAiurDemux:aiurdemux0:
streaming stopped, reason error, state 3
Execution ended after 0:00:00.011328875
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Total showed frames (2), playing for (0:00:00.012499875), fps (160.002).
Freeing pipeline ...
layer-add-surfaces: surface (108) destroyed

-------------------------------------------------------------------------------------------------------------------------

Suspect is

0:00:00.20751[ 896.850084] vpu-b0 2c000000.vpu_decoder: dma_alloc_coherent of size 1572864 failed

if suspect is correct, then how much memory do we need to allocate? 1572864 how it is calculated. 

if suspect is not correct, please help us to solve this issue.

Thanks,

Arunkumar Rajagopal

0 Kudos
Reply
0 Replies