<!DOCTYPE html><html><head><title></title><style type="text/css">
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>My caps weren't set right. I set GST_DEBUG=6 and saw this:<br><br></div><div>GST_CAPS gstpad.c:5624:pre_eventfunc_check:<videoconvert0:sink> caps video/x-raw, format=(string)GRAY8, width=(int)80, height=(int)60, framerate=(string)8.6/1 not accepted<br></div><div>GST_PADS gstpad.c:5879:gst_pad_send_event_unchecked:<videoconvert0:sink> pre event check failed<br></div><div><br></div><div><code><span class="nc">FlirLeptonCameraSrc (my implementation of appsrc) </span></code>created the caps from Gst.Caps.new_empty_simple and everything was set with set_value. I think the framerate wasn't set correctly. The framerate property doesn't seem to work with strings. I got it to work with <code><span class="n">Gst</span><span class="p">.</span><span class="n">Caps</span><span class="p">.</span><span class="n">from_string instead.</span></code> I also had to change the framerate to "0/1". The framerate property also doesn't work with decimals in numerator.<br></div><div><br></div><div>My buffer pts and duration also have issues, but doesn't relate to this issue.<br></div><div><br></div><div>Thank you for your time if you read this and I hope someone finds this helpful,<br></div><div>Yaro Kifor<br></div><div><br></div><div>On Fri, Aug 21, 2020, at 11:06, Yaro Kifor wrote:<br></div><blockquote type="cite" id="qt" style=""><div>Hello,<br></div><div><br></div><div>I am working on a gstreamer project in python. I am using appsrc to push buffers to my pipeline. When I run my application my gtksink appears but a black void is displayed. I checked to make sure appsrc is pushing buffers, but when it does the debugging logs show "error: Internal data stream error" and "error: streaming stopped, reason not-negotiated (-4)". I looked into this and saw it could be something with my appsrc's caps, but I am very sure they are correct. However I still could be setting them incorrectly.<br></div><div><br></div><div>I am using Python 3.8.2 on Pop!_OS 20.04 LTS (Basically Ubuntu 20.04). I've tried pushing buffers filled with random data and still no luck.<br></div><div><br></div><div>My python script: <a href="https://hastebin.com/qukevepolo.rb">https://hastebin.com/qukevepolo.rb</a><br></div><div>Logs: <a href="https://hastebin.com/bisedotama.rb">https://hastebin.com/bisedotama.rb</a><br></div><div><br></div><div>Please let me know if there's any more information I could provide. Also note I haven't implement exiting the application properly just yet.<br></div><div><br></div><div>Any help or guidance would be greatly appreciated. I am sorry if this mailing list isn't the correct place to ask for help. If there's a better place please let me know!<br></div><div><br></div><div><div>Thank you for reading this,<br></div><div>Yaro Kifor<br></div></div></blockquote><div><br></div></body></html>