How do I modify the config file for detecting V4L2Camera live source based on yoloV3-tiny model

I’ve modify the objectDetector_Yolo/deepstream_app_config_yoloV3_tiny.txt as follow:
[source0]
enable=1
type=1
camera-width=1920
camera-height=1080
camera-fps-n=30
camera-fps-d=1
num-sources=1
gpu-id=0
cudadec-memtype=0
when I run the sample, I got an error below:

 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)
 ** INFO: <bus_callback:175>: Pipeline running

 Quitting
 App run failed

Do I miss something??

Hi,

Have you installed the prerequisite package for DeepstreamSDK?
https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream_Development_Guide%2Fdeepstream_quick_start.html%23wwpID0E0AF0HA

Thanks.

Yes. Before Installing Deepstream SDK, I have installed the pre-requisite packages

Hi,

What kind of camera do you use?
Could you share the log generated from the following command:

$ sudo apt-get install v4l-utils
$ v4l2-ctl -l

Thanks.

@AastaLLL:

Greatful for your replying

Here is the log generated from the command:

                 brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=-1
                   contrast 0x00980901 (int)    : min=0 max=100 step=1 default=38 value=39
                 saturation 0x00980902 (int)    : min=0 max=100 step=1 default=60 value=60
                        hue 0x00980903 (int)    : min=-180 max=180 step=1 default=0 value=0

white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1
gamma 0x00980910 (int) : min=100 max=500 step=1 default=440 value=439
gain 0x00980913 (int) : min=0 max=128 step=1 default=40 value=40
power_line_frequency 0x00980918 (menu) : min=0 max=2 default=1 value=1
white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=10 default=4600 value=4600 flags=inactive
sharpness 0x0098091b (int) : min=0 max=100 step=1 default=80 value=80
backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=0 value=0
exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3
exposure_absolute 0x009a0902 (int) : min=50 max=10000 step=1 default=166 value=166 flags=inactive
exposure_auto_priority 0x009a0903 (bool) : default=0 value=1
focus_absolute 0x009a090a (int) : min=0 max=1023 step=1 default=68 value=68 flags=inactive
focus_auto 0x009a090c (bool) : default=1 value=1

Thanks~~

brightness 0x00980900 (int)    : min=-64 max=64 step=1 default=0 value=-1
                       contrast 0x00980901 (int)    : min=0 max=100 step=1 default=38 value=39
                     saturation 0x00980902 (int)    : min=0 max=100 step=1 default=60 value=60
                            hue 0x00980903 (int)    : min=-180 max=180 step=1 default=0 value=0
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=100 max=500 step=1 default=440 value=439
                           gain 0x00980913 (int)    : min=0 max=128 step=1 default=40 value=40
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=1
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=10 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=100 step=1 default=80 value=80
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=0 value=0
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=50 max=10000 step=1 default=166 value=166 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                 focus_absolute 0x009a090a (int)    : min=0 max=1023 step=1 default=68 value=68 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1

Thanks~~

Hello sir:
I changed another webcam, the reference app run successfully

Thanks again for you replying~

Good to know this.

I have installed al prerequisite package for DeepstreamSDK but by running this command :

v4l2-ctl -l

This message is what showed to me:

Failed to open /dev/video0: No such file or directory

Hi,
Ensure you have inserted the webcam correctly.
If still shows this message, that means the system couldn’t recognize the device, please confirm your
device is supported by Ubuntu OS

I have an USB Camera device. I’m sure that it’s plugged in correctly. Also I have installed device driver and I could see USB camera input via MVViewer. But v4l2 could not detect device.
.