AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
3.77k stars 307 forks source link

tapo c110 and c120 stream #1161

Open sammo987 opened 1 month ago

sammo987 commented 1 month ago

I'm running go2rtc v1.9.2 standalone on raspberry pi. I have added the tapo c110 and c120 to go2rtc and can view both of them on vlc. On the tapo c110, the picture is smooth, but on the tapo c120, it's stutter, freeze and continue. I have tried adding -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i , but still a problem.

The only way to resolve this was using vlc intermediary restreamer and connect go2rtc to local vlc port

cvlc --intf dummy --network-caching=2000 rtsp://@$camerapi:554/stream1 --sout "#rtp{sdp=rtsp://:localport/cam}" :no-sout-all :sout-keep :rtsp-tcp :sout-rtp-proto=tcp vlc://quit

can you help?

AlexxIT commented 1 month ago

Probably you need to use custom rtsp input without nobuffer and low_delay:

https://github.com/AlexxIT/go2rtc/blob/bd73b07ed809d40ee75632f2ff06069976c2d321/internal/ffmpeg/ffmpeg.go#L65

sammo987 commented 1 month ago

Thank you for prompt reply and I know its hard to diagnoses a problem without the actual hardware present. The above parameters did not resolve the issue and it reminds. Let me know if you want so output logs