I tried doing enable-disable of video and subtitle at runtime using a
application that uses playbin.
I have tested this on 64-bit PC with gstreamer version being 1.2.4.
I have set the flags property on playbin as below:
0x00000005 ----> Disable Audio only.
0x00000002 ----> Disable Video-Subtitle.
0x00000007 ----> Enable Audio-Video-Subtitle.
Please let me know if the above setting are correct.
If they are correct then below are my experiments and observations:
So when I want to do Video-Subtitle disable I just input character 'd' on
the terminal where it sets the "flags" property of playbin to 0x00000002. On
disabling video-subtitle gets disabled and audio continues for few seconds
and after that I do not hear any more audio.
But when tried the same thing on gstreamer version 1.6.3, I see that I am
not able to hear the audio output immediately after video-subtitle disable
and also the video-subtitle display shows a single video frame with frame
stuck with no audio output.
I tried performing enable also - where I set the "flags" to 0x00000007.
When performed enable in gstreamer 1.2.4, saw only a single video-subtitle
frame and this is the almost the nearest frame when I had performed
video-subtitle disable the last time.
Again after video-subtitle enable audio came for few seconds and then audio
Thanks for the reply.
What I do initially is it plays using playbin.
I want to disable video-subtitle at run time.
gives me the list of flags:
0x01 - Video
0x02 - Audio
0x04 - Subtitle/Text
So If I am not wrong,
setting flags to 0x02 - should output only audio.
setting flags to 0x07 - should output only audio, video and subtitle.
Please, Correct me If I am wrong.
Also I think that setting the flags property should work as it will similar
to setting some property on a element (obviously element has the support for
Anyhow I will check with the get flags and |= and &=.