JPEG IMAGE COMMAND LINE ERROR

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

JPEG IMAGE COMMAND LINE ERROR

ソリューションへジャンプ
2,072件の閲覧回数
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

ラベル(3)
0 件の賞賛
返信
1 解決策
1,444件の閲覧回数
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 件の賞賛
返信
5 返答(返信)
1,444件の閲覧回数
LeonardoSandova
Specialist I

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

Leo

0 件の賞賛
返信
1,444件の閲覧回数
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 件の賞賛
返信
1,444件の閲覧回数
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 件の賞賛
返信
1,444件の閲覧回数
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 件の賞賛
返信
1,445件の閲覧回数
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 件の賞賛
返信