Preview property in mfw_v4lsrc

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Preview property in mfw_v4lsrc

1,260 Views
tarakpatel
Contributor I

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

Labels (4)
0 Kudos
1 Reply

458 Views
LeonardoSandova
Specialist I

Please move this post into the iMX community. How are you killing the pipeline? 'kill -9 PID' is letal :smileyhappy:, so should use 'kill -INT PID' where PID is the process ID.

Leo