Replies: 3 comments
-
Hello,
Yes, use ffmpeg together with rtsp-simple-server to manipulate the video, and publish the result on another path, like explained in the readme: https://github.com/aler9/rtsp-simple-server#remuxing-re-encoding-compression For instance, if your video is published on paths:
all:
mystream:
runOnPublish: ffmpeg -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -vf scale=320:240 -c:v libx264 -f rtsp rtsp://localhost:$RTSP_PORT/mystream2
runOnPublishRestart: yes
The RTSP protocol allows to implement this feature, since the server sends periodically to a publisher RTCP packets which contain QOS informations, that allows to tune the bandwidth, but the source (the DJI drone) must support the feature natively, and it doesn't. |
Beta Was this translation helpful? Give feedback.
-
Hi, @aler9 thank you a lot! i run for example : and I try to connect from the GStreamer client and I get on the RTSP simple server-side: ERR: no one is publishing to path 'mystream2' again thank you! |
Beta Was this translation helpful? Give feedback.
-
i tested this exact pipeline, without touching anything, and it works like a charm - make sure that it is publishing to the server, and only after, try to connect a client. |
Beta Was this translation helpful? Give feedback.
-
Which version are you using?
gst-launch-1.0
Linux 18.04
Question
I publish stream from the drone (DJI) to the RTSP server by building a pipeline of rtspclientsink. ( i guess the RTSP server share the stream with RTP)
On the localhost on my DJI computer(without using a cellular network), it was played very well, but when I publish the stream with the cellular network the client-side can connect to the RTSP server, but the frames stuck...
I use (appsrc h264parse video/x-h264 rtspclientsink location=rtsp://localhost:8554/mystream)
my question is: is there a way with this server to get a publish stream, and scale it or make some manipulation on it (maybe in the ymal file?)
second question
the command line stream "appsrc name=mysrc ! queue ! decodebin ! videorate ! video/x-raw,framerate=24/1 !x264enc speed-preset=superfast tune=zerolatency ! h264parse ! rtph264pay name=pay0 pt=96 "
my question is: is there a way in this GO rtsp server to recognize if the bandwidth low and to reduce the resulotion quality
thank you all :)
Gadi
Beta Was this translation helpful? Give feedback.
All reactions