Last active
March 27, 2023 22:50
-
-
Save cfobel/f72d4d6f834ee66062e205337886bf0f to your computer and use it in GitHub Desktop.
WebRTC Stream Logitech C920 through Janus gateway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; /opt/janus/etc/janus/janus.plugin.streaming.cfg | |
; [stream-name] | |
; type = rtp|live|ondemand|rtsp | |
; rtp = stream originated by an external tool (e.g., gstreamer or | |
; ffmpeg) and sent to the plugin via RTP | |
; live = local file streamed live to multiple listeners | |
; (multiple listeners = same streaming context) | |
; ondemand = local file streamed on-demand to a single listener | |
; (multiple listeners = different streaming contexts) | |
; rtsp = stream originated by an external RTSP feed (only | |
; available if libcurl support was compiled) | |
; id = <unique numeric ID> (if missing, a random one will be generated) | |
; description = This is my awesome stream | |
; is_private = yes|no (private streams don't appear when you do a 'list' | |
; request) | |
; secret = <optional password needed for manipulating (e.g., destroying | |
; or enabling/disabling) the stream> | |
; pin = <optional password needed for watching the stream> | |
; filename = path to the local file to stream (only for live/ondemand) | |
; audio = yes|no (do/don't stream audio) | |
; video = yes|no (do/don't stream video) | |
; The following options are only valid for the 'rtp' type: | |
; audioport = local port for receiving audio frames | |
; audiomcast = multicast group port for receiving audio frames, if any | |
; audiocodec = <audio RTP payload type> (e.g., 111) | |
; audiortpmap = RTP map of the audio codec (e.g., opus/48000/2) | |
; videoport = local port for receiving video frames | |
; videomcast = multicast group port for receiving video frames, if any | |
; videocodec = <video RTP payload type> (e.g., 100) | |
; videortpmap = RTP map of the video codec (e.g., VP8/90000) | |
; videobufferkf = yes|no (whether the plugin should store the latest | |
; keyframe and send it immediately for new viewers, EXPERIMENTAL) | |
; url = RTSP stream URL (only for restreaming RTSP) | |
; | |
; To test the [gstreamer-sample] example, check the test_gstreamer.sh | |
; script in the plugins/streams folder. To test the live and on-demand | |
; audio file streams, instead, the install.sh installation script | |
; automatically downloads a couple of files (radio.alaw, music.mulaw) | |
; to the plugins/streams folder. | |
[gstreamer-sample] | |
type = rtp | |
id = 1 | |
description = H.264 live stream coming from gstreamer | |
audio = no | |
video = yes | |
videoport = 5004 | |
videopt = 126 | |
videortpmap = H264/90000 | |
videofmtp = profile-level-id=42e01f\;packetization-mode=1 | |
;secret = adminpwd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gst-launch-1.0 -v -e v4l2src device=/dev/video1 ! queue ! \ | |
video/x-h264,width=640,height=480,framerate=30/1,profile=baseline ! \ | |
h264parse ! \ | |
rtph264pay config-interval=2 pt=126 ! udpsink host=127.0.0.1 port=5004 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment