platform: imx6q sabresd evk board
software: L3.0.35_4.1.0
i use gst to record from mipi camera (0v5640):
gst-launch mfw_v4lsrc fps-n=30 capture-mode=0 device=/dev/video1 ! queue ! vpuenc codec=6 ! matroskamux ! filesink location=mipi.mkv sync=false &
gst start record, but after some time, about 15 minutes, gst aborted with these error log: /****************************************************************************************************
ERROR: from element /GstPipeline:pipeline0/MFWGstV4LSrc:mfwgstv4lsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2582): gst_base_src_loop (): /GstPipeline:pipeline0/MFWGstV4LSrc:mfwgstv4lsrc0:
streaming task paused, reason error (-5)
Execution ended after 31058324004 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
[1]+ Done gst-launch mfw_v4lsrc fps-n=30 capture-mode=0 device=/dev/video1 ! queue ! vpuenc codec=6 ! matroskamux ! filesink location=mipi.mkv sync=false
/****************************************************************************************************
i try to see the size of ouput:
du -sh mipi.mkv ---------- 40.0M mipi.mkv
And yocto-3.10.17_1.0.0 bsp has this problem too.
And a step further, i test this command:
gst-launch mfw_v4lsrc fps-n=30 capture-mode=0 device=/dev/video1 ! queue ! vpuenc codec=6 ! matroskamux ! fakesink sync=false &
it's ok even after 30 minutes.
can someone give me suggestion about this gst problem?
we need to do a long time camera recording. thanks
Please try using queue-size option of mfw_v4lsrc element.
$ gst-launch mfw_v4lsrc fps-n=30 capture-mode=0 device=/dev/video1 queue-size= 10 ! queue ! vpuenc codec=6 ! matroskamux ! filesink location=mipi.mkv sync=false
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------