you’re reading a video file? or from a live webcam? what is the goal?
webcams have native API backends (DSHOW, MSMF). video files are handled by ffmpeg.
gstreamer is not required and not recommended for these two sources. why do you bother with gstreamer pipelines at all? the “WARN” stuff is warnings, nothing else. that’s mostly noise.