Ullaakut / RTSPAllTheThings

Deprecated RTSP media server -- Use github.com/aler9/rtsp-simple-server instead.
Apache License 2.0
278 stars 72 forks source link

Feature request / implementation #74

Closed hhi-privat closed 5 years ago

hhi-privat commented 5 years ago

Hello! First of all: very nice server! It fits already 90% of my requirements. I´ve also spent days in the WWW to find a solution for my problem. My scenario: i´m receiving UDP / RTP streams and have to provide them via RTSP and authentification. Actually your server accepts only files as source. It´s possible to implement also UDP / RTP sources? Thx a lot for an answer. Greetings, Holger

Ullaakut commented 5 years ago

Hi Holger,

Thanks for sharing your use-case. RTSPATT doesn't only support file inputs, the list of supported input methods is documented here.

INPUT | -i: Input used as video source. [default: pattern:smtpe]

If the argument starts with rtsp:// it will try to open it as an RTSP stream.

If it starts with pattern: it will create a test video with the given pattern (see this link for more information on this argument)

If the argument starts with /dev/video it will create a stream from the /dev/video device passed into docker at the launch of the instance. You will need to pass in the video device as follows: --device=/dev/video0:/dev/video0 where video0 is the video device.

Otherwise it will use the argument as an absolute link to file input. Remember to use the -v option to insert a video into your container if you want to read it. Example: docker run -e INPUT=/tmp/video.mp4 -v /home/test/documents/myVideo.mp4:/tmp/video -p 8554:8554 ullaakut/rtspatt

The repository contains a 30 second sample video in the samples folder.

Ullaakut commented 5 years ago

UDP/RTP sources are not supported at the moment though, but I won't be able to implement that feature. Are you able to look into it? You'll need to be familiar with gstreamer pipelines.

Here are some resources to get you started:

hhi-privat commented 5 years ago

THX for your efforts. I´ve build my own solution with gstreamer inspired by your work an your links. No it works.