How to run config file and v4l2scr device using gst-launch?

Is there any tutorial on how to run v4l2scr device together with the config file by using gst-launch-1.0?

I run this code.

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=640, height=480, framerate=30/1 ! nvvideoconvert ! nvinfer config-file-path= /home/deepstream/Desktop/TA/config_infer_primary.txt batch-size=1 unique-id=1  ! nvdsosd ! nvmultistreamtiler! nvegltransform ! appsink

But I end up with this error.

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=640, height=480, framerate=30/1 ! nvvideoconvert ! m.sink_0 nvstreammux name=m batch-size=1 width=$((640)) height=$((480)) ! nvinfer config-file-path= /home/deepstream/Desktop/TA/config_infer_primary.txt batch-size=1 unique-id=1  ! nvdsosd ! nvmultistreamtiler! nvegltransform ! appsink
Setting pipeline to PAUSED ...
Creating LL OSD context new
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
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)
Execution ended after 0:00:00.000798248
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Do you have any idea?

Hi,
We suggest run deepstream-app. There is existing implementation in source group:
https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream_Development_Guide%2Fdeepstream_app_config.3.2.html%23wwpID0E0QB0HA

Please modify the config file ot run ‘type=1’ and try.