]> ToastFreeware Gitweb - toast/stream2beamer.git/blobdiff - protocols.md
Add visualization of concept.
[toast/stream2beamer.git] / protocols.md
index 8f76a50fe4c19e2a7de9050c9aa2f2a5c69d6f88..d5e462de1aeed2218056715694cfcfcdb4374e37 100644 (file)
@@ -10,7 +10,8 @@
            -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
   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
 
     ffplay -i rtsp://localhost:554/abc