Enable-Disbale using the flags in playbin

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

Enable-Disbale using the flags in playbin

DeepakRohan
Hi,

    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
output stopped.


Any suggestions would be helpful.

Regards,
Rohan





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Enable-Disbale using the flags in playbin

Neil C Smith


On Wed, 7 Feb 2018 at 07:00 DeepakRohan <[hidden email]> wrote:
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.

Do you mean set?  Because I think you want to be getting the current flags values and altering it ( |= extraFlag or &= ~(extraFlag) ) before setting it.

Best wishes,

Neil
--
Neil C Smith
Artist & Technologist

Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Enable-Disbale using the flags in playbin

DeepakRohan
Hi Neil,

   Thanks for the reply.
What I do initially is it plays using playbin.
I want to disable video-subtitle at run time.

gst-inspect-1.0 playbin
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
that property).

Anyhow I will check with the get flags and |= and &=.

Thanks



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel