Error in gstreamer using amlvenc

I have khadas vim3L board having ubuntu 20.04 (linux 4.9). i have webcam logitech c920 pro . which gives mjpeg and yuyv422 output.

I am getting error by running command

gst-launch-1.0 v4l2src device=/dev/video0 ! “image/jpeg,framerate=30/1,width=1920,height=1080” ! jpegparse ! jpegdec ! queue ! amlvenc ! fakesink

Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device ‘/dev/video0’ failed during initialization
Additional debug info:
gstv4l2object.c(3758): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to TRY_FMT failed for MJPG @ 1920x1080: Input/output error
Execution ended after 0:00:05.244397640
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

are there any solution for this ?

Hi @tushar

The gstreamer plugin is not usable, please use the encode libraries.

Hi @numbqq

using following command webcam run successfully and i can see on display.
gst-launch-1.0 v4l2src device=/dev/video0 ! amlvdec ! amlvsink sync=false

but now i want to stream webcam using gstreamer are there any way to stream it ?

Video decode plugin works. but encode plugin doesnt.