Output sink to the RTSP or file

  1. I added it in deepstream_test1_app.c
    G_object_set (G_OBJECT (sink), “location”, “out_test1.mp4”, NULL);

Error reported after execution
: g_object_set_valist: object class ‘GstEglGlesSink’ has no property named ‘location’

(deepstream-test1-app:142869): GLib-GObject-WARNING **: g_object_set_valist: object class ‘GstEglGlesSink’ has no property named ‘location’
Now playing: /root/workspace/DeepStream_Release/samples/streams/sample_720p.h264

Generating new TRT model engine
Using INT8 data type.
Int8 support requested on hardware without native Int8 support, performance will be negatively affected.

2.If I want to output sink to the RTSP, in the deepstream_test1_app.c example, how do I specify the sink element

For rtsp sink, deepstream-app supports it:

[sink2]
enable=0
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=4
#1=mp4 2=mkv
container=2
#1=h264 2=h265 3=mpeg4

only mpeg4 is supported right now.

codec=1
sync=0
bitrate=4000

set below properties in case of RTSPStreaming

rtsp-port=8554
udp-port=5400

For file sink,

[sink1]
enable=0
type=3
#1=mp4 2=mkv
container=1
#1=h264 2=h265 3=mpeg4

only SW mpeg4 is supported right now.

codec=3
sync=0
bitrate=2000000
output-file=out.mp4
source-id=0

Hi ChrisDing,

This works for deepstream-app but I want to implement it within test-1 app. Could you kindly provide an example code for creating a sink bin for rtsp streaming?
It would be very helpful.

Best regards.