Page 1 of 1

Libvlc and subtitle track

Posted: 20 Sep 2016 09:28
by pecana
Hello, using libvlc in Android I'm able to detected and activate / deactivate subtitle track on a streaming video, but I am not able to set the subtitle color / fize / background and any other paramteres, i tried to add options
--freetype-fontsize=..
--freetype-color=..
...
when creating the libvlc and also adding them to the current Media but none of them seems to have effect.
Do these parameters works only on local srt subtitle and not for subtitle track or do I miss something ?

Thank you

Re: Libvlc and subtitle track

Posted: 20 Sep 2016 11:25
by Rémi Denis-Courmont
It depends on the format of the subtitle track. Some formats are bitmap, so rendering can obviously not be altered. Other formats include rich text. Either way, the FreeType parameters won't apply.

Re: Libvlc and subtitle track

Posted: 20 Sep 2016 11:42
by pecana
It depends on the format of the subtitle track. Some formats are bitmap, so rendering can obviously not be altered. Other formats include rich text. Either way, the FreeType parameters won't apply.
Hello , is there a way to know the track format?
In my case the track tyoe is: Media.Track.Type.Text
and here the information I can get from the Track:

Tracks Number : 2
Tracks ID : 2
Description : DVB subtitles
Bitrate : 0
Lenguage : und
Codec : DVB Subtitles
Original Codec : DVB Subtitles
Type : 2
level : -1
Profile : -1

Thank you

Re: Libvlc and subtitle track

Posted: 20 Sep 2016 13:46
by Rémi Denis-Courmont
That would be the track format, yes.

Re: Libvlc and subtitle track

Posted: 20 Sep 2016 13:59
by pecana
That would be the track format, yes.
Ok, but in this specific case no options has effect on the subtitles :-(

Re: Libvlc and subtitle track

Posted: 20 Sep 2016 15:28
by Rémi Denis-Courmont
And that's expected. DVB subtitles are typically bitmaps.

Re: Libvlc and subtitle track

Posted: 21 Sep 2016 09:17
by pecana
And that's expected. DVB subtitles are typically bitmaps.
It's ok then :-)

Thank you very much for your time!