When shutting down a GStreamer pipeline that reads frames from an appsrc, encodes them, and writes them out to a file, I noticed that although I had pushed N
buffers into the appsrc, the file would have only N-1
frames about 50% of the time (the remainder of the time it was N
).
I am using GStreamer 1.14.5 on Ubuntu and I have tried sending the EOS action signal using both:
self._pipeline.send_event(Gst.Event.new_eos())
# and
self._appsrc.send_event(Gst.Event.new_eos())