failing to change appsrc caps dynamically on jpeg
Hi! using this pipeline
appsrc ! jpegparser ! imxvpudec ! videoconvert ! queue ! vp8enc ! rtpvp8enc ! webrtcbin
I'm trying to change the appsrc caps dynamically in order to adjust the framerate which works fine with h264 input (and h264parser) but wont work with jpeg. -> the initial caps are being set and are working but any later change is being ignored
Here are the caps
GstCaps* create_appsrc_caps(client){
return gst_caps_new_simple ("image/jpeg",
"parsed", G_TYPE_BOOLEAN, TRUE,
"stream-format", G_TYPE_STRING, "byte-stream",
"alignment", G_TYPE_STRING, "nal",
"framerate", GST_TYPE_FRACTION, client->pipe->framerate, 1,
"do-timestamp", G_TYPE_BOOLEAN, TRUE,
NULL);
}
which are being set inside the enough-data callback
GstCaps *appsrccaps;
appsrccaps = create_appsrc_caps(client);
g_object_set (G_OBJECT(client->pipe->app_src), "caps", appsrccaps, NULL);
gst_caps_unref (appsrccaps);
Initially the framerate is 1/1 which (depending on the source) is later set to ~5fps or ~16fps -> calculated from the timestamps
I hope I'm doing smth terribly wrong and this is not a bug