Pulling from rtsp through FFmpegFrameGrabber and then streaming to rtmp server through FFmpegFrameRecorder, the delay is 12 seconds during playback, but using ffmpeg software to push the same parameter to the server, the delay is only 2 seconds during playback. What is the cause?Is it necessary to do some extra configuration?
After adding the code below, there is still no improvement.
recorder.setVideoOption("preset","ultrafast");
recorder.setVideoOption("tune", "zerolatency");
Find the cause of the problem, because the video time is delayed with the audio time. Turning off the audio output solves this problem, but my video source has no audio output. I guess the ffmpeg program will not do audio output if there is no audio。
Most helpful comment
Find the cause of the problem, because the video time is delayed with the audio time. Turning off the audio output solves this problem, but my video source has no audio output. I guess the ffmpeg program will not do audio output if there is no audio。