How to set streamheader in caps of appsrc? | OPUS
Nicolas Dufresne
nicolas at ndufresne.ca
Sun Feb 23 00:33:40 UTC 2020
Le sam. 22 févr. 2020 18 h 00, jeyp4 <jaiforfriend at gmail.com> a écrit :
> I found the easy hack
>
> caps = gst_caps_from_string("audio/x-opus, rate=(int)16000,
> channels=(int)1,
> channel-mapping-family=(int)0,"
> " stream-count=(int)1,
> coupled-count=(int)0, streamheader=(buffer)< 4f70757348"
> "65616401013801803e0000000000,
> 4f707573546167731e000000456e636f646564207769746"
>
> "8204753747265616d6572206f707573656e630000000001 >");
>
> 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 ():
> /GstPipeline:app_pipeline/GstAppSrc:app_source:
> streaming task paused, reason error (-5)
>
It's probably badly framed data. Why don't you want to use the parser?
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200222/efd4b215/attachment.htm>
More information about the gstreamer-devel
mailing list