GStreamer - Internal data flow error ?

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

GStreamer - Internal data flow error ?

Jump to solution
3,496 Views
toanjunifer
Senior Contributor I

Hi,

I'm using iMX6S and OV5645 camera and I trying to record dual video with HD resolution but I got this error:

ERROR: from element /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0: Internal data flow error.
Additional debug info:
/home/pico/workspace2/yocto/yocto_2.0_tn/build-x11-fairy/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.6.0-r0/gstreamer-1.6.0/libs/gst/base/gstbasesrc.c(2943): gst_base_src_loop (): /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0:
streaming task paused, reason not-negotiated (-4)

After that, I reduce resolution is just 640x480 and it's working good. What is the reason for this case ? And How can I fix it ?

Thank you so much,

Toan

Labels (1)
1 Solution
3,391 Views
igorpadykov
NXP Employee
NXP Employee

Hi Toan

reason may be insufficent memory bandwidth, one can test it with:

IMX6 Memory Bandwidth Usage | iMX6 Board Memory 

mmdc\test - imx-test - i.MX Driver Test Application Software 

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

View solution in original post

4 Replies
3,391 Views
toanjunifer
Senior Contributor I

Thank you so much for your response !

0 Kudos
3,392 Views
igorpadykov
NXP Employee
NXP Employee

Hi Toan

reason may be insufficent memory bandwidth, one can test it with:

IMX6 Memory Bandwidth Usage | iMX6 Board Memory 

mmdc\test - imx-test - i.MX Driver Test Application Software 

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

3,391 Views
toanjunifer
Senior Contributor I

Thank you for your supply. It's a good tool to check VPU. I modify my code and finally, I can do it. But When I check FPS is decrease from 15 to 6. My setup is 15. And I also check VPU usage and here:

i.MX6DL detected.
MMDC VPU

MMDC new Profiling results:
***********************
Measure time: 500ms
Total cycles count: 198030942
Busy cycles count: 119997582
Read accesses count: 528408
Write accesses count: 282512
Read bytes count: 15751008
Write bytes count: 5832608
Avg. Read burst size: 29
Avg. Write burst size: 20
Read: 30.04 MB/s / Write: 11.12 MB/s Total: 41.17 MB/s
Utilization: 2%
Overall Bus Load: 60%
Bytes Access: 26

Overall bus is only 60% and FPS is 6. Why bus isn't increase more ? I don't understand. 

0 Kudos
3,391 Views
igorpadykov
NXP Employee
NXP Employee

one can check below thread shedding some light on vpu performance requirements

https://community.nxp.com/message/342393#342393