Multiple synchronized video streams into one appsink

Michał Rudowicz michal.rudowicz at
Wed Mar 3 10:17:36 UTC 2021


I'm trying to create a pipeline that, simplified, looks like this:

v4l2src ! tee ! videoconvert ! videoscale --\  
           \                                 \
            \                                 \----\
             \                                      + appsink

The idea is to be able to perform operations on a converted and scaled
stream in the appsink, but - depending on the result of the operations -
being also able to access the unmodified stream in there. Synchronization of
frames is important - there's no point in that if the original and scaled
frames do not share the same source frame. 

Is there an easy way to do that in GStreamer, or should I move the convert
and scaling to the appsink and essentially handle that myself?

Thanks in advance for any tips!

More information about the gstreamer-devel mailing list