# FFmeg as consumer

**URL:** <https://mediasoup.discourse.group/t/ffmeg-as-consumer/90>\
**Category:** Integration\
**Created:** [June 15, 2019, 10:23pm UTC](https://mediasoup.discourse.group/t/ffmeg-as-consumer/90 "2019-06-15T22:23:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@luc](https://mediasoup.discourse.group/u/luc)\
**Post date:** [June 15, 2019, 10:23pm UTC](https://mediasoup.discourse.group/t/ffmeg-as-consumer/90/1 "2019-06-15T22:23:05Z")

</div>

Hello,

I would like to record my video conferences.

I think I need to use ffmpeg but I do not know how to do it.

Is there documentation or does anyone have an idea of ​​how to do it?

thank you,  
Luc

---

<div class="post-metadata">

**Author:** ![jmillan](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/jmillan/32/9_2.png) [@jmillan](https://mediasoup.discourse.group/u/jmillan)\
**Post date:** [June 16, 2019, 4:35am UTC](https://mediasoup.discourse.group/t/ffmeg-as-consumer/90/2 "2019-06-16T04:35:44Z")

</div>

mediasoup does not come with recording capabilities by design.

If you want to produce or consume from a non WebRTC endpoint like ffmpeg, there is a specific section in the docs:

> **[mediasoup :: Communication Between Client and Server](https://mediasoup.org/documentation/v3/communication-between-client-and-server/#guidelines-for-ffmpeg-and-gstreamer)**
>
> Cutting Edge WebRTC Video Conferencing

---

<div class="post-metadata">

**Author:** ![indyo](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/indyo/32/100_2.png) [@indyo](https://mediasoup.discourse.group/u/indyo)\
**Post date:** [June 16, 2019, 1:47pm UTC](https://mediasoup.discourse.group/t/ffmeg-as-consumer/90/3 "2019-06-16T13:47:00Z")

</div>

I would love to learn this as well. So far I can confirm that there’s network activity on the port specified by `createPlainRtpTransport().tuple.localPort`, but after days of wrestling with this that’s pretty much all I got. The documentation example is for injecting stream from a file to the transport, but what I need unfortunately is the opposite (i.e record the stream from the transport to a file on a remote host). I’m already willing to pay anyone who can solve this for me 😅

---

<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:** [June 16, 2019, 7:22pm UTC](https://mediasoup.discourse.group/t/ffmeg-as-consumer/90/4 "2019-06-16T19:22:36Z")

</div>

Definitely we are not experts in FFmpeg or GStreamer, so we refer to the documentation and forums of those projects:

- [FFmpeg documentation](https://ffmpeg.org/documentation.html)
- [GStreamer documentation](https://gstreamer.freedesktop.org/documentation/)

---

<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:** [December 2, 2019, 11:10pm UTC](https://mediasoup.discourse.group/t/ffmeg-as-consumer/90/5 "2019-12-02T23:10:48Z")

</div>


