Can't get appsink to emit new-sample?
Michael Gruner
michael.gruner at ridgerun.com
Sat Aug 3 03:18:48 UTC 2019
One possibility is that you don’t have a main loop iterating. Signals only get emitted if you iterate contexts.
Michael
> On Aug 2, 2019, at 10:59 AM, pisymbol . <pisymbol at gmail.com> wrote:
>
> 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
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list