{"repo":"klaxa/mkvserver_mk2","free":true,"listed":false,"github":"https://github.com/klaxa/mkvserver_mk2","clone":"git clone https://github.com/klaxa/mkvserver_mk2.git","description":"The streaming solution to end all streaming problems","language":"C","stars":511,"topics":["ffmpeg","matroska","http-server","video-streaming"],"license":"GPL-3.0","category":"networking-infra","readme_excerpt":"Matroska Server Mk2 =================== This project is the result of years of thinking, trying and finally succeeding. This software makes it possible to stream (almost) anything remuxed as matroska live in real-time over http to multiple clients. This is probably also one of the first real world usages of FFmpeg's http server component (which I wrote as part of GSoC 2015). The second sentence basically said everything already, so let's dive into some usage examples: First of all, clone the repo and try to build the project: If successful you will have built the server binary. Let's get some files to stream! This will serve the file somevideo.mkv on all interfaces on port 8080 (so far only configurable in server2.c) in real-time. You can also use stdin from a live feed for example: Or just read it directly as an http served file: Or you can have an easy screencasting setup: On a server: On a client: You will see the server writing some information, as it is still quite verbose (it was even more verbose in earlier versions for obvious reasons ;) ). Architecture ------------ With the latest iteration more sophisticated data structures have been used. The following structs make up the architecture: Segment Contains a segment of data. A segment is always exactly one GOP, that implies segments always start at a keyframe. Segments are refcounted. BufferContext Circular buffer that manages segments and takes care of refcounting them. PublisherContext Holds a BufferContext for new s","default_branch":null,"files":null,"tree":[],"storefront":"/r/klaxa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/klaxa/mkvserver_mk2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}