Search code examples
androidvideovlclibvlc

How to add a logo over video using libvlc options in Android


I'm trying to add a logo over a video in Android, I tried to do:

String[] options = {"--sub-filter=logo" ,"--logo-file=/mnt/sdcard/video.png"};

playMRL(mLibVlcInstance, mrl, options);

but it did not add a logo, in Windows it works:

vlc --sub-filter=logo --logo-file=video.png movie.mp4

Does anybody have any idea how to run with these options in Android?


Solution

  • Hi I've found the options in a sample from https://bitbucket.org/edwardcw/libvlc-android-sample in this way:

    ArrayList<String> options = new ArrayList<String>();
    //options.add("--subsdec-encoding <encoding>");
    options.add("--aout=opensles");
    options.add("--audio-time-stretch"); // time stretching
    options.add("-vvv"); // verbosity
    libvlc = new LibVLC(options);
    

    but AFAIK not all the functionality of libVLC is exposed by the android port, as is stated in this answer: Video rotation on android using LibVLC