webrtc and appsink freezes pipeline
DejanCotra
dejancotra at gmail.com
Thu Jul 23 12:14:45 UTC 2020
Hi,
I wrote webrtc gstremer (1.16.2) application with Java bindings which will
just receive audio and video stream.
Incoming streams I handle with following pipelines:
AUDIO_IN_BIN_DESCRIPTION = "queue ! audioconvert ! queue ! audioresample !
queue ! appsink name=appsink-audio max-buffers=1000 drop=true sync=false
caps=audio/x-raw,rate=16000,channels=1";
VIDEO_IN_BIN_DESCRIPTION = "queue ! videoconvert ! video/x-raw,format=BGR !
queue ! appsink name=appsink-video max-buffers=1000 drop=true sync=false";
on both appsinks I enabled emit-signals to true, wrote callbacks which read
sample with pull-sample and return FlowReturn.OK.
Also wrote webrtc gstremer (1.16.2) application with Java bindings which
will just send audio and video stream.
For now its just sending videotestsrc and audiotestsrc and streaming works
just fine.
Also I have QT gstreamer (1.16.2) application (runs on Ubuntu) which will
also just send audio and video streams. Same, for now just videotestsrc and
audiotestsrc.
but when it connects to same receiver I have following behavior:
audio freezes after 1,2 second after its connected
and after few seconds video freezes also.
I try to debug receiver and put in command line GST_DEBUG=*appsink*:7 (I
suspected that appsink is problem)
but with GST_DEBUG=*appsink*:7 I did not have any more problem with freezing
audio and video.
So that led me to believe that there is some kind of race condition in
appsink.
Any idea what could be the problem or how can I debug problem further?
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list