DeepStream stopped working after several seconds while using webcam

1.Can deepstream-test1 work normally?

2.Have you changed the code or configuration file? Can you post log after GST_DEBUG=3 deepstream-app -c deepstream_app_config.txt?

Maybe you can refer this FAQ about webcam.