Hello,
I'm new to GStreamer.
I'm using a Playbin2 to play a video (which works perfectly). But with
ogm or mkv files, I would like to be able to select the sub track (or
disable it, as playbin2 select the first one present). Same thing with
audio tracks.
If I refer to the comments in PlayBin2.java, it should be possible, as
along the feathers I can read :
" - subtitle support for video files. Subtitles can be store in
external files." (I'm interested in the one too by the way)
"- stream selection between different video/audio/subtitles streams"
So it seems possible, but the problem is that I don't see how to do
that.
The GStreamer documentation about playbin2 speaks about a "current-
text" property which "Get or set the currently playing subtitle
stream. By default the first subtitle stream with data is played."
Sound good, so I tried with the set method:
playbin.set("current-text", "1"); // tried with different int values
(get an exception if not an integer value)
But it doesn't seem to have any effect. (And how to desactivate the
subs, as Playbin select automatically the first sub track ?)
As for the propriety for audio "current-audio", I don't know if it has
an effect, as on the file I have tested, even without trying to change
this propriety, the automatically chosen audio track is not always the
same...
So it is clear that I'm missing something.
Is this the good method, but the id of the tracks are wrong (how to
get the list of tracks id)?
Or is there another way to do it?
Can someone help me?
Thanks
--
You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
To post to this group, send email to
gstream...@googlegroups.com.
To unsubscribe from this group, send email to
gstreamer-jav...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/gstreamer-java?hl=en.