I was unable to capture the stream from my customization camera with deepstreamv4.0.2 and gst-luanch-1.0

I had change the deepstream_sdk_v4.0_jetson\sources\apps\apps-common\src\deepstream_source_bin.c file code to the pipeline which it suggested like as jhchris713 post# 7 from How to change source pixel format from YUYV to MJPG.
I rebuilt it which you suggested like as post# 9 from How to change source pixel format from YUYV to MJPG.

my computer environment:
Jetson Nano
deepstream_sdk_v4.0.2

my camera information:

ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'MJPG' (compressed)
        Name        : Motion-JPEG
                Size: Discrete 640x400
                        Interval: Discrete 0.005s (210.000 fps)
                Size: Discrete 320x240
                        Interval: Discrete 0.005s (210.000 fps)
                Size: Discrete 640x360
                        Interval: Discrete 0.005s (210.000 fps)

        Index       : 1
        Type        : Video Capture
        Pixel Format: 'MJPG' (compressed)
        Name        : Motion-JPEG
                Size: Discrete 640x400
                        Interval: Discrete 0.005s (210.000 fps)
                Size: Discrete 320x240
                        Interval: Discrete 0.005s (210.000 fps)
                Size: Discrete 640x360
                        Interval: Discrete 0.005s (210.000 fps)

unexpectedly, I had error with deepstream-app like below:

dlinano@jetson-nano:~/deepstream_sdk_v4.0.2_jetson$ deepstream-app -c samples/configs/deepstream-app/source1_usb_dec_infer_resnet_int8.txt

(deepstream-app:12143): GStreamer-WARNING **: 00:01:31.744: Name 'src_cap_filter' is not unique in bin 'src_sub_bin0', not adding
Creating LL OSD context new
0:00:01.431210334 12143     0x27feab00 WARN                 nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:useEngineFile(): Failed to read from model engine file
0:00:01.431304350 12143     0x27feab00 INFO                 nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:initialize(): Trying to create engine from model files
0:00:01.431603588 12143     0x27feab00 WARN                 nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:generateTRTModel(): INT8 not supported by platform. Trying FP16 mode.
0:01:52.945888838 12143     0x27feab00 INFO                 nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:generateTRTModel(): Storing the serialized cuda engine to file at /home/dlinano/deepstream_sdk_v4.0.2_jetson/samples/models/Primary_Detector/resnet10.caffemodel_b1_fp16.engine

Runtime commands:
        h: Print this help
        q: Quit

        p: Pause
        r: Resume

NOTE: To expand a source in the 2D tiled display and view object details, left-click on the source.
      To go back to the tiled display, right-click anywhere on the window.


**PERF: FPS 0 (Avg)
**PERF: 0.00 (0.00)
** INFO: <bus_callback:189>: Pipeline ready

** INFO: <bus_callback:175>: Pipeline running

ERROR from src_elem: Internal data stream error.
Debug info: gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstV4l2Src:src_elem:
streaming stopped, reason not-negotiated (-4)
Quitting
App run failed

And I had the error messages with execute the gst-launch-1.0 command like as below:

dlinano@jetson-nano:~$ gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=320,height=240,framerate=60/1 ! videoconvert ! video/x-raw,format=NV12 ! nvvideoconvert ! 'video/x-raw(memory:NVMM)' ! fpsdisplaysink text-overlay=0 video-sink=nvoverlaysink -v
 output:   
Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0: sync = true
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
    Additional debug info:
    gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    streaming stopped, reason not-negotiated (-4)
    ERROR: pipeline doesn't want to preroll.
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    Setting pipeline to NULL ...
    Freeing pipeline ...

Any advise for me is much appreciated. Thanks!

Hi,
We may not be able to support source in 210fps on Jetson Nano. Do you have other camera to run in 60fps or 30fps?

yea, I can working in 30fps with logi c270 camera!

thank you for your advise reply my questions is appreciative.