Page 1 of 1

RTMP playback delay on vlc increases overtime

Posted: 07 Sep 2017 14:13
by ahmed96alaa
i'm trying wowza to send a RTSP stream from an android device to other LAN clients

i'm using VLC to play the RTMP stream as a client

when starting a playback ... the delay is < 1 second and that's really really great

but overtime the delay keeps increasing ... sometimes when i leave the streaming ON .. for about an hour or more ...
the delay reaches 5-7 seconds !!!

but when i stop the VLC playback and start it immediately the delay return back to it's first state (< 1 second)

i almost tried everything

- i tried setting cache to low value in VLC but that decreases the instant delay ... not that accumulating delay

- i tried to decrease the bitrate of encoding .... i even set it to 10 kbps !!!
i knew that the quality would get so bad but i wanted to test the theory that it's just a
bitrate vs bandwidth issue ... also didn't work .. it's barely the same

- i tried setting the stream type to (live-lowlatency) in the conf of live application (application.xml)

but all leads to the same issue .. i can't get rid of that accumulating delay please if anyone can help

Re: RTMP playback delay on vlc increases overtime

Posted: 07 Sep 2017 16:47
by InTheWings
If the delay increases that means you had buffer underruns and the core tries to compensate by buffering more

Re: RTMP playback delay on vlc increases overtime

Posted: 07 Sep 2017 17:32
by ahmed96alaa
If the delay increases that means you had buffer underruns and the core tries to compensate by buffering more
i don't have any idea how to fix that or even how tow to make the player skip it .... can u tell me what do i have to do ??

Re: RTMP playback delay on vlc increases overtime

Posted: 08 Sep 2017 14:41
by InTheWings
If the delay increases that means you had buffer underruns and the core tries to compensate by buffering more
i don't have any idea how to fix that or even how tow to make the player skip it .... can u tell me what do i have to do ??
VLC is not a realtime video player. It needs buffering. If your link is not reliable, that's normal behavior.

Re: RTMP playback delay on vlc increases overtime

Posted: 28 Feb 2022 19:29
by Llorx
But maybe you can add an option to avoid VLC increasing the buffer but skip frames.

RTMP means Real Time Messaging Protocol and increasing the buffer over time is anything but real time.