1:N Threaded Example

Vinod Kesti vinodkesti at yahoo.com
Wed Sep 4 05:25:33 UTC 2019


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/


More information about the gstreamer-devel mailing list