[vlc-devel] Re: how subtitles work??

Václav Koldus vaclav.koldus at avpark.cz
Tue Nov 8 15:01:52 CET 2005


I've got special filter to render images or text loaded from external 
files making videotext info (crawling text, changing photos, etc.). All 
this is defined in one xml file. But I need to load different xml file 
for different video files (or sometimes to don't load/show anything).

What I need is the mechanism that allows me to render/load different 
things depending on played file. Can marquee filter do this? If yes I 
could use similar procedure, I just need to know how to do it.

>I'm not sure what you are trying to render, but if it is some basic text you
>might want to look at using the marquee filter.  It lets you put up an
>arbitrary text string wherever you want, with some basic controls for font
>color, type, transparency, and can be changed on-the-fly though the rc
>interface. 
>
>-----Original Message-----
>From: vlc-devel-bounce at videolan.org [mailto:vlc-devel-bounce at videolan.org]
>On Behalf Of Vaclav Koldus
>Sent: Monday, November 07, 2005 8:55 AM
>To: vlc-devel at videolan.org
>Subject: [vlc-devel] how subtitles work??
>
>Hi!
>
>I'm writing module which renders some information on the screen and I need
>to configure it differently for each played file. I suppose it could be done
>similar way how subtitles are rendered. When file is opened, subtitles are
>loaded and rendered.
>
>What I don't know is how to open my configuration file with the avi file
>(similar as opening .srt and loading titles, I need to open .xml and load
>info). I haven't been able to find out how this works for subtitles, nor if
>I can use this way too.
>
>Another way, much more simple, would be to find out path and filename of
>file which is being played in the code of video filter and simply open and
>parse the file with the same name and different extension. Again I don't
>know how to get fileame of now playing file.
>
>Thanks for any advice.
>Vaclav
>
>--
>This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/ To
>unsubscribe, please read http://developers.videolan.org/lists.html
>
>  
>

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list