Libvlc and subtitle track

This forum is about all development around libVLC.
pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Libvlc and subtitle track

Postby pecana » 20 Sep 2016 09:28

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Libvlc and subtitle track

Postby Rémi Denis-Courmont » 20 Sep 2016 11:25

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Libvlc and subtitle track

Postby pecana » 20 Sep 2016 11:42

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Libvlc and subtitle track

Postby Rémi Denis-Courmont » 20 Sep 2016 13:46

That would be the track format, yes.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Libvlc and subtitle track

Postby pecana » 20 Sep 2016 13:59

That would be the track format, yes.
Ok, but in this specific case no options has effect on the subtitles :-(

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Libvlc and subtitle track

Postby Rémi Denis-Courmont » 20 Sep 2016 15:28

And that's expected. DVB subtitles are typically bitmaps.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

pecana
Cone that earned his stripes
Cone that earned his stripes
Posts: 145
Joined: 27 Dec 2015 20:30

Re: Libvlc and subtitle track

Postby pecana » 21 Sep 2016 09:17

And that's expected. DVB subtitles are typically bitmaps.
It's ok then :-)

Thank you very much for your time!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests