How to change framerate in REALTIME when video is PLAYING?

Andrey Nechypurenko andreynech at googlemail.com
Sun Jul 10 08:23:36 PDT 2011


> changing framesize works for me too but the framerate doesn't, please take a
> look to the sample code I posted in this bug report:
>
> https://bugzilla.gnome.org/show_bug.cgi?id=647648
>
> seems videorate element is not able to renegotiate the new format, could you
> see something wrong in my sample?

Well, the only thing which might make the difference is that before
changing the caps, I am setting the element state to NULL:
gst_element_set_state(qos_scaler, GST_STATE_NULL);
and after making changes, set the state back to PLAYING. Not sure that
it will change something in your case, but I guess I read somewhere
that it is in general necessary.


Regards,
Andrey.


More information about the gstreamer-devel mailing list