I'm trying to write a program in C which replicates the pipeline:
gst-launch -v filesrc location="bbb.mp4" ! decodebin2 ! ffmpegcolorspace ! autovideosink
DecodeBin2 has a dynamic pad and I've attached a callback to handle its creation. I am unable to link it to ffmpegcolorspace however because the pad capability is always video/quicktime. I would like it to be video/x-raw-yuv or something else which is compatible with ffmpegcolorspace.
Is this possible to force/select the output type of decodebin2?
Thanks.
EDIT: Please do not recommend playbin. I'm trying to learn how how to make pipelines.