# Mfvideosrc can't connect to x264enc

**URL:** <https://discourse.gstreamer.org/t/mfvideosrc-cant-connect-to-x264enc/2309>\
**Category:** Newcomers\
**Created:** [September 3, 2024, 1:42pm UTC](https://discourse.gstreamer.org/t/mfvideosrc-cant-connect-to-x264enc/2309 "2024-09-03T13:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luca](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/l/51bf81/32.png) [@Luca](https://discourse.gstreamer.org/u/Luca)\
**Post date:** [September 3, 2024, 1:42pm UTC](https://discourse.gstreamer.org/t/mfvideosrc-cant-connect-to-x264enc/2309/1 "2024-09-03T13:42:33Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![seungha](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/seungha/32/44_2.png) [@seungha](https://discourse.gstreamer.org/u/seungha)\
**Post date:** [September 3, 2024, 2:20pm UTC](https://discourse.gstreamer.org/t/mfvideosrc-cant-connect-to-x264enc/2309/2 "2024-09-03T14:20:15Z")

</div>

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

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

```

---

<div class="post-metadata">

**Author:** ![Luca](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/l/51bf81/32.png) [@Luca](https://discourse.gstreamer.org/u/Luca)\
**Post date:** [September 4, 2024, 7:27am UTC](https://discourse.gstreamer.org/t/mfvideosrc-cant-connect-to-x264enc/2309/3 "2024-09-04T07:27:21Z")

</div>

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](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
