Possible to display nothing or black screen when rtp stream stop ?

233 views
Skip to first unread message

Valentin Dubois-Pivot

unread,
Sep 7, 2021, 5:47:39 AM9/7/21
to gstreamer-java

I'm working with Java 11 & JavaFX 14 app using GStreamer to display rtp stream camera.

I'm using gst1-java-core & gst1-java-fx with FXImageSink

Currently, when the camera stops sending a video stream, GStreamer continues to display the last received image but it's annoying because we don't know if the camera bug or if the app doesn't work anymore.

Is it possible to tell GStreamer to not display anything when no video stream is being received? Can we detect this signal to stop the flow?

Thanks

Neil C Smith

unread,
Sep 7, 2021, 7:08:44 AM9/7/21
to gstream...@googlegroups.com
On Tue, 7 Sept 2021 at 10:47, Valentin Dubois-Pivot
<valentin.d...@gmail.com> wrote:
> Is it possible to tell GStreamer to not display anything when no video stream is being received? Can we detect this signal to stop the flow?

Add a generic message handler and see what you get from GStreamer when
this situation happens. Then call clear() from that message.

If you can't get anything useful from GStreamer, then maybe you can
detect the image property not changing for a certain amount of time?
Far from ideal.

Best wishes,

Neil


--
Neil C Smith
Codelerity Ltd.
www.codelerity.com

Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : Office 4 219 Kensington High Street,
Kensington, London, England, W8 6BD
Reply all
Reply to author
Forward
0 new messages