Hello All, I am looking for a 1:N threaded example. Single input pipeline to appsink (or similar) then multiple output pipelines. I am also curious to know how to keep multiple pipeline in sync. For example: https://i.stack.imgur.com/qdeoZ.png How would you delay the original video stream so that the results from the processing block (assuming it takes more than 1 frame to calculate) are synchronized before doing the overlay.
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Media buffer time stamp will take care of the sync.
gst-launch-1.0 filesrc location=~/streams/apple_add.mp4 ! qtdemux ! \ h264parse ! video/x-h264,stream-foramt=byte-stream ! tee name=split \ split.! queue max-size-time=3000000000 ! filesink location=~/streams/apple_add.264 \ split.! queue max-size-time=3000000000 ! avdec_h264 ! videoscale ! video/x-raw,width=640,height=480 ! x264enc tune=4 ! mp4mux ! filesink location=~/streams/apple_add_360.mp4 Add queue size as per your processing delay. Set below queue property for buffering. max-size-buffers : Max. number of buffers in the queue (0=disable) flags: readable, writable, changeable in NULL, READY, PAUSED or PLAYING state Unsigned Integer. Range: 0 - 4294967295 Default: 200 max-size-bytes : Max. amount of data in the queue (bytes, 0=disable) flags: readable, writable, changeable in NULL, READY, PAUSED or PLAYING state Unsigned Integer. Range: 0 - 4294967295 Default: 10485760 max-size-time : Max. amount of data in the queue (in ns, 0=disable) flags: readable, writable, changeable in NULL, READY, PAUSED or PLAYING state -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Can you point me to where I can get more information on the media buffer time stamp? I don't see where it comes into play in the pipeline you describe. 03.09.2019, 22:25, "Vinod Kesti" <[hidden email]>:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |