video delivery without delay. not a local network. need help
Hi friends. I do not speak English well, but I will try to ask you for help
i have tvheadend. I accept video streams from the Internet and distribute them back to combine several remote computers
network diagram:
internet speed 500 \ 500 mb \ s
remote computer running dvbdream --- internet ---> my router (192.168.88.1) ---> server tvheadend (192.168.88.3)
the remote computer has a dvbdream program that can send a video stream to the network via udp.
the problem is that through the Internet a stream with a speed of ~ 15-20mb \ s cannot be delivered efficiently. the picture does not crumble, but simply stands still.
I tried to solve this with ffmpeg and on the remote machine I ran the command
ffmpeg -i "udp: //127.0.0.1: 1235? overrun_nonfatal = 1" -preset ultrafast -tune zerolatency -f rtp_mpegts "rtp: // my_server_ip: 1238"
now I can see the given channel through tvheadend, but there is a big delay.
ping between remote computer and tvheadend ~ 50ms
I was counting on the fact that if the remote computer sends its stream to tvheadend and watches it through vlc using the m3u sheet from tvheadend, then the delay will be a ping to the server 50ms plus 50ms back. 100ms was fine for me, but in practice it turned out 2000-3000ms.
what could be a problem? ffmpeg needs a different command? is this command wasting time transcoding? How can I deliver content as quickly as possible, avoiding all delays and buffering?
vlc with the option to view video from the network with 0ms buffering
dvbdream can only send a stream via udp. but udp scatters channels via the Internet, please tell me what to do?