nvv4l2decoder not working

I have the following pipeline.
appsrc(jpeg rgb)->jpegparse->nvv4l2decoder->nvstreammux->nvinfer->appsink but it fails as per the Topic. Below is the logs i see.

Opening in BLOCKING MODE
0:00:00.179825436 15751 0x7f203320c0 WARN v4l2 gstv4l2object.c:4408:gst_v4l2_object_probe_caps:nvv4l2decoder:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:00.179916115 15751 0x7f203320c0 WARN v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x7f2032c3c0 Failed to determine interlace mode
0:00:00.180885356 15751 0x7f20327230 FIXME default gstutils.c:3981:gst_pad_create_stream_id_internal:source:src Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Pipeline state changed from NULL to READY:
Pipeline state changed from READY to PAUSED:
ApSrc needs data!!!
Pushing Data.
Pushed buffer to appsrc
NvMMLiteBlockCreate : Block : BlockType = 256
[JPEG Decode] BeginSequence Display WidthxHeight 720x576
0:00:01.135323702 15751 0x7f20327230 WARN v4l2 gstv4l2object.c:4408:gst_v4l2_object_probe_caps:nvv4l2decoder:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:01.135383912 15751 0x7f20327230 WARN v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x7f2032c3c0 Failed to determine interlace mode
0:00:01.139541195 15751 0x7f20327230 WARN v4l2videodec gstv4l2videodec.c:1433:gst_v4l2_video_dec_decide_allocation: Duration invalid, not setting latency
0:00:01.144285419 15751 0x7f20327230 WARN v4l2bufferpool gstv4l2bufferpool.c:1054:gst_v4l2_buffer_pool_start:nvv4l2decoder:pool:src Uncertain or not enough buffers, enabling copy threshold
ApSrc needs data!!!
0:00:01.153072548 15751 0x7efc004540 WARN v4l2bufferpool gstv4l2bufferpool.c:1518:gst_v4l2_buffer_pool_dqbuf:nvv4l2decoder:pool:src Driver should never set v4l2_buffer.field to ANY
0:00:01.153296928 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.153351877 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
***** Got Buffer ******
0:00:01.153390836 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.153464588 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.153502766 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
Pipeline state changed from PAUSED to PLAYING:
0:00:01.157412387 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.157469368 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.157542078 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.157576922 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.157608277 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.160802778 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.160854237 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.160892624 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.160926270 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.160957260 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.164195772 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.164239159 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.164270982 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers
0:00:01.164301608 15751 0x7efc004540 WARN v4l2videodec gstv4l2videodec.c:1026:gst_v4l2_video_dec_loop: Decoder is producing too many buffers

Looking at the logs.
1.) Failed to probe pixel aspect ratio with VIDIOC_CROPCAP
Do I have to load it manually.
2.) Failed to determine interlace mode
Should I specify
3.) Decoder is producing too many buffers
Well, I just dont get this one.

Hi,
Please try nvjpegdec. Below is a relevant post:
https://devtalk.nvidia.com/default/topic/1064389/deepstream-sdk/how-to-hardware-accelerate-mjpeg-decoding-of-frames-from-webcam-using-gst/post/5390181/#5390181

Hi,
https://devtalk.nvidia.com/default/topic/1066248/deepstream-sdk/cannot-link-streammux-to-capsfilter-and-nvinfer/post/5400944/#5400944
It seems like you have figured out a solution?