# push video to mediasoup with gstreamer

**URL:** <https://mediasoup.discourse.group/t/push-video-to-mediasoup-with-gstreamer/569>\
**Category:** Integration\
**Created:** [February 11, 2020, 9:21am UTC](https://mediasoup.discourse.group/t/push-video-to-mediasoup-with-gstreamer/569 "2020-02-11T09:21:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Codeda](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@Codeda](https://mediasoup.discourse.group/u/Codeda)\
**Post date:** [February 11, 2020, 9:21am UTC](https://mediasoup.discourse.group/t/push-video-to-mediasoup-with-gstreamer/569/1 "2020-02-11T09:21:09Z")

</div>

Is there any example of pushing video to mediasoup with gstreamer? I tried this way, but can’t play the stream.

```auto
gst-launch-1.0 --eos-on-shutdown rtpbin name=rtpbin rtp-profile=avpf videotestsrc ! video/x-raw,width=640,height=480,framerate=15/1 ! vp8enc ! rtpvp8pay ssrc=22222222 pt=102 ! rtprtxqueue max-size-time=2000 max-size-packets=0 ! rtpbin.send_rtp_sink_0 rtpbin.send_rtp_src_0 ! udpsink bind-address=127.0.0.1 host=127.0.0.1 bind-port=10200 port=10090 rtpbin.send_rtcp_src_0 ! udpsink bind-address=127.0.0.1 host=127.0.0.1 port=10061 sync=false async=false udpsrc port=10201 ! rtpbin.recv_rtcp_sink_0

```

10090 is plainRtpTransport.tuple.localPort  
10061 is plainRtpTransport.rtcpTuple.localPort  
Other 2 ports are connected this way:

```auto
await plainRtpTransport.connect({
                ip: '127.0.0.1',
                port:10200 ,
                rtcpPort: 10201 
            });

```

All this code (without plainRtpTransport.connect and that 2 additional ports) is working with ffmpeg. But not for gstreamer.  
P.S. for ffmpeg version `createPlainRtpTransport` with `comedia: true`. It also not working for gstreamer.

---

<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:** [February 11, 2020, 9:56am UTC](https://mediasoup.discourse.group/t/push-video-to-mediasoup-with-gstreamer/569/2 "2020-02-11T09:56:19Z")

</div>

Yes, there are examples with GStreamer in the Examples section of the mediasoup website.

---

<div class="post-metadata">

**Author:** ![Codeda](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@Codeda](https://mediasoup.discourse.group/u/Codeda)\
**Post date:** [February 11, 2020, 10:02am UTC](https://mediasoup.discourse.group/t/push-video-to-mediasoup-with-gstreamer/569/3 "2020-02-11T10:02:14Z")

</div>

I found recording examples and plugin. But can’t find an example of pushing file to mediasoup with gstreamer.

---

<div class="post-metadata">

**Author:** ![anovikov1984](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/anovikov1984/32/226_2.png) [@anovikov1984](https://mediasoup.discourse.group/u/anovikov1984)\
**Post date:** [February 11, 2020, 11:01am UTC](https://mediasoup.discourse.group/t/push-video-to-mediasoup-with-gstreamer/569/4 "2020-02-11T11:01:04Z")

</div>

Yeah, can anyone offer an example of how do i record a stream into a file, then play it out, without transcoding? Recording into a file is trivial, but then it’s unlear how to play out that same file, this is my problem…

---

<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:** [February 11, 2020, 11:30am UTC](https://mediasoup.discourse.group/t/push-video-to-mediasoup-with-gstreamer/569/5 "2020-02-11T11:30:42Z")

</div>

In theory, if you follow the code in [here](https://github.com/vpalmisano/mediasoupbin/tree/master/gst/plugins/python) you should be able to figure out how to do the same with gstreamer command line. I just don’t know GStreamer so cannot help much here.

---

<div class="post-metadata">

**Author:** ![sunqi](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/sunqi/32/300_2.png) [@sunqi](https://mediasoup.discourse.group/u/sunqi)\
**Post date:** [April 4, 2020, 11:42am UTC](https://mediasoup.discourse.group/t/push-video-to-mediasoup-with-gstreamer/569/6 "2020-04-04T11:42:50Z")

</div>

Hi, Is there any progress about “relay video stream without transcode” ?I want to send encoded h264 to mediasoup with gstreamer.I can get video appeared in browser but the video STUCKED frequently.

---

<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:** [April 4, 2020, 11:49am UTC](https://mediasoup.discourse.group/t/push-video-to-mediasoup-with-gstreamer/569/7 "2020-04-04T11:49:24Z")

</div>

Making questions is ok. Never helping others is not.

> [@Community means helping others, not just yourself](https://mediasoup.discourse.group/t/community-means-helping-others-not-just-yourself/632/):
>
> Hi all, Lately, many questions are being asked in this forum, many of them not directly related to mediasoup but to other topics. I guess that most of them may be solved by just reading the extensive [documentation](https://mediasoup.org/documentation/v3/) available in the mediasoup website. Making questions is fine. Just using the forum to make those questions and never reply nor help to others is not that fine. We, mediasoup authors, have limited time and we are not being paid for giving free support. In order to make this forum mor…

---

<div class="post-metadata">

**Author:** ![sunqi](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/sunqi/32/300_2.png) [@sunqi](https://mediasoup.discourse.group/u/sunqi)\
**Post date:** [April 4, 2020, 12:05pm UTC](https://mediasoup.discourse.group/t/push-video-to-mediasoup-with-gstreamer/569/8 "2020-04-04T12:05:43Z")

</div>

> [@Codeda](#):
>
> vp8enc

I think that you have to add more encode options ,just like what the example does
