Audio track is not sequence when using playbin
hungbattran
tranhung93.it at gmail.com
Sun Sep 10 01:49:20 UTC 2017
Hi all,
I'm using c++ to make a mediaplayer. Operation of mediaplay is based on API
of GStreamer to control PLAYBIN directly. And I'm facing a issue that when
I switch audio track (.MVK that embedded 6 audio tracks numbered from 1-6)
that is not sequence. Example, CLIP has audio track 1,2,3,4,5,6 and track 1
has Flags Default but default PLAYBIN play track 6. Then switching audio
track is 3->5->1->2->4.
Now I want to switch these audio in order 1->6.
GStreamer pipeline: Using PLAYBIN
CLIP: .MKV container
Finnally, my question:
1. How GStreamer stored audio track ? (I tried to investigate PLAYBIN source
code but not lucky to me)
2. How to know which track is 1,2,3,4,5,6 in .MKV ? Currently, I can get
information of .MKV (almost thing by code c parser).
3. Any idea for switch audio track sequence ? I tried to use filesrc and it
worked when I change pipeline it means when I want to switch audio I must
stop current pipeline and start new pipeline with new d.audio_1. It's not my
expection.
Thank so much. Hope any help from every one.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list