hi all,
I am using i.MX535qsb board in that i interface a camera application. i want to capture a jpeg image from the gstreamer command line i enabled the jpegenc in the gst plugin, when i give the following command to capture the jpeg image its not working i had taken this command form the document GSTREAMER i.MX6 image capture
COMMAND:
gst-launch mfw_v4lsrc num-buffers=1 ! jpegenc ! filesink location=sample.jpeg |
ERROR:
WARNING: erroneous pipeline: could not link mfwgstv4lsrc0 to jpegenc0
Thanks
shan
解決済! 解決策の投稿を見る。
jackmao Jun 16, 2013 6:52 PM (in response to imxcommunityscout)
Hi,
Could you refer to this command line " gst-launch -v -v4l2src device=/dev/video0 ! video/x-raw-yuv,width=320,height=240 ! mfw_ipucsc ! mfw_vpuencoder width=320 height=240 codec-type=std_mjpg ! rtpjpegpay ! udpsink host=192.168.255.1 auto-multicast=true port=5000 sync=false"
I think the command is like the following.
gst-launch -v -v4l2src device=/dev/video0 ! video/x-raw-yuv,width=320,height=240 ! mfw_ipucsc ! jpegenc ! filesink location=sample.jpeg
Jack
Caps are not being negotiated. Please add -v to your pipeline and send the log.
Leo
hi leo,
Here's the output
LOG:
root@freescale ~$ gst-launch -v mfw_v4lsrc num-buffers=1 ! jpegenc ! filesink location=sample.jpeg
(gst-plugin-scanner:2225): GLib-GObject-WARNING **: cannot register existing type `GstRtpSsrcDemux'
(gst-plugin-scanner:2225): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_element_register: assertion `g_type_is_a (type, GST_TYPE_ELEMENT)' failed
(gst-plugin-scanner:2225): GLib-GObject-WARNING **: cannot register existing type `GstRTPMux'
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_element_register: assertion `g_type_is_a (type, GST_TYPE_ELEMENT)' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
(gst-plugin-scanner:2225): GStreamer-CRITICAL **: gst_caps_ref: assertion `GST_CAPS_REFCOUNT_VALUE (caps) > 0' failed
MAX resolution 800x480
MFW_GST_V4LSRC_PLUGIN 2.0.3 build on May 29 2013 03:39:18.
WARNING: erroneous pipeline: could not link mfwgstv4lsrc0 to jpegenc0
root@freescale ~$
Thanks
shan
Hi Shan,
No idea what going on :smileysad: Please try the following pipelines (gl = gst-launch) and let me know the results
1. Check if the source works: gl mfw_v4lsrc ! fakesink
2. Downscale the resolution: gl mfw_v4lsrc ! videoscale ! 'width=640,height=480' ! jpegenc ! filesink
3. Enable full debugging, adding --gst-debug=*src*:5,*enc*:5 (attach this log)
Leo
jackmao Jun 16, 2013 6:52 PM (in response to imxcommunityscout)
Hi,
Could you refer to this command line " gst-launch -v -v4l2src device=/dev/video0 ! video/x-raw-yuv,width=320,height=240 ! mfw_ipucsc ! mfw_vpuencoder width=320 height=240 codec-type=std_mjpg ! rtpjpegpay ! udpsink host=192.168.255.1 auto-multicast=true port=5000 sync=false"
I think the command is like the following.
gst-launch -v -v4l2src device=/dev/video0 ! video/x-raw-yuv,width=320,height=240 ! mfw_ipucsc ! jpegenc ! filesink location=sample.jpeg
Jack