[i.mx6q SABRE ] Questions about video encoding form a camera with gstreamer 0.10

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

[i.mx6q SABRE ] Questions about video encoding form a camera with gstreamer 0.10

跳至解决方案
1,931 次查看
jimmysu
Contributor II

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.


Q1.  Does freescale gst-plugins support mp4mux ?

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

标签 (1)
0 项奖励
回复
1 解答
791 次查看
LeonardoSandova
Specialist I

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.

在原帖中查看解决方案

0 项奖励
回复
1 回复
792 次查看
LeonardoSandova
Specialist I

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.

0 项奖励
回复