{"id":18929135,"url":"https://github.com/jwillikers/mediamtx-config","last_synced_at":"2025-04-15T14:31:58.327Z","repository":{"id":241400201,"uuid":"806736598","full_name":"jwillikers/mediamtx-config","owner":"jwillikers","description":"Configuration for my MediaMTX server","archived":true,"fork":false,"pushed_at":"2024-10-01T20:12:36.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T21:52:13.393Z","etag":null,"topics":["config","mediamtx","rtsp","webrtc"],"latest_commit_sha":null,"homepage":"https://codeberg.org/jwillikers/mediamtx-config","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwillikers.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.adoc","code_of_conduct":"CODE_OF_CONDUCT.adoc","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-27T19:45:29.000Z","updated_at":"2024-10-01T20:13:30.000Z","dependencies_parsed_at":"2024-05-28T06:44:50.144Z","dependency_job_id":null,"html_url":"https://github.com/jwillikers/mediamtx-config","commit_stats":null,"previous_names":["jwillikers/mediamtx-config"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwillikers%2Fmediamtx-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwillikers%2Fmediamtx-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwillikers%2Fmediamtx-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwillikers%2Fmediamtx-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwillikers","download_url":"https://codeload.github.com/jwillikers/mediamtx-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249088897,"owners_count":21210879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config","mediamtx","rtsp","webrtc"],"created_at":"2024-11-08T11:30:15.444Z","updated_at":"2025-04-15T14:31:58.054Z","avatar_url":"https://github.com/jwillikers.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"= MediaMTX Config\nJordan Williams \u003cjordan@jwillikers.com\u003e\n:experimental:\n:icons: font\nifdef::env-github[]\n:tip-caption: :bulb:\n:note-caption: :information_source:\n:important-caption: :heavy_exclamation_mark:\n:caution-caption: :fire:\n:warning-caption: :warning:\nendif::[]\n:MediaMTX: https://github.com/bluenviron/mediamtx[MediaMTX]\n\nMy configuration for {MediaMTX}, a video streaming proxy server.\n\n== Usage\n\nThis repository contains the configuration files for {MediaMTX}.\nThe configuration is meant to be used with the containers from the https://codeberg.org/jwillikers/home-lab-helm[Home Lab Helm] repository.\n\n. Create a `Projects` directory in the current user's home directory.\n+\n[,sh]\n----\nmkdir --parents ~/Projects\n----\n\n. Clone this repository under `~/Projects`.\n+\n[,sh]\n----\ngit -C ~/Projects clone https://codeberg.org/jwillikers/mediamtx-config.git\n----\n\n// . Determine the UID mappings inside the rootless user's namespace.\n// +\n// [,sh]\n// ----\n// podman unshare cat /proc/self/uid_map\n//          0        818          1\n//          1     655360      65536\n// ----\n\n// . Do the math to determine the UID outside of the container that is used for user inside the container.\n// In this case, the container defaults to UID 0 inside the container.\n// From the output of the previous command, we can see that UID 1 maps to UID 655360.\n// The following expression yields the UID outside of the container.\n// +\n// [,sh]\n// ----\n// math 655360 + 0 - 1\n// 655359\n// ----\n\n// . Make sure that files are owned by the subuid that will map to the `root` user in the container.\n// +\n// [,sh]\n// ----\n// sudo chown --recursive 655359 config\n// ----\n\n. Then mount the provided `mediamtx.yaml` file inside the MediaMTX server container at `/mediamtx.yaml`.\n\n== Publish a Stream\n\nA stream can be published to the server.\nThe following example demonstrates how to publish an RTSP stream from a Raspberry Pi 5 using GStreamer.\n\n. Install the necessary dependencies.\n+\n[,sh]\n----\nsudo apt install --yes libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-plugins-ugly gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-gl gstreamer1.0-plugins-base-apps libcamera-dev gstreamer1.0-libcamera gstreamer1.0-rtsp\n----\n\n. Use the `gst-launch-1.0` command to create a pipeline and publish the camera feed to the server.\n+\n[,sh]\n----\ngst-launch-1.0 -v libcamerasrc ! video/x-raw, format=RGBx, width=1920, height=1080, framerate=30/1 ! videoconvert ! video/x-raw,format=I420 ! openh264enc complexity=high multi-thread=4 rate-control=buffer slice-mode=auto ! video/x-h264,profile=baseline ! rtspclientsink location=rtsp://mediamtx.jwillikers.io:8554/detectionator protocols=tcp\n----\n\n== Code of Conduct\n\nPlease refer to the project's link:CODE_OF_CONDUCT.adoc[Code of Conduct].\n\n== License\n\nThis repository is licensed under the https://www.gnu.org/licenses/gpl-3.0.html[GPLv3].\nPlease refer to the bundled link:LICENSE.adoc[license].\n\n== Copyright\n\n© 2024 Jordan Williams\n\n== Authors\n\nmailto:{email}[{author}]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwillikers%2Fmediamtx-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwillikers%2Fmediamtx-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwillikers%2Fmediamtx-config/lists"}