In gstreamer x264enc dynamic parameter change, we need to change encoder state to null. so sequence be like : NULL → change parameter → PLAY As we are doing this steps encoder is getting restarted here. But we don’t need to restart encoder. is there any way we can achieve this ?
Change encoder parameters with encoder restart.
Some of the properties can be changed while the element is running. You can simply call
g_object_set() at any time for them. Unfortunately for the
x264enc this is not documented in the documentation which properties can be changed in
PLAYING state and which not (can you create an issue about that in GitLab?).
If the properties you’re interested in can’t be changed in
PLAYING then this might need more changes to the code.