AnsweredAssumed Answered

Preview property in mfw_v4lsrc

Question asked by Tarak Patel on Oct 22, 2013
Latest reply on Oct 22, 2013 by Leonardo Sandoval Gonzalez

Trying to use preview property in mfw_v4lsrc.

 

I have gstreamer0.10.36 and related codecs with freescale plugin gst-fsl-plugins2.0.3 and IMX_MMCODECS_11_09 for imx53.

 

When i fire the following gstreamer pipeline. I do get the preview as i expected but when i kill the pipeline the preview still remains and does not destroy as expected.

 

 

gst-launch -e -v --gst-debug-level=3 \

        mfw_v4lsrc capture-mode=3 capture-width=640 capture-height=480 sensor-height=640 sensor-width=480 preview=true preview-top=100 preview-left=50 preview-width=200 preview-height=200 ! \

        mfw_ipucsc ! \

        "video/x-raw-yuv,format=(fourcc)I420,width=$WIDTH,height=$HEIGHT,framerate=(fraction)90000/3000" ! \

        queue max-size-buffers=1000 ! \

        mfw_vpuencoder codec-type=2 ! \

        queue max-size-buffers=1000 ! \

        rtph264pay config-interval=5 pt=113 mtu=1444 ! \

        udpsink port=5000

 

One more thing I have used same pipeline with bg=true as below, able to see preview but as soon as my another pipeling for the sink runs but videos gets merge togather but i can able to kill the preview as well as other video.

 

gst-launch -e -v --gst-debug-level=3 \

        mfw_v4lsrc capture-mode=3 capture-width=640 capture-height=480 sensor-height=640 sensor-width=480 preview=true preview-top=100 preview-left=50 preview-width=200 preview-height=200 bg=true ! \

        mfw_ipucsc ! \

        "video/x-raw-yuv,format=(fourcc)I420,width=$WIDTH,height=$HEIGHT,framerate=(fraction)90000/3000" ! \

        queue max-size-buffers=1000 ! \

        mfw_vpuencoder codec-type=2 ! \

        queue max-size-buffers=1000 ! \

        rtph264pay config-interval=5 pt=113 mtu=1444 ! \

        udpsink port=5000

 

I cannot use mfw_v4lsink and create another pipeline for the preview mechanism as i am using mfw_v4lsrc and mfw_v4lsink at the same time for different purpose. So it will be 2 videos running in same display. Kind of PIP. I dont want to use mfw_isink as it is slow.

 

I have searched the community and no one has encounter similar problem.

 

Thanks,

Tarak Patel

Outcomes