how to change framerate on fly

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

how to change framerate on fly

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:

capstring = "image/png, framerate=(fraction)1/%d" % 1
caps = Gst.Caps.from_string(capstring)

Sent from:
gstreamer-devel mailing list
[hidden email]