Repository Analysis

bluenviron/mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS / MPEG-TS / RTP media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.

0.5 Likely human-written View on GitHub
0.5
Adjusted Score
0.5
Raw Score
100%
Time Factor
2026-05-30
Last Push
18,918
Stars
Go
Language
77,553
Lines of Code
458
Files
46
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 46

Pattern Findings

46 matches across 1 category. Click a row to expand file-level details.

Over-Commented Block46 hits · 38 pts
SeverityFileLineSnippet
LOWmediamtx.yml1###############################################
LOWmediamtx.yml21
LOWmediamtx.yml41# * MTX_CONN_TYPE: connection type
LOWmediamtx.yml101# "token": "token",
LOWmediamtx.yml121 - action: api
LOWmediamtx.yml141# If the JWKS URL has a self-signed or invalid certificate,
LOWmediamtx.yml161api: false
LOWmediamtx.yml181###############################################
LOWmediamtx.yml201# These proxies can use the X-Forwarded-For header to set the real IP of clients,
LOWmediamtx.yml221# Allowed CORS origins.
LOWmediamtx.yml241# openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
LOWmediamtx.yml281# Port of all UDP-multicast/SRTP listeners. This is needed only when "multicast" is in rtspTransports and encryption is
LOWmediamtx.yml301# Use the secure protocol variant (RTMPS).
LOWmediamtx.yml321# Address of the HLS listener.
LOWmediamtx.yml341# This option allows to generate it always, avoiding the delay between request and generation.
LOWmediamtx.yml361# Part duration is influenced by the distance between video/audio samples
LOWmediamtx.yml381
LOWmediamtx.yml401# If the server receives a request from one of these entries, IP in logs
LOWmediamtx.yml421# TURN/TURNS servers force all traffic through them.
LOWmediamtx.yml441# Address of the SRT listener.
LOWmediamtx.yml461 # * rtmp://existing-url -> the stream is pulled from another RTMP server / camera
LOWmediamtx.yml481 # openssl s_client -connect source_ip:source_port </dev/null 2>/dev/null | sed -n '/BEGIN/,/END/p' > server.crt
LOWmediamtx.yml501 # Default path settings -> Always available
LOWmediamtx.yml521 record: false
LOWmediamtx.yml541 recordDeleteAfter: 1d
LOWmediamtx.yml561 # Support sources that don't provide server ports or use random server ports. This is a security issue
LOWmediamtx.yml581 # session description protocol (SDP) of the RTP stream.
LOWmediamtx.yml621 rpiCameraContrast: 1
LOWmediamtx.yml641 # Fixed gain.
LOWmediamtx.yml661 rpiCameraAfSpeed: normal
LOWmediamtx.yml701 # This can be used to publish a stream when the server is launched.
LOWmediamtx.yml721 # a regular expression.
LOWmediamtx.yml741 # * MTX_SOURCE_TYPE: source type
LOWmediamtx.yml761 # * G1, G2, ...: regular expression groups, if path name is
LOWmediamtx.yml781 # * MTX_PATH: path name
LOWinternal/defs/api_srt.go41 PacketsReceived uint64 `json:"packetsReceived"`
LOWinternal/defs/api_srt.go61 // The total number of sent NAK (Negative Acknowledgement) control packets
LOWinternal/defs/api_srt.go81
LOWinternal/defs/api_srt.go121 MbpsLinkCapacity float64 `json:"mbpsLinkCapacity"`
LOWdocs/4-read/05-hls.md41# Supports wildcards: ['http://*.example.com']
LOWdocs/4-read/05-hls.md61# The final segment duration is also influenced by the interval between IDR frames,
LOWdocs/2-features/21-hooks.md41 # * MTX_PATH: path name
LOWdocs/2-features/21-hooks.md81## runOnReady
LOWdocs/2-features/21-hooks.md121 # This is terminated with SIGINT when a client stops reading.
LOWdocs/2-features/09-record.md21
LOWdocs/3-publish/06-rtsp-cameras-and-servers.md21