What's the policy of playbin2 to handle multiple subtitle sources?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

What's the policy of playbin2 to handle multiple subtitle sources?

Chen, Jacob

Hi here,

 

I’m using Playbin2 to make a video player, I found that when playing a video file like mkv which contains with subtitle, the subtitle will be displayed automatically, but in this case if I assign an external to suburi,

Only external subtitle will be displayed. Is this correctly on playbin2? What’s the policy to handle subtitle displaying like this case?

 

Regards,

Jacob


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: What's the policy of playbin2 to handle multiple subtitle sources?

Sebastian Dröge-7
On Thu, 2010-07-01 at 10:48 +0800, Chen, Jacob wrote:

> Hi here,
>
>  
>
> I’m using Playbin2 to make a video player, I found that when playing a
> video file like mkv which contains with subtitle, the subtitle will be
> displayed automatically, but in this case if I assign an external to
> suburi,
>
> Only external subtitle will be displayed. Is this correctly on
> playbin2? What’s the policy to handle subtitle displaying like this
> case?
You have to select the subtitles that should be played by setting the
current-text property. To get information (e.g. language) about
the different subtitle streams you can use the get-text-tags and
get-text-pad action signals.

The order of the subtitle streams as exposed by playbin2 has no real
meaning, the first ready-to-displayed subtitle gets number 0, the next
number 1, etc. This could be different every time


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

signature.asc (205 bytes) Download Attachment