Dual Video Not working on imx6q

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

Dual Video Not working on imx6q

1,214 Views
jamalmohiuddin
Contributor III

Hi...

I have a custom SABRE SD board with LVDS and HDMI Display..

Both are on the different IPU's

LVDS0 -> IPU1_DI0

HDMI  -> IPU0_DI0

 

I am trying to achieve dual video play i..e, playing two videos at the same time , one on the LVDS and the other HDMI using gst-launch.. I can play video on both of them but not simultaneously.. Iam getting the following errors.

WARNING: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstBin:bin0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2875): gst_base_sink_is_too_late (): /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstBin:bin0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0:
There may be a timestamping problem, or this computer is too slow.
mxc_sdc_fb fb.28: timeout when waiting for flip irq
mxc_sdc_fb fb.28: timeout when waiting for flip irq
mxc_sdc_fb fb.28: timeout when waiting for flip irq
mxc_sdc_fb fb.28: timeout when waiting for flip irq
mxc_sdc_fb fb.28: timeout when waiting for flip irq
mxc_sdc_fb fb.28: timeout when waiting for flip irq
mxc_sdc_fb fb.28: timeout when waiting for flip irq
mxc_sdc_fb fb.28: timeout when waiting for flip irq
mxc_sdc_fb fb.28: timeout when waiting for flip irq
mxc_sdc_fb fb.28: timeout when waiting for flip irq
mxc_sdc_fb fb.28: timeout when waiting for flip irq

I am using the following gst commands in a script:

gst-launch playbin2 uri=file:///mnt/usb/Trailer1.mp4 flags=0x57 video-sink="imxv4l2sink device=/dev/video18

gst-launch playbin2 uri=file:///mnt/usb/Trailer1.mp4 flags=0x57 video-sink="imxv4l2sink device=/dev/video17

Please Help..

i am using bare linux, not Android..

Labels (3)
0 Kudos
3 Replies

774 Views
jamalmohiuddin
Contributor III

One more interesting Observation. I can play two videos of low quality resolution(360p) without any issue. When I shift to 480 P, there is frame losses and for 1080p the above error : memory allocation failed...

0 Kudos

774 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jamal

one can check

https://community.nxp.com/docs/DOC-93449
and sect.7.5 Overlaysink usage attached Linux Guide

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

774 Views
jamalmohiuddin
Contributor III

Performed the following steps:

U-Boot:

setenv video video=mxcfb0:dev=hdmi,1920x1080@60,if=RGB24 video=mxcfb1:dev=ldb,LDB-XGA,if=RGB24

Linux:

SINK_1="\"imxv4l2sink device=/dev/video17\""

SINK_2="\"imxv4l2sink device=/dev/video18\""

media1=file:///mnt/usb/Trailer1.mp4

media2=file:///mnt/usb/Trailer2.mp4

gst-launch playbin2 uri=$media1 video-sink=$SINK_1 playbin2 uri=$media2 video-sink=$SINK_2

No video plays on either of the screen and I get the following error:

mxc_v4l2_output v4l2_out.32: memory alloc size 3133440 failed
mxc_v4l2_output v4l2_out.32: offset invalid [offset=0x20df000]

Playing video on HDMI Screen with the following command:

gst-launch playbin2 uri=$media1 video-sink=$SINK_1

I am getting lot of the following errors:

gstbasesink.c(2875): gst_base_sink_is_too_late (): /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstBin:bin0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0:
There may be a timestamping problem, or this computer is too slow.
WARNING: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstBin:bin0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0: A lot of buffers are being dropped.

But if I add the flags parameter to the command, the video plays fine on HDMI:

 gst-launch playbin2 uri=$media1 flags=0x57 video-sink=$SINK_1

What is the significance of flags field?

I then tried the following command: gst-launch playbin2 uri=$media1 flags=0x57 video-sink=$SINK_1 playbin2 uri=$media2 flags=0x57 video-sink=$SINK_2

and the same problem :

gstbasesink.c(2875): gst_base_sink_is_too_late (): /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstBin:bin0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0:
There may be a timestamping problem, or this computer is too slow.
WARNING: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstBin:bin0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0: A lot of buffers are being dropped.

Am I missing something....

0 Kudos