mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.82k stars 423 forks source link

Stream freeze often #240

Open azsde opened 3 years ago

azsde commented 3 years ago

Hello,

I have an issue with the current master build, the stream freeze often for 10-15 seconds, and will then resume, skipping over the 15 seconds time frame.

This is not ideal because everything that happens during these 10-15 seconds are lost.

Where can I find logs that might help me out ?

mpromonet commented 3 years ago

Hi @azsde

It may be network that drop frames. One approach is to use wireshark (or similar tools), another is to make connection through RTP over RTSP (to see if loosing frame becomes retransmission delay)

Best Regards, Michel.

azsde commented 3 years ago

Hi Michel,

Thank you for your answer, I'll install wireshark and try to analyze incoming packets.

In the meantime i'm not quite sure how I would "make connection through RTP over RTSP" ?

Having a retransmission delay rather than lost footage would work better for me.

mpromonet commented 3 years ago

Hi Azsde,

In order to ask for TCP stream, you should send an RTSP SETUP, this could be done using --rtsp-tcp of vlc or -rtsp_transport tcp of ffmpeg

Best Regards, Michel.

azsde commented 3 years ago

I'll try this out, the thing is that the client I use is Synology's Surveillance Station, I do not have control over how it gets its content from the raspberry :(