X-Git-Url: https://git.toastfreeware.priv.at/toast/stream2beamer.git/blobdiff_plain/d0967d2631fdb3e555d9bcc564506a17b2dfe9ed..e97741140341d1c98f6cb350d819a988c8b73bbd:/protocols.md?ds=sidebyside diff --git a/protocols.md b/protocols.md index 0e3f1bc..d5e462d 100644 --- a/protocols.md +++ b/protocols.md @@ -10,8 +10,20 @@ -async 1 -acodec libmp3lame \ -bsf:v h264_mp4toannexb \ -f rtsp -muxdelay 0.1 rtsp://localhost:5545/abc - gst-launch-1.0 videotestsrc ! avenc_mpeg4 ! video/mpeg, mapping=/stream1 ! rtspclientsink location=rtsp://127.0.0.1:5545/abcd + gst-launch-1.0 videotestsrc ! avenc_mpeg4 ! video/mpeg, mapping=/stream1 ! rtspclientsink location=rtsp://localhost:8554/abcd + gst-launch-1.0 videotestsrc ! vp8enc ! video/x-vp8 ! rtspclientsink location=rtsp://localhost:8554/abcd +### OBS (Open Broadcast Studio): +* Use rtsp://localhost:8554/abc in the recording options with RTSP container format and "start recording" or +* if using the [rtsp-simple-server](https://github.com/aler9/rtsp-simple-server), enter "rtmp://localhost/abc" + in the streaming section and "start streaming". Although RTMP is used for sending to the RTSP server, the RTSP + protocol can be used to receive the stream. + +### Send to RTSP server via RTMP + +* https://forums.developer.nvidia.com/t/how-to-publish-x264-encode-data-to-rtmpsink-in-gstreamer/64288/5 + + gst-launch-1.0 -v videotestsrc ! x264enc ! 'video/x-h264,stream-format=(string)avc' ! flvmux ! rtmpsink location=rtmp://sirius:1935/gregoa ## Receiving stream via RTSP @@ -28,3 +40,7 @@ * Error handling SETUP: Can't call method "get_stream" on an undefined value at /usr/share/perl5/RTSP/Server/Client/Connection.pm line 100. * RTSP/Server/Connection.pm:332, function get_mount * https://github.com/aler9/rtsp-simple-server + * `make release-nodocker` (optionally after commenting out all unneeded + architectures in `Makefile`, and maybe also the call to tar. Cf. ./tmp + and ./release afterwards) + * Default port for both sources and clients: 8554