how to change framerate on fly

chales-guo guo.chsh at gmail.com
Sun Nov 15 13:19:19 UTC 2020


I use this pipeline:


multifilesrc location=images/"%05d.png" caps="image/png,framerate=1/2"
loop=true ! pngdec ! "video/x-raw, format=(string)RGB" ! videoconvert !
videoscale ! "video/x-raw, format=(string)RGBA, width=(int)640,
height=(int)480"  !  nveglglessink force-aspect-ratio=false


I want to change framerate on fly. I set multifilesrc to paused, then set
the caps property of multifilesrc, at last set multifilesrc to playing. But
the framerate is not change.

the python code of set property is shown as:

multifilesrc.set_state(Gst.State.PAUSED)
capstring = "image/png, framerate=(fraction)1/%d" % 1
caps = Gst.Caps.from_string(capstring)
multifilesrc.set_property("caps",caps)
multifilesrc.set_state(Gst.State.PLAYING)



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list