# FFMPEG RTP live stream into a web app

**URL:** <https://mediasoup.discourse.group/t/ffmpeg-rtp-live-stream-into-a-web-app/231>\
**Category:** Integration\
**Created:** [August 24, 2019, 1:25pm UTC](https://mediasoup.discourse.group/t/ffmpeg-rtp-live-stream-into-a-web-app/231 "2019-08-24T13:25:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stearnsbq](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@stearnsbq](https://mediasoup.discourse.group/u/stearnsbq)\
**Post date:** [August 24, 2019, 1:25pm UTC](https://mediasoup.discourse.group/t/ffmpeg-rtp-live-stream-into-a-web-app/231/1 "2019-08-24T13:25:10Z")

</div>

I am having issues getting a RTP stream from ffmpeg. I followed all of the examples and guidelines on [https://mediasoup.org/documentation/v3/communication-between-client-and-server/](https://mediasoup.org/documentation/v3/communication-between-client-and-server/), however once I try to consume the PlainRtpTransport on the client side the promise rejects with the error “no active media section found”.

What I am doing is basically creating stream of a virtual desktop to the mediaserver to be displayed in a webapp which users can control the mouse and be able to watch videos or w/e with eachother however I am stuck getting the actual stream on the page.

My Code:

> <https://gist.github.com/stearnsbq/525da996147912d40ac5fed3062bc6a6>

FFMPEG line

```auto
ffmpeg -s 1280x768 -f x11grab -i :0 -map 0:v:0 -vcodec libx264 -preset fast -tune zerolatency -s 1280x768 -f tee "[select=v:f=rtp:ssrc=22222222:payload_type=102]rtp://127.0.0.1:30983"

```

---

<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:** [August 25, 2019, 9:46pm UTC](https://mediasoup.discourse.group/t/ffmpeg-rtp-live-stream-into-a-web-app/231/2 "2019-08-25T21:46:45Z")

</div>

You should not use “127.0.0.1” as WebRtcTransport `listenIps`. Browsers do not allow media in UDP localhost.

---

<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:** [September 2, 2019, 12:24am UTC](https://mediasoup.discourse.group/t/ffmpeg-rtp-live-stream-into-a-web-app/231/3 "2019-09-02T00:24:36Z")

</div>

Closing due to inactivity.

---

<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:** [September 2, 2019, 12:24am UTC](https://mediasoup.discourse.group/t/ffmpeg-rtp-live-stream-into-a-web-app/231/4 "2019-09-02T00:24:47Z")

</div>


