![]() Am I right? And if I am, how do I achieve that? I'm assuming I'm looking for options that will encode with all i-frames, no lookahead, and no buffering. However, I'd be happy to receive advice regarding low latency monitoring. I'm not so sure though - because I have tested with other monitors, with pretty much the same results. I acknowledge that there might be latency in my ffplay monitoring. Quality and stability are less important. But, for the purposes of this requirement, I'm prepared to sacrifice everything in the pursuit of low latency. My belief is that ffmpeg (and X264) are somehow buffering the input stream from the webcam during the encoding process. I monitor the stream on the same machine using ffplay, with this: I want to start fresh with this question:įfmpeg -f avfoundation -i "1:none" -vcodec libx264 -preset ultrafast -tune zerolatency -x264-params "" -f mpegts udp://127.0.0.1:9090 Note that I've deliberately not included here any of the exotic options that might help me. Can anyone help me with the magic ffmpeg settings? I've read that it should be possible to get the latency down to a couple of hundred milliseconds - or even as low as a single video frame (in these ideal test conditions). And to be honest, none of the options that I've tried appear to make any difference at all. But, the latency is persistently just about one second. I've tried every parameter switch that I can understand - and many suggestions found both here and elsewhere. My test environment is streaming from localhost to localhost, on a macOS machine. I'm trying to use ffmpeg to stream a webcam with as close to zero latency as possible.
0 Comments
Leave a Reply. |