I want to use appsrc as opussrc.
I have set the all caps parameters
caps = gst_caps_new_simple("audio/x-opus",
"rate", G_TYPE_INT, 16000,
"channels", G_TYPE_INT, 1,
"stream-count", G_TYPE_INT, 1,
"coupled-count", G_TYPE_INT, 0,
But I think I have to set streamheader also, in order to avoid using
opusparse. Because parsing may result in being a source of latency.
I can know the stream headers by just simple command line.
gst-launch-1.0 pulsesrc buffer-time=20000 ! opusenc frame-size=20 ! opusdec
! pulsesink buffer-time=20000 -v
But still without opusparse element, pipeline throws error
Error received from element app_source: Internal data flow error.
Debugging information: gstbasesrc.c(2948): gst_base_src_loop ():
streaming task paused, reason error (-5)
It's probably badly framed data. Why don't you want to use the parser?