mengzhidaren / Vlc-sdk-lib

vlc-android The latest compilation video playback libraries 最新视频库支持录屏 欢迎star
491 stars 121 forks source link

Caching issue #87

Closed c10ud closed 6 years ago

c10ud commented 6 years ago

Hello, I am using your compiled 'com.yyl.vlc:vlc-android-sdk:3.0.2' in my Android app and I am trying to obtain near-zero delay video from a RTSP source.

I am having difficulties getting sub-second delay and I saw this patch from VLC developers.

https://code.videolan.org/videolan/vlc-android/commit/142154e3abbad0d969dd8c5cd24652f275884a40

Can you try adding this to your builds? Thanks

mengzhidaren commented 6 years ago

I've tried this method to be very small,You can increase yourself

c10ud commented 6 years ago

I set these options in libvlc init and I fear they are being overwritten when media is started, that is why I ask:

    args.add("--rtsp-caching=0");
    args.add("--network-caching=0"); // probably overwritten in org\videolan\libvlc\Media.java
    args.add("--file-caching=0"); // probably overwritten in org\videolan\libvlc\Media.java
    args.add("--rtsp-timeout=5");
    args.add("--udp-timeout=5");
    args.add("--clock-synchro=0");
    args.add("--clock-jitter=0");
    args.add("--network-synchronisation");
    args.add("--no-drop-late-frames");
    args.add("--quiet-synchro");
    args.add("--sout-ts-dts-delay=100");
    args.add("--sout-ps-dts-delay=100");

    mLibVLC = new LibVLC(this, args);

do you think these settings don't apply?

mengzhidaren commented 6 years ago

No general environment