Hello Mr./Mrs.
[Develop Environment]
H.W. : Freescale i.MX6q SABRE board / ov5640_camera
S.W. : L3.0.35_4.0.0_130424_Source / gstreamer-0.10.35 / gst-fsl-plugins-3.0.7
[Issue Description]
After studied disscusion on this community ; GStreamer i.MX6 Pipelines , Re: How to do video encoding (h264 .mp4) file using gstreamer in IMX6Q?
We still encounter two problems during encode video from ov5640.
It works fine if we encode video with matroskamux but we can't play video after we replaced matroskamux to mp4mux. The command as bellow:
root@freescale /$ gst-launch -v --gst-debug=2 mfw_v4lsrc fps-n=30 capture-mode=4 ! queue ! vpuenc ! mp4mux ! filesink location=output.mp4 sync=false
Q2. When we set "vpuenc codec=6" for H.264 encoding it will interrupt after half minutes. How to fix this error ?
[Error Log]
0:00:35.031735337 2906 0xd17d0 WARN mfw_v4lsrc mfw_gst_v4lsrc.c:1210:mfw_gst_v4lsrc_buffer_new: no buffer available in pool
0:00:35.032118671 2906 0xd17d0 WARN basesrc gstbasesrc.c:2582:gst_base_src_loop:<mfwgstv4lsrc0> error: Internal data flow error.
0:00:35.032296337 2906 0xd17d0 WARN basesrc gstbasesrc.c:2582:gst_base_src_loop:<mfwgstv4lsrc0> error: streaming task paused, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/MFWGstV4LSrc:mfwgstv4lsrc0: Internal data flow error.
If you need detail log or more info. please feel free to let me know.
Thanks for your time,
Jimmy Su
Solved! Go to Solution.
For Q1, try the recommendation on the link you posted Re: How to do video encoding (h264 .mp4) file using gstreamer in IMX6Q?
For Q2, you may try adding this property to the queue element: max-size-buffers=1. By the way, I was not able to reproduce Q2 issue.
For Q1, try the recommendation on the link you posted Re: How to do video encoding (h264 .mp4) file using gstreamer in IMX6Q?
For Q2, you may try adding this property to the queue element: max-size-buffers=1. By the way, I was not able to reproduce Q2 issue.