Mfvideosrc can't connect to x264enc

Hi, I am testing around with nodejs and managed to get a testvideosrc to show on my browser.
The next step would be to test it with my webcam, but I keep on getting the same error:
“ERROR: from element /GstPipeline:pipeline0/GstMFVideoSrc:mfvideosrc0: Internal data stream error”.
It seems to me like it’s caused by trying to convert from mfvideosrc to x264enc, as in

gst-launch-1.0 mfvideosrc ! videoconvert ! x264enc ! autovideosink

Is there any way to turn the camera’s stream into an h264 format?

autovideosink (it would be d3d11videosink or d3d12videosink depending on GStreamer version) does not support encoded stream.

Thus you need to configure decoder between encoder and videosink, an example pipeline is

gst-launch-1.0.exe mfvideosrc ! videoconvert ! queue ! decodebin ! videoconvert ! queue ! autovideosink

That’s great to know, thanks a lot. My issue is that I’m trying to stream the camera to an ip address, basically by following this tutorial:
https://stackoverflow.com/questions/63946535/how-to-use-gstreamer-to-directly-stream-to-a-web-browser

And I want to keep the data in a format I can send to an online stream. I don’t think that keeping the stream in raw data would work