Reseting Elements into GstElementFactory.make state?

Peter Rennert p.rennert at
Wed Jul 31 11:20:28 PDT 2013


I have a dynamic pipeline where I have two bins doing double buffering 
(see below). It works if I use fresh bins with all elements factory 
made. Once I swap them back and try to recycle a bin it does not work 
anymore. I tried to set the bins into STATE_NULL but it does not really 
reinitializes them. Is there any way?

I am using Gstreamer

gst-launch-1.0 -e uvch264src device=/dev/video1 name=src auto-start=true 
src.vfsrc ! queue name=prevQueue ! 
video/x-raw,width=320,height=240,framerate=30/1 ! autovideosink 
name=previewsink src.vidsrc ! queue name=vidQueue ! 
! tee name=t ! queue ! h264parse ! avdec_h264 ! autovideosink t. ! queue 
name=srcQueue ! myBin

Template of bins I swap around:
myBin: queue name=fileQueue1 ! h264parse name=ph264_1 ! mp4mux 
name=mux_1 ! filesink name=filesink1 location="test.mp4"

More information about the gstreamer-devel mailing list