# Does Sink support rtmpsink?

**URL:** <https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903>\
**Category:** DeepStream SDK\
**Created:** [December 11, 2019, 2:51am UTC](https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903 "2019-12-11T02:51:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![15618561709](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@15618561709](https://forums.developer.nvidia.com/u/15618561709)\
**Post date:** [December 11, 2019, 2:51am UTC](https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903/1 "2019-12-11T02:51:07Z")

</div>

Hi, i want to parse the NVDS\_ELEM\_ENC\_H264 to rtmp server use gst-plugin rtmpsink

```auto
gst-launch-1.0 -v videotestsrc ! ffenc_flv ! flvmux ! rtmpsink location='rtmp://localhost/path/to/stream live=1'

https://gstreamer.freedesktop.org/documentation/rtmp/rtmpsink.html?gi-language=c#pad-templates

```

is there any suggestion ?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [December 11, 2019, 5:05am UTC](https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903/2 "2019-12-11T05:05:03Z")

</div>

Hi,  
The existing implementation is RTSP. Please install [DS4.0.1](https://devtalk.nvidia.com/default/topic/1063437/deepstream-sdk/announcing-deepstream-sdk-4-0-1/) through sdkmanager and check  
[https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream\_Development\_Guide%2Fdeepstream\_quick\_start.html](https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream_Development_Guide%2Fdeepstream_quick_start.html)

You can try to run RTSP in deepstream-app first, and then customize into rtmpsink.

---

<div class="post-metadata">

**Author:** ![15618561709](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@15618561709](https://forums.developer.nvidia.com/u/15618561709)\
**Post date:** [December 11, 2019, 6:52am UTC](https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903/3 "2019-12-11T06:52:13Z")

</div>

> [@DaneLLL](#):
>
> Hi,  
> The existing implementation is RTSP. Please install [DS4.0.1](https://devtalk.nvidia.com/default/topic/1063437/deepstream-sdk/announcing-deepstream-sdk-4-0-1/) through sdkmanager and check  
> [https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream\_Development\_Guide%2Fdeepstream\_quick\_start.html](https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream_Development_Guide%2Fdeepstream_quick_start.html)
> 
> You can try to run RTSP in deepstream-app first, and then customize into rtmpsink.

how can i customize in my code??? i have run the rtsp, and see sink.bin.c. Does the rtmp block the stream?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [December 11, 2019, 8:43am UTC](https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903/4 "2019-12-11T08:43:25Z")

</div>

Hi,  
The code is in

```auto
deepstream_sdk_v4.0.1_jetson\sources\apps\apps-common\src\deepstream_sink_bin.c

```

You should need to add code of constructing ‘flvmux ! rtmpsink’

---

<div class="post-metadata">

**Author:** ![shankar.roy](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@shankar.roy](https://forums.developer.nvidia.com/u/shankar.roy)\
**Post date:** [February 3, 2020, 9:45pm UTC](https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903/5 "2020-02-03T21:45:58Z")

</div>

I am trying to add [rtmpsink](https://gstreamer.freedesktop.org/documentation/rtmp/rtmpsink.html) but unable to do so.

Failing while trying to create the pipeline in deepstream\_app.c

```auto
demux_src_pad = gst_element_get_request_pad (pipeline->demuxer, pad_name);
NVGSTDS_LINK_ELEMENT_FULL (pipeline->demuxer, pad_name, pipeline->instance_bins[i].bin, "sink");

```

Modified deepstream\_app code can be found in [https://github.com/fesku/deepstream/blob/4.0.2\_x86\_64\_dev](https://github.com/fesku/deepstream/blob/4.0.2_x86_64_dev)

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![mherrera](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mherrera](https://forums.developer.nvidia.com/u/mherrera)\
**Post date:** [February 28, 2020, 4:22am UTC](https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903/6 "2020-02-28T04:22:29Z")

</div>

Hi jsbluecat:  
This example ran ok in my Jetson Nano L4T 32.3.1. This test was executed to stream into youtube, if you like to execute, must get from youtube the key

gst-launch-1.0 -v videotestsrc ! capsfilter caps=‘video/x-raw, width=640, height=480, format=(string)YUY2’   
! nvvidconv   
! nvv4l2h264enc   
! h264parse   
! queue   
! flvmux name=mux streamable=true   
! rtmpsink location=rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx alsasrc device=hw:2   
! queue   
! audioresample  
! audio/x-raw,rate=16000   
! voaacenc bitrate=16000  
! audio/mpeg   
! aacparse   
! audio/mpeg, mpegversion=4   
! mux. # Ok on jetson nano

If you’ll execute on local server rtmp, try:

gst-launch-1.0 -v videotestsrc ! capsfilter caps=‘video/x-raw, width=640, height=480, format=(string)YUY2’   
! nvvidconv   
! nvv4l2h264enc   
! h264parse   
! queue   
! flvmux name=mux streamable=true   
! rtmpsink location=rtmp://localhost/path/to/stream…

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [March 3, 2020, 7:38am UTC](https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903/7 "2020-03-03T07:38:59Z")

</div>

> [@](#):
>
> Hi jsbluecat:  
> This example ran ok in my Jetson Nano L4T 32.3.1. This test was executed to stream into youtube, if you like to execute, must get from youtube the key
> 
> …

Appreciate your sharing and contribution.

---

<div class="post-metadata">

**Author:** ![290844930](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@290844930](https://forums.developer.nvidia.com/u/290844930)\
**Post date:** [July 2, 2021, 4:15am UTC](https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903/8 "2021-07-02T04:15:24Z")

</div>

Hello, does this work on x86 system?

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [July 6, 2021, 3:51am UTC](https://forums.developer.nvidia.com/t/does-sink-support-rtmpsink/108903/9 "2021-07-06T03:51:21Z")

</div>


