# Video from UV4L-server WebRTC to Mediasoup possible?

**URL:** <https://mediasoup.discourse.group/t/video-from-uv4l-server-webrtc-to-mediasoup-possible/717>\
**Category:** Integration\
**Created:** [March 30, 2020, 8:25pm UTC](https://mediasoup.discourse.group/t/video-from-uv4l-server-webrtc-to-mediasoup-possible/717 "2020-03-30T20:25:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marklieberman](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@marklieberman](https://mediasoup.discourse.group/u/marklieberman)\
**Post date:** [March 30, 2020, 8:25pm UTC](https://mediasoup.discourse.group/t/video-from-uv4l-server-webrtc-to-mediasoup-possible/717/1 "2020-03-30T20:25:22Z")

</div>

Hello,

I have a Raspberry Pi 3 with a raspicam/mic/speakers running uv4l-server. UV4L has an integrated WebRTC server with a simple WebSocket signalling protocol that does SDP offer/answer. (I do want 2-way real-time communication with the raspi, before anyone suggests gstreamer or something.)

I would like to somehow get the stream from UV4L into mediasoup. Unfortunately, UV4L is closed source so I cannot integrate mediasoup libraries directly. I was wondering if it would be possible to use parts of mediasoup-client to basically proxy the SDP/ORTP communication and setup a WebRTCTransport connection anyway.

I’m new to mediasoup, so any guidance on whether this is possible or how to begin would be appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [March 30, 2020, 8:38pm UTC](https://mediasoup.discourse.group/t/video-from-uv4l-server-webrtc-to-mediasoup-possible/717/2 "2020-03-30T20:38:10Z")

</div>

You can use mediasoup-client internal utils in your server to make a SDP\<-\>ORTC “gateway”. This is complex stuff and requires good knowledge of mediasoup, mediasoup-client internals, RTP and SDP. You can look at this project as reference:

> <https://github.com/Kurento/mediasoup-demos/blob/master/mediasoup-kurento-filter/server.js>
