Does Sink support rtmpsink?

Hi, i want to parse the NVDS_ELEM_ENC_H264 to rtmp server use gst-plugin rtmpsink

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 ?

Hi,
The existing implementation is RTSP. Please install DS4.0.1 through sdkmanager and check
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?

Hi,
The code is in

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’

I am trying to add rtmpsink but unable to do so.

Failing while trying to create the pipeline in deepstream_app.c

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

Any help would be greatly appreciated.

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…

Appreciate your sharing and contribution.

Hello, does this work on x86 system?