Audio Disable for only audio playback

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

Audio Disable for only audio playback

DeepakRohan
Hi,

    I am trying to disable audio, while playing a "only-audio" file.

But then what is the expected result???

I am expecting a behavior such that after removing audio sink and linking
with fakesink (with sync=TRUE), can the pipeline run without outputting any
data, but with elapsed time increasing.

Can the above behavior be achieved or is there a possibility.

Currently the moment audio sink is removed I get GST_MESSAGE_CLOCK_LOST.
But then after handling that message I have no element in the pipeline that
can provide me clock.
So my playback goes for toss.

But the same is working for disabling audio and video for a audio-video
file.
That is to say in case of audio-video files, there is no audio and video
outputs. But elapsed time keeps incrementing.

Can the same behavior be achieved while playing only a single stream (only
audio or only video files).

Please let me know if I can refer something on the same

Thanks in Advance :-)



--
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: Audio Disable for only audio playback

Shishir Pokharel
You might need to use pad_probe and block the buffer flow before you
remove exiting sink. After you replace the sink make the new sink¹s
runtime match the pipeline runtime and remove the probe, that should take
care of your issue. Anyone - correct me if I am wrong.

On 10/11/17, 10:15 PM, "gstreamer-devel on behalf of DeepakRohan"
<[hidden email] on behalf of
[hidden email]> wrote:

>Hi,
>
>    I am trying to disable audio, while playing a "only-audio" file.
>
>But then what is the expected result???
>
>I am expecting a behavior such that after removing audio sink and linking
>with fakesink (with sync=TRUE), can the pipeline run without outputting
>any
>data, but with elapsed time increasing.
>
>Can the above behavior be achieved or is there a possibility.
>
>Currently the moment audio sink is removed I get GST_MESSAGE_CLOCK_LOST.
>But then after handling that message I have no element in the pipeline
>that
>can provide me clock.
>So my playback goes for toss.
>
>But the same is working for disabling audio and video for a audio-video
>file.
>That is to say in case of audio-video files, there is no audio and video
>outputs. But elapsed time keeps incrementing.
>
>Can the same behavior be achieved while playing only a single stream (only
>audio or only video files).
>
>Please let me know if I can refer something on the same
>
>Thanks in Advance :-)
>
>
>
>--
>Sent from: http://gstreamer-devel.966125.n4.nabble.com/
>_______________________________________________
>gstreamer-devel mailing list
>[hidden email]
>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

AW: Audio Disable for only audio playback

Thornton, Keith
Hi
An alternative might be to use an outputselector

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Shishir Pokharel
Gesendet: Donnerstag, 12. Oktober 2017 07:22
An: Discussion of the development of and with GStreamer <[hidden email]>
Betreff: Re: Audio Disable for only audio playback

You might need to use pad_probe and block the buffer flow before you remove exiting sink. After you replace the sink make the new sink¹s runtime match the pipeline runtime and remove the probe, that should take care of your issue. Anyone - correct me if I am wrong.

On 10/11/17, 10:15 PM, "gstreamer-devel on behalf of DeepakRohan"
<[hidden email] on behalf of [hidden email]> wrote:

>Hi,
>
>    I am trying to disable audio, while playing a "only-audio" file.
>
>But then what is the expected result???
>
>I am expecting a behavior such that after removing audio sink and
>linking with fakesink (with sync=TRUE), can the pipeline run without
>outputting any data, but with elapsed time increasing.
>
>Can the above behavior be achieved or is there a possibility.
>
>Currently the moment audio sink is removed I get GST_MESSAGE_CLOCK_LOST.
>But then after handling that message I have no element in the pipeline
>that can provide me clock.
>So my playback goes for toss.
>
>But the same is working for disabling audio and video for a audio-video
>file.
>That is to say in case of audio-video files, there is no audio and
>video outputs. But elapsed time keeps incrementing.
>
>Can the same behavior be achieved while playing only a single stream
>(only audio or only video files).
>
>Please let me know if I can refer something on the same
>
>Thanks in Advance :-)
>
>
>
>--
>Sent from: http://gstreamer-devel.966125.n4.nabble.com/
>_______________________________________________
>gstreamer-devel mailing list
>[hidden email]
>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: AW: Audio Disable for only audio playback

DeepakRohan
Hi,

Thanks for the reply Shishir and Thomas.

What I am doing right now is I have a pad probe and only then I remove the
audio sink, followed by addition of fakesink element with sync property
being set to TRUE.

But immediately when I remove audio sink, I get GST_MESSAGE_CLOCK_LOST. And
at that time I do not have any other element that can provide me the clock.
So I get a gstreamer error.

I have also tried adding the fakesink element before removing audio sink
element with the sync property being TRUE.
But even then it did not work.

Let me know if there is something from my that I can look or go through for
the reference.

Thank You :-)



--
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: AW: Audio Disable for only audio playback

Renan Prata
Hi, DeepakRohan,

Try to use filesink, but the 'location' value is equal to '/dev/null'. For example:

$ gst-launch-1.0 playbin uri=http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8 audio-sink="filesink location=/dev/null"

Best Regards,


On Thu, Oct 12, 2017 at 10:36 AM, DeepakRohan <[hidden email]> wrote:
Hi,

Thanks for the reply Shishir and Thomas.

What I am doing right now is I have a pad probe and only then I remove the
audio sink, followed by addition of fakesink element with sync property
being set to TRUE.

But immediately when I remove audio sink, I get GST_MESSAGE_CLOCK_LOST. And
at that time I do not have any other element that can provide me the clock.
So I get a gstreamer error.

I have also tried adding the fakesink element before removing audio sink
element with the sync property being TRUE.
But even then it did not work.

Let me know if there is something from my that I can look or go through for
the reference.

Thank You :-)



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


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

Re: AW: Audio Disable for only audio playback

ashokm
You can try use of system clock for pipeline synchronization with api
gst_pipeline_use_clock ().



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