delayed UDP stream

VLC for Android and Chrome OS specific usage questions
yairko
Blank Cone
Blank Cone
Posts: 16
Joined: 06 Dec 2016 12:25

delayed UDP stream

Postby yairko » 06 Mar 2017 13:52

Hello,

I play a video with sdp file and it seems to reach my client delayed about 3 seconds relative to the server.
I added a call to setNetworkCaching but it doesn't seem t o have an impact on the delay.

Could it be that the source of the delay is the sdp file ?

Help is appreciated

yairko
Blank Cone
Blank Cone
Posts: 16
Joined: 06 Dec 2016 12:25

Re: delayed UDP stream

Postby yairko » 08 Mar 2017 16:44

For future visitors, this made a huge difference on the latency for me:

Code: Select all

ArrayList<String> options = new ArrayList<>(); options.add("-vvv"); options.add("--aout=opensles_android"); options.add("--audio-time-stretch"); options.add("--no-drop-late-frames"); options.add("--file-caching=2000"); options.add("--network-caching=2000"); options.add("--live-caching=2000"); options.add("--plugins-cache"); options.add("--avcodec-fast"); options.add("--avcodec-skiploopfilter=4"); options.add("--avcodec-hw=any");//=any options.add( "--clock-synchro=0" ); options.add( "--clock-jitter=0" ); options.add( "--udp-caching=500" ); options.add( "--no-stats" ); options.add( "--no-osd" ); options.add( "--no-audio" ); options.add( "--no-sout-audio"); options.add( "--no-sout-video"); options.add( "--no-sout-spu"); libvlc = new LibVLC( options );

Code: Select all

Media m = new Media( libvlc, mediaFile ); m.setHWDecoderEnabled( true, true ); m.addOption( ":network-caching=100" ); // 150 m.addOption( ":clock-jitter=0" ); m.addOption( ":clock-synchro=0" ); mMediaPlayer.setMedia( m ); mMediaPlayer.play();


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 2 guests