Javacv: Delay is too large when playing rtmp streaming video

Created on 4 Apr 2019  Â·  1Comment  Â·  Source: bytedeco/javacv

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");
question

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。

>All comments

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。

Was this page helpful?
0 / 5 - 0 ratings