Hi,
we want to record a mp4 file while preview(overlay) is running.
We have a application which activates the overlay an records a mp4 file on user input.
The error can also be reproduced using gst-launch. (gst-fsl-plugin-2.0.3)
With the gstreamer pipe
gst-launch mfw_v4lsrc capture-width=640 capture-height=480 num-buffers=150 ! mfw_ipucsc ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1,format=(fourcc)I420' ! queue ! mfw_vpuencoder codec_type=std_mpeg4 qp=5 ! 'video/mpeg,mpegversion=4,framerate=30/1,width=640,height=480' ! mp4mux ! filesink location=test.mp4
I get this output and it works.
MFW_GST_V4LSRC_PLUGIN 2.0.3 build on Jun 7 2012 14:48:18.
IPU_CSC_CORE_LIBRARY_VERSION_INFOR_01.00.
MFW_GST_IPU_CSC_PLUGIN 2.0.3 build on Jun 7 2012 14:47:53.
Setting pipeline to PAUSED ...
[INFO] Product Info: i.MX53
VPU Version: firmware 1.4.48; libvpu: 5.3.2
MFW_GST_VPU_ENCODER_PLUGIN 2.0.3 build on Jun 7 2012 14:47:56.
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
mfw_gst_ipu_csc_get_unit_size:size=614400
mfw_gst_ipu_csc_get_unit_size:size=460800
Got EOS from element ""pipeline0"".
Execution ended after 20664847635 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
With preview=true
gst-launch mfw_v4lsrc capture-width=640 capture-height=480 num-buffers=150 preview=true ! mfw_ipucsc ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1,format=(fourcc)I420' ! queue ! mfw_vpuencoder codec_type=std_mpeg4 qp=5 ! 'video/mpeg,mpegversion=4,framerate=30/1,width=640,height=480' ! mp4mux ! filesink location=test.mp4
I get
MFW_GST_V4LSRC_PLUGIN 2.0.3 build on Jun 7 2012 14:48:18.
IPU_CSC_CORE_LIBRARY_VERSION_INFOR_01.00.
MFW_GST_IPU_CSC_PLUGIN 2.0.3 build on Jun 7 2012 14:47:53.
Setting pipeline to PAUSED ...
[INFO] Product Info: i.MX53
VPU Version: firmware 1.4.48; libvpu: 5.3.2
MFW_GST_VPU_ENCODER_PLUGIN 2.0.3 build on Jun 7 2012 14:47:56.
[ 444.360024] mxc_ipu mxc_ipu: IPU Error - IPU_INT_STAT_5 = 0x00200000
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 459.363352] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
ERROR: from element /GstPipeline:pipeline0/MFWGstV4LSrc:mfwgstv4lsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:pipeline0/MFWGstV4LSrc:mfwgstv4lsrc0:
streaming task paused, reason error (-5)
Execution ended after 10001064875 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Solved! Go to Solution.
Seems you just added a "preview=true" is not enough.
Please see this link for your reference.
< https://community.freescale.com/message/292568#292568 >
Seems you just added a "preview=true" is not enough.
Please see this link for your reference.
< https://community.freescale.com/message/292568#292568 >