[vlc-devel] subtitle delay in android

Maria Gheorghe reclamamulta at gmail.com
Wed Oct 1 12:56:26 CEST 2014

also something else regarding subtitles.
I noticed in vlc for android code the fallowing code in class
       /* Only show the subtitles surface when using "Full Acceleration"
mode */
        if (mLibVLC.getHardwareAcceleration() ==
And hardware aceleration only works for android 4.3+ .
So this means android < 4.3 can not show subtitles in vlc for android
,cause mSubtitlesSurface is default invisible in layout and the condition
above do nto let it to be visible if tehre is no full hardware aceleration
Any way I tried in a little cheap (26usd) android tv box running android
4.2.2 ,with only 512 ram ,and dual core Allwinner 1.2 ghz cpu, to use
subtitles ,and everythink works great.
There is no delay , I watched more than 6 movies with different codecs and
everythink is great.
I ussed the libvlc from google play (libvlc: VLC media player - 2.2.0-pre4
Weatherwax ) ,I only changed gui code ,nothing to the libvlc ,and all is
good in android 4.2.2 with subtitles and HarwareAcceleration(0).

On Wed, Oct 1, 2014 at 1:44 PM, Maria Gheorghe <reclamamulta at gmail.com>

> Thinking also to modify full .srt file .Increse in file the time for eatch
> text ,and reload the .srt file with updated times.
> This is just because I do not have now the informations  how to make the
> video_set_spu_delay() function visible from java ,but is not something very
> fast ,cause require to read and write full str file.
> On Wed, Oct 1, 2014 at 1:05 PM, Maria Gheorghe <reclamamulta at gmail.com>
> wrote:
>> So i think the libvlc must be recompiled ,so java to see that libvlc
>> function as public or similar.
>> Do you have any ideea how this exposure work?How must look a fucntion
>> from the libvlc in order to be accesed from java ?
>> I recompiled one time the libvlc for android ,but i never aded or
>> modified fucntions of the libvlc.
>> On Wed, Oct 1, 2014 at 1:02 PM, Jean-Baptiste Kempf <jb at videolan.org>
>> wrote:
>>> On 01 Oct, Maria Gheorghe wrote :
>>> > How can I do this?
>>> You need to modify the code to expose it.
>>> --
>>> Jean-Baptiste Kempf
>>> http://www.jbkempf.com/ - +33 672 704 734
>>> Sent from my Electronic Device
>>> _______________________________________________
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>>> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141001/401525d7/attachment.html>

More information about the vlc-devel mailing list