restreamer icon indicating copy to clipboard operation
restreamer copied to clipboard

Not able to pull camera signal via udp transport

Open krischan941 opened this issue 2 years ago • 2 comments

Describe the bug Currently testing new stream setup with Restreamer 2.4.2 on Raspberry Pi 4, 8gb. Camera is a Hikvision DS-2DE7A432IW-AEB Pulling RTSP-stream via tcp works fine, via udp transport it doesn't. I attach the process details.

To Reproduce Steps to reproduce the behavior:

  1. Setup a RTSP network source in Restreamer
  2. Use UDP transport
  3. Save settings and connect to camera
  4. See error

I could reproduce it everytime so far.

Desktop (please complete the following information):

krischan941 avatar Jan 08 '23 11:01 krischan941

Nevermind, it were network issues. Sorry for the noise.

krischan941 avatar Jan 08 '23 12:01 krischan941

I need to reopen, it isn't a network issue. Constantly when trying to pull the rtsp-stream via udp it fails. Occasionally it connects but mostly after several unsuccessful connection attempts. In contrast, when using tcp it connects instantly without problems. I attach some more process details.

I remember when tinkering with plain ffmpeg v5 last year, I had similar errors using udp which I hadn't with ffmpeg 4. I could solve this by adding "-ss 00:00:01" to the ffmpeg command. So something like ffmpeg -thread_queue_size 1024 -ss 00:00:01 -rtsp_transport udp -i rtsp://url ...

process_details3.txt process_details4.txt

krischan941 avatar Feb 03 '23 20:02 krischan941