nwesem / mtcnn_facenet_cpp_tensorRT

Face Recognition on NVIDIA Jetson (Nano) using TensorRT
GNU General Public License v3.0
200 stars 72 forks source link

RTMP reconnect #42

Open apoorvmishra28 opened 2 years ago

apoorvmishra28 commented 2 years ago

Hi, I am using facenet with TensorRT for face recognition on jetson nano everything is working fine until my rtmp server restarts whenever it restarts I got this error on nano "rtmpsink could not write to resource" I tried googling how to reconnect to rtmp server if it fails but didn't get any proper solution. Any suggestions from here regarding this? I am using below pipeline

appsrc ! videoconvert ! x264enc speed-preset=ultrafast tune=zerolatency ! flvmux streamable=true ! \ rtmpsink location=rtmp://IPADDRESS:1935?pwd=2021

Thanks in advance.