Can't get appsink to emit new-sample?
pisymbol .
pisymbol at gmail.com
Fri Aug 2 16:59:05 UTC 2019
Pipeline snippet:
... ! omxh264enc control-rate=2 bitrate=30000000 ! video/x-h264,
stream-format=(string)byte-stream ! h264parse ! appsink name=appsink0
emit-signals=true
I am then using:
appsink0 = recorder_bin.get_by_name("appsink0")
appsink0.connect("new-sample", on_new_sample, 0)
def on_new_sample(sensor_id):
""" Why is this so hard? """
print(sensor_id)
return Gst.FlowReturn.OK
Is there something else I should be doing to get appsink to emit the
'new-sample' callback? I do have an appsrc0 somewhere else I plan to send
buffers I catch in appsink0 to but I'm not sure that is relevant here.
-aps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190802/05272309/attachment-0001.html>
More information about the gstreamer-devel
mailing list