<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 23 déc. 2022, 17 h 15, Henning Larsen via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><div>As to the explicit frustration from Dave Blanchard:</div><br>> ERROR: from element /GstPipeline:pipeline0/GstSRTSrc:srtsrc0: Internal data stream error.<br>> Additional debug info:<br>> ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstSRTSrc:srtsrc0:<br><div>> streaming stopped, reason not-negotiated (-4)</div><div><br></div><div>I have to agree that the error text is hard to grasp.</div><div>As a concrete example of where it could be improved a lot:</div><div><br></div><div>"reason not-negotiated" is actually an incorrect description of the error that it is supposed to describe, because the interface rules _were_ negotiated but the outcome of the negotiation was "negative" or with "no agreement".</div><div><br></div><div>So if the developers agree with this observation the term not-negotiated ought to be changed to for instance not-compatible  negative-negotiation or similar, like    Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca" target="_blank" rel="noreferrer">nicolas@ndufresne.ca</a>>  explanation below. </div><div><br></div><div>Not-negotiated is an incorrect term for what is the problem. Error text's should at a minimum not be misleading.</div><div><br></div><div>This was written with the hope to get something positive from this embarrassing discussion.</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It does sound like good ideas. In this case, the error is an automatic serialization of GST_FLOW_NOT_NEGOTIATED. In short what is returning by chain function. Its the driving element (usually a source or a demuxer) that turns this into an error message. That serialization could certainly be improved.</div><div dir="auto"><br></div><div dir="auto">Though, I'll have to mention that this return value caries an issue, which comes from an API mistake. The past tense reflects the issue very well. The return value is seen after the negotiation have failed, so the exact reason why the negotiation failed is already lost. Perhaps one days we'll start GStreamer 2.0 and try to improve the negotiation process so that at the end of the process, if we have a negative result we could pin-point a cause which could both help development, or be handled programmatically.</div><div dir="auto"><br></div><div dir="auto">Nicolas</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><div>regards</div><div>Henning</div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">not-negotiated is translated to "Not negotiated" in english. It means that<br>
srtsrc (the error emitter reported on previous line) is not compatible with the<br>
set of element/capsfilter you have placed downstream to it (to the right).<br>
<br>
Of course you haven't shared the pipeline, this was just a rant, and I assume<br>
you didn't care, but sharing the pipeline you are using will allow us to help<br>
you further.<br>
<br>
regards,<br>
Nicolas<br>
<br>
> Execution ended after 0:00:00.345528392<br>
> Setting pipeline to NULL ...<br>
> 01:02:38 AM.416780/gst-launch-1.0*E:SRT.ei: epoll/update: IPE: update struck E1 which is NOT SUBSCRIBED to @710665059<br>
> Freeing pipeline ...<br>
> <br>
> <br>
> "Internal data stream error." And what the hell does that mean, exactly....????  Why not change the error text to "Oops! Something went wrong, lol". Then you can be exactly like Twitter.<br>
> <br>
<br>        <CAO_ovOK3q27REcuA4RyjH=Yrt0=CKJWbY1EhNZ0m=QAW2Vf=<a href="mailto:HA@mail.gmail.com" target="_blank" rel="noreferrer">HA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
GStreamer is meant for developers, not end users. Yes, some of the error<br>
messages and information could be better. However, it is assumed that you<br>
have some knowledge of these concepts and the interest to look into the<br>
code. Also, the support on this mailing list is quick and very good. The<br>
community is very helpful in regards to resolving issues and helping you<br>
learn how it works.<br>
<br><br>
</blockquote></div></div>
</blockquote></div></div></div>