GStreamer appsink error:code should not be reached

Mathieu Duponchelle mathieu at centricular.com
Thu May 18 10:01:28 UTC 2023


As I understand it, this happens when appsrc sees an unknown type of
object on its internal queue (that queue should mostly hold events and
buffers). My guess would be that some event pushed on appsrc is
probably unreffed too soon?

On Wed, 2023-05-17 at 21:42 +0300, Юрий Любарский via gstreamer-devel
wrote:
> Hello everyone, I have a very strange issue with gstreamer.
> 
> I develop an app that uses gstreamer for pushing rtmp stream on the
> server. Gstreamer version 1.22.1 is embedded in opencv. App looks
> like this:
> 
> 1) Opencv grab rtmp stream from VideoCapture
> 2)  Then, opencv do somestaff with the stream, process every frame
> and push it again by gstreamer.
> Gstreamer pipeline looks like that
> 
> "appsrc ! videoconvert ! video/x-raw,width=480,height=640 !
> openh264enc ! h264parse ! flvmux ! rtmp2sink location=" + rtmpUrl 
> 
> And it works. But, when opencv detects face on stream, and starts
> process face,  out stream dies.
> I could see only
> 
> >  gstappsrc.c:1734:gst_app_src_create code should not be reached
> > 
> 
> 
> string in logs. 
> What could lead to this error? How to fix this?


More information about the gstreamer-devel mailing list