JPEG IMAGE COMMAND LINE ERROR

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

JPEG IMAGE COMMAND LINE ERROR

Jump to solution
1,627 Views
shanmugamsundar
Contributor IV

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

Labels (3)
0 Kudos
1 Solution
999 Views
karina_valencia
NXP Apps Support
NXP Apps Support

Employee

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

View solution in original post

0 Kudos
5 Replies
999 Views
LeonardoSandova
Specialist I

Caps are not being negotiated. Please add -v to your pipeline and send the log.

Leo

0 Kudos
999 Views
shanmugamsundar
Contributor IV

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

0 Kudos
999 Views
LeonardoSandova
Specialist I

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

0 Kudos
999 Views
shanmugamsundar
Contributor IV

hi leo

herewith i have attached the full debug message for the command

gst-launch -v mfw_v4lsrc num-buffers=1 !  jpegenc ! filesink location=sample.jpeg

Thanks

shan

0 Kudos
1,000 Views
karina_valencia
NXP Apps Support
NXP Apps Support

Employee

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

0 Kudos