diff --git a/Projects/MediaMtx/.gitignore b/Projects/MediaMtx/.gitignore new file mode 100644 index 00000000..554c0a32 --- /dev/null +++ b/Projects/MediaMtx/.gitignore @@ -0,0 +1,3 @@ +Debug/ +Release/ +Asan/ diff --git a/Projects/MediaMtx/LICENSE.mediamtx b/Projects/MediaMtx/LICENSE.mediamtx new file mode 100644 index 00000000..50bbbd83 --- /dev/null +++ b/Projects/MediaMtx/LICENSE.mediamtx @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 aler9 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Projects/MediaMtx/README.md b/Projects/MediaMtx/README.md new file mode 100644 index 00000000..03f837a2 --- /dev/null +++ b/Projects/MediaMtx/README.md @@ -0,0 +1,113 @@ +# MediaMtx (C++) + +A C++ replacement for the parts of [MediaMTX](https://github.com/bluenviron/mediamtx) that la_mojo uses: + +* **RTSP pull** of the camera streams (live555), H264 video, TCP or UDP, automatic reconnect +* **WebRTC / WHEP** playback in the browser on port 8889 (libdatachannel) - the same URLs as MediaMTX: + `POST http://:8889/stream_N/whep`, so `mojo_dashboard.js` works unchanged +* **Recording** as fragmented MP4 segments (the camera's H264 as it is, no transcoding) that a browser + plays with `