I am streaming from my android phone's camera to my computer using RTP. I am using VLC to receive the stream. I am also using a hand written .sdp file to view the stream in VLC. When I was doing this over RTSP I could uses the command line -> vlc "rtsp://224.1.1.1:8086" --network-caching=0 to remove the 1000ms caching that would remove the delay. So now I am using -> myTest.sdp --network-caching=0 but it seems to have no affect. I have tried increasing it to 10 seconds, still no affect. It also seems that if I lower the quality of the video it will have more of a delay. What do I need to do to remove any kind of caching / buffering and always just show the latest frame as it comes in?
Asked
Active
Viewed 1.1k times
1
-
1Any clue in the console output? – Ken Sharp Mar 02 '15 at 21:33
-
There is also --sout-mux-caching=<> option to try – pmod Jan 21 '16 at 13:44
-
it seems to be working as expected now (using VLC v3.0.14 on Linux) – betatester07 Jun 16 '21 at 16:07
1 Answers
0
I couldn't make VLC to have a delay less than 1 ms. So switching to ffplay with this parameters solved the problem:
ffplay.exe rtsp://224.1.1.1:8086 -fflags nobuffer -flags low_delay -avioflags direct -fflags discardcorrupt

petacreepers23
- 164
- 1
- 9