I have a terminal command which can display video frames from web camera as source and save to a location. The terminal command:
gst-launch v4l2src ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! \
queue ! videorate ! 'video/x-raw-yuv,framerate=30/1' ! theoraenc ! \
queue ! oggmux ! filesink location=me_funny_dancing.ogg
I can create the video-rate element:
GstElement *video_save_rate = gst_element_factory_make("videorate","video_save_rate");
but how can I set the frame rate video/x-raw-yuv,framerate=30/1 so that I can link with the video-rate object?
Might it have to do with set-video-resolution-fps?