I´m working with the set protocol for transporting video over internet. (https://github.com/Haivision/srt)And so far things looks good.
I can encode a decklink stream:
ffmpeg -err_detect explode -f decklink -i ‘DeckLink Quad (8)’ -fflags nobuffer -vcodec libx264 -preset veryfast -tune zerolatency -b:v 10M -maxrate 10M -bufsize 10M -f mpegts - | ~/srt/srt-live-transmit -v “file://con” “srt://:5506?mode=listener&latency=100”
And play it back on another machine with very low latency over the internet:
./ffplay -probesize 120048 -i “srt://xx.xx.xx.xx:5506?tlpktdrop=1”
But as soon as I try to decode it to a decklink output on the same machine as the one I test replay on, I get a 4sec latency.
Here´s my decoding:
ffmpeg -i “srt://xx.xx.xx.xx:5506?rcvlatency=100” -probesize 120048 -pix_fmt uyvy422 -f decklink ‘DeckLink Quad (7)’
Plan is to stream from CasparCG, but right now I´m just using a separate machine until I know it´s working.
Does anyone know where the 4 sec buffer comes from?