<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Live Miracles</title>
    <description>The latest articles on DEV Community by Live Miracles (livemiracles).</description>
    <link>https://dev.to/livemiracles</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F15494%2F57eb819c-a2d5-4a03-a789-040c16c9637e.png</url>
      <title>DEV Community: Live Miracles</title>
      <link>https://dev.to/livemiracles</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/livemiracles"/>
    <language>en</language>
    <item>
      <title>A full web controller for vMix: control everything from your browser</title>
      <dc:creator>Nandisha</dc:creator>
      <pubDate>Sun, 15 Nov 2026 06:59:39 +0000</pubDate>
      <link>https://dev.to/livemiracles/a-full-web-controller-for-vmix-control-everything-from-your-browser-29g2</link>
      <guid>https://dev.to/livemiracles/a-full-web-controller-for-vmix-control-everything-from-your-browser-29g2</guid>
      <description>&lt;p&gt;vMix runs on one computer, usually in the studio, and the person who needs to control it is not always standing next to it. A colleague wants to see what is on air. An operator has a problem with the audio. You want to know how long the current video has left.&lt;/p&gt;

&lt;p&gt;vMix has a built-in Web Controller for this, and we tried it first. It is minimal: it shows each input as a type letter and a number, such as &lt;code&gt;V 5&lt;/code&gt;, so during a live show you have to remember what &lt;code&gt;V 5&lt;/code&gt; is, and it is meant for a few inputs and simple switching. We wanted the whole vMix on a web page, so we built &lt;a href="https://github.com/live-miracles/vmix-master" rel="noopener noreferrer"&gt;vMix Master&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is on the page
&lt;/h2&gt;

&lt;p&gt;vMix Master is laid out like vMix itself, so it feels familiar from the first minute.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsida7nujybwn2y97h7wy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsida7nujybwn2y97h7wy.png" alt="vMix Master in demo mode: program and preview with timers, audio buses with meters, and every input by name" width="800" height="514"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Program and preview&lt;/strong&gt; with large timers, a position slider, Restart and Play/Pause, and six transition buttons: Quick Play, Cut, Stinger 1, Stinger 2, Fade and FTB.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every input by name&lt;/strong&gt;, with its number, its audio level, and what is on air and in preview. &lt;code&gt;05 Opening Video.mp4&lt;/code&gt; instead of &lt;code&gt;V 5&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A tile for each input&lt;/strong&gt; with overlays 1 to 6, loop, volume, and send-to-bus buttons.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audio buses&lt;/strong&gt; with live level meters.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Function buttons&lt;/strong&gt; for most of the vMix API, grouped by what they do: outputs (external, SRT, recording, streaming), transitions, audio, overlays, playback, countdowns, titles, layers and picture, PTZ, playlists and scripts. A raw request box takes any other function.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Works on a phone or tablet&lt;/strong&gt;, and can be installed as an app from Chrome.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It needs nothing installed. It is a static page that talks straight to the Web Controller your vMix already has, from your browser, over your local network. You can try everything without vMix in the &lt;a href="https://live-miracles.github.io/vmix-master/?demo" rel="noopener noreferrer"&gt;live demo&lt;/a&gt;, which runs simulated systems inside the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we use it day to day
&lt;/h2&gt;

&lt;p&gt;During a session our operators sit in the studio and the support team does not. From the same page on the local network we can open any of their systems and help without going to the room:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If the audio is too loud, lower the volume or the gain.&lt;/li&gt;
&lt;li&gt;To see how long a video has left, and so how long until they go live, open that system and read the timer.&lt;/li&gt;
&lt;li&gt;To start or stop a stream, press the function button instead of asking someone to find it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A bonus: several vMix systems as one
&lt;/h2&gt;

&lt;p&gt;Our setup is unusual, and this part grew out of it. We stream live sessions in English, translated into German, French, Russian, Arabic and more, and each language runs on its own vMix system with its own copy of the media. When English plays a video, every other language has to play the same video in its translated version at the same moment.&lt;/p&gt;

&lt;p&gt;So vMix Master can group systems. Add the English, German, French and Arabic systems, put them in one group, and mark English as the &lt;strong&gt;master&lt;/strong&gt;. Whatever you do on the master, such as a transition or an audio change, is sent to every system in the group at once.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkwtmi78z6dm98x4xfuu6.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkwtmi78z6dm98x4xfuu6.gif" alt="Quick Play on the master starts the video on all three grouped vMix systems" width="760" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We used the same idea at events with vertical and horizontal screens in the hall. One vMix played the vertical version of every video and another played the horizontal one, and one click switched both.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Group Compare&lt;/strong&gt; checks that the systems in a group are set up alike. It matches inputs by the number at the start of their name. A different number or order on one system is an error. A video on one system and a slide on another, for the same number, is a warning about the type. The same video more than 5 seconds longer or shorter on one system is a warning too, and it also checks audio buses, call sources and overlay layers. It is how we find a missing file or a wrong translation when we prepare new content, before the session instead of during it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb6pl77fn311f4t1rhyn7.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb6pl77fn311f4t1rhyn7.webp" alt="The Group Compare window reporting that the opening video is 12 seconds longer on the Spanish system than on the English one" width="799" height="123"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the translations themselves we later moved to a small script that runs inside vMix on each translation system and follows the English one, so those operators never need the website. The &lt;a href="https://live-miracles.github.io/projects/vmix-master/docs/" rel="noopener noreferrer"&gt;slave scripts&lt;/a&gt; are free and live in the same repository. vMix Master is still what we use to monitor and compare the systems, and to step in when something goes wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other options
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://bitfocus.io/companion" rel="noopener noreferrer"&gt;Bitfocus Companion&lt;/a&gt; is a good choice if you want Stream Deck style buttons and hardware surfaces. It is a separate app, and you build your own pages. OBS users have web control panels such as obs-web, and we could not find an equivalent for vMix with this much of the interface, which is why we made one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it doesn't do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It cannot use a Web Controller that has a password. vMix asks for the password in a header that a browser may only send after vMix agrees to it, and vMix does not agree, so Chrome blocks the request and the box shows &lt;code&gt;Web Controller needs a password (401)&lt;/code&gt;. Leave the password off and keep the port on a trusted local network. On the vMix computer itself you can instead tick &lt;strong&gt;Allow software on this computer access without login&lt;/strong&gt; in the Web Controller settings and use &lt;code&gt;127.0.0.1&lt;/code&gt; as the address.&lt;/li&gt;
&lt;li&gt;It has no hardware control surface support.&lt;/li&gt;
&lt;li&gt;It is made for Chrome, which asks once whether the page may reach devices on your local network.&lt;/li&gt;
&lt;li&gt;The slave scripts need vMix 4K or Pro, the editions that have scripting.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;vMix Master is free and open source (MIT). Open the &lt;a href="https://live-miracles.github.io/vmix-master/?demo" rel="noopener noreferrer"&gt;demo&lt;/a&gt; to look around. To use it with your own vMix, enable the Web Controller in vMix (default port &lt;code&gt;8088&lt;/code&gt;) and open the &lt;a href="https://live-miracles.github.io/vmix-master/" rel="noopener noreferrer"&gt;hosted app&lt;/a&gt;. The &lt;a href="https://live-miracles.github.io/projects/vmix-master/" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; explains how to connect your systems.&lt;/p&gt;

&lt;p&gt;If something you need from a vMix control panel is missing, &lt;a href="https://github.com/live-miracles/vmix-master/issues/new" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt; and tell us. And if it helps you, a star on the &lt;a href="https://github.com/live-miracles/vmix-master" rel="noopener noreferrer"&gt;repository&lt;/a&gt; helps other vMix operators find it.&lt;/p&gt;

</description>
      <category>vmix</category>
      <category>livestreaming</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
    <item>
      <title>A delayed session for late joiners: keep a YouTube live stream at a fixed delay</title>
      <dc:creator>Nandisha</dc:creator>
      <pubDate>Fri, 13 Nov 2026 14:42:57 +0000</pubDate>
      <link>https://dev.to/livemiracles/a-delayed-session-for-late-joiners-keep-a-youtube-live-stream-at-a-fixed-delay-17dd</link>
      <guid>https://dev.to/livemiracles/a-delayed-session-for-late-joiners-keep-a-youtube-live-stream-at-a-fixed-delay-17dd</guid>
      <description>&lt;p&gt;In our programs, some participants are not in the session when it starts. They join late, or an internet or power outage drops them in the middle. For them we run a separate &lt;strong&gt;delayed session&lt;/strong&gt;: the same program, a fixed number of minutes behind, so they can watch it from the beginning. This post shows how we make that delay with vMix, what went wrong at first, and the small web page that fixed it. It is only a web page, so it works the same in OBS or any app that can embed one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;The main session streams live to YouTube. In vMix we add that live stream as an input, but through the Delayed YouTube page instead of a plain player, so it stays a set number of minutes behind live. From there the delayed picture goes wherever the session needs it: streamed again to a second YouTube live, or into Zoom through the vMix camera. In OBS, add the page as a &lt;strong&gt;Browser source&lt;/strong&gt; and use OBS's streaming or virtual camera.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frw071so38f4j43mjgete.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frw071so38f4j43mjgete.webp" alt="The live YouTube session goes through the Delayed YouTube page in a vMix or OBS browser input, then out to YouTube as a second stream or to Zoom through a virtual camera" width="800" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What we did before, and why it broke
&lt;/h2&gt;

&lt;p&gt;At first we put the YouTube live link into a vMix player input and moved the playhead back by hand. That works until YouTube jumps to live, which happens when the internet buffers. It is rare, but we saw it, and if nobody is watching the input the delayed participants silently skip the part that was supposed to be delayed. It also hit several languages at the same time, since each runs its own vMix. We think the cause is mostly the network.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: a page that holds the delay
&lt;/h2&gt;

&lt;p&gt;We could not stop YouTube from jumping, so we made the delay correct itself. &lt;a href="https://live-miracles.github.io/delayed-yt/" rel="noopener noreferrer"&gt;Delayed YouTube&lt;/a&gt; is a web page with a YouTube player that watches how far behind live it is. If the player gets closer to live than it should be, the page seeks back to the configured delay.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj53gdro1ae16wq43xgmm.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj53gdro1ae16wq43xgmm.gif" alt="In Chrome a YouTube live link is pasted in and Update loads the player. The page URL is added in vMix as a Web Browser input. Clicking LIVE in the vMix preview jumps the readout to live, and Delayed YouTube seeks back to the 15 minute delay within a second" width="560" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The stream in the demo is a third-party YouTube live stream. Its content belongs to its channel.&lt;/p&gt;

&lt;p&gt;To use it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the page, paste the YouTube video ID or the full link, and set the delay.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Update&lt;/strong&gt;. The settings are saved in the page URL.&lt;/li&gt;
&lt;li&gt;Copy that URL into a vMix &lt;strong&gt;Web Browser&lt;/strong&gt; input, an OBS &lt;strong&gt;Browser source&lt;/strong&gt;, or the web page input of whatever app you use.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The delay is kept automatically and precisely, where before we adjusted it by hand. The player always starts full size, even after a refresh, without YouTube's recommendations around the video. If YouTube jumps to live, nobody needs to be watching: the page seeks back in about a second. In our use it works very well, with almost no problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Known issues
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It does not work in the first 30 minutes of a stream.&lt;/strong&gt; YouTube's player API does not report the correct duration until then. The delay must also be at least 10 minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A jump to live still shows a few seconds of buffering&lt;/strong&gt; before the page seeks back. It is not seamless, only no longer lost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you stop sending the stream, the delay gets shorter&lt;/strong&gt;, by about the length of the break, because YouTube leaves that time out of the timeline. Refresh the delayed page and it works out the delay again. Viewers rewatch a few minutes, but without the refresh anyone who joins later gets no real delay.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;YouTube may ask you to sign in to confirm that you are not a bot&lt;/strong&gt;, mostly on a new system. For us it appeared after some time of use, lasted a while and then stopped. Signing in to YouTube inside the player usually fixes it, and the vMix and OBS steps are under Known Issues on the page. The login is stored on that computer, so use an account made for streaming.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The other way we tried: record to a file
&lt;/h2&gt;

&lt;p&gt;Before the page, we recorded the live stream to a local &lt;code&gt;.ts&lt;/code&gt; file, added it to vMix and set its position to the delay. We chose &lt;code&gt;.ts&lt;/code&gt; because it can be played while it is still being recorded, which an MP4 cannot.&lt;/p&gt;

&lt;p&gt;It works, but it is harder to run. The vMix setup is more complex: you record one input while the output comes from the program output, and there are many settings to get right. The file must be deleted after every session or the disk fills up, and it uses more CPU and RAM. We stopped using it and now use only the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Delayed YouTube is free and open source (MIT). Open the &lt;a href="https://live-miracles.github.io/delayed-yt/" rel="noopener noreferrer"&gt;page&lt;/a&gt; and try it with any YouTube live stream that is more than 30 minutes old, or read how it works in the &lt;a href="https://github.com/live-miracles/delayed-yt" rel="noopener noreferrer"&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If something does not work for your session type or your app, &lt;a href="https://github.com/live-miracles/delayed-yt/issues/new" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt;. And if it helps you, a star on the repository helps other operators find it.&lt;/p&gt;

</description>
      <category>vmix</category>
      <category>obs</category>
      <category>youtube</category>
      <category>livestreaming</category>
    </item>
    <item>
      <title>Our vMix presets kept breaking on renamed files, so we stopped building them by hand</title>
      <dc:creator>Nandisha</dc:creator>
      <pubDate>Fri, 13 Nov 2026 10:05:48 +0000</pubDate>
      <link>https://dev.to/livemiracles/our-vmix-presets-kept-breaking-on-renamed-files-so-we-stopped-building-them-by-hand-1i8o</link>
      <guid>https://dev.to/livemiracles/our-vmix-presets-kept-breaking-on-renamed-files-so-we-stopped-building-them-by-hand-1i8o</guid>
      <description>&lt;p&gt;We stream live sessions in many languages. One program can run in 20 or more languages over time: a few languages one week, a different set the next. Every program has several sessions (five, six, seven), and every session has its own set of media files, which we call a kit. Kits are updated all the time. Today we manage over 100 kits, each with its own vMix preset.&lt;/p&gt;

&lt;p&gt;For a long time we built the vMix preset for each session by hand. It worked, until it didn't. This post is about the two ways it failed and the small free tool we built so it can't fail that way again. If your team rebuilds a similar playlist for every event, you can reuse the method, and you don't need our scale for it to pay off.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiq046v5msudedm72ft6p.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiq046v5msudedm72ft6p.gif" alt="Folder Player in use: pick a folder, review the playlist, turn on the camera and mic for the host's lower third, save, and create the vMix preset" width="800" height="507"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 1: vMix finds files by name
&lt;/h2&gt;

&lt;p&gt;Three teams touch every session. The content team prepares the material, the programs team arranges it into sessions, and the technical team supports the live stream.&lt;/p&gt;

&lt;p&gt;When the content team updated a file, the new file came back with a new name. A vMix preset finds each input by its file name, so the preset broke: an input pointing at a file that no longer existed. Someone on the technical team had to open the preset and repair it, and sometimes we only found out when a session was about to start.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnms7y4tepbpb1nwxpxyx.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnms7y4tepbpb1nwxpxyx.webp" alt="vMix's Open Preset window saying &amp;quot;One or more files are missing, click Locate File for each item&amp;quot;, with two image files listed" width="800" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 2: settings drift
&lt;/h2&gt;

&lt;p&gt;A preset is not only files. Every input has audio and output settings, and they have to be the same in every preset. They weren't. Someone would switch off headphone monitoring on the microphone input by accident and save the preset. At the next session the operator could not hear the microphone, and we had to open input after input to find out why.&lt;/p&gt;

&lt;p&gt;Hand-built presets also carry leftovers from the last program, so nothing starts clean.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: the folder is the playlist
&lt;/h2&gt;

&lt;p&gt;We decided to stop editing presets and generate them. Three ideas make it work.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Number the files
&lt;/h3&gt;

&lt;p&gt;The programs team puts a number at the start of every file name. The number is the playing order.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feotal05gu0d95f7fm5qw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feotal05gu0d95f7fm5qw.png" alt="A content folder in File Explorer: numbered images, videos, audio files and a photo folder, plus the base preset and an unnumbered notes file" width="800" height="351"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;01 Welcome.png
02 Teaching.mp4
03 Meditation.mp3
03 Slide.png        &amp;lt;- same number: shown over the audio
04 Photos           &amp;lt;- a folder of photos becomes a slideshow
Notes.txt           &amp;lt;- no number: ignored
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two rules do most of the work. Different numbers play one after another. The same number means "play together", for example an image shown over an audio file. Files without a number are ignored, so notes can stay in the same folder.&lt;/p&gt;

&lt;p&gt;A new version of a file can have any name as long as it keeps its number, so renames stop breaking things.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Choose the options in a simple app, not in vMix
&lt;/h3&gt;

&lt;p&gt;The programs team opens the folder in &lt;a href="https://github.com/live-miracles/folder-player" rel="noopener noreferrer"&gt;vMix Folder Player&lt;/a&gt; and sees every item of the playlist. For each one they choose what they need: camera on or off, microphone on or off, loop, volume, and for a folder of photos how many seconds each photo stays on screen. The choices are saved in a small text file in the same folder, so they stay with the kit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftrt27wxlsif7q3mxig4w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftrt27wxlsif7q3mxig4w.png" alt="The config page: every playlist item with its type and options" width="800" height="507"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When they click &lt;strong&gt;Create vMix Preset&lt;/strong&gt;, the app reads the files and the options and writes the preset. It also checks the folder and reports problems straight away, so the programs team can fix them before the technical team ever opens vMix. For example, here two videos have the same number, number 4 is missing, and an audio file has no image to show with it:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxzs7l4mbypzbak6g7bjb.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxzs7l4mbypzbak6g7bjb.webp" alt="The report on the config page: an error because two videos share the number 2, and warnings for the missing number 4 and for an audio file without an image" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The same report also catches a video hidden under an overlay, a camera option when the base preset has no camera input, and more. When everything is fine, the report says there are no issues.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Start every preset from a base preset
&lt;/h3&gt;

&lt;p&gt;The settings problem goes away when nobody redoes the settings. The technical team builds one &lt;strong&gt;base preset&lt;/strong&gt;, &lt;code&gt;base.vmix&lt;/code&gt;, once. It holds everything that should never change: the camera input (titled &lt;code&gt;Cam&lt;/code&gt;), the microphone input (titled &lt;code&gt;Mic&lt;/code&gt;), all the audio buses that need to be on, the outputs, and a black input that we use for our custom transition.&lt;/p&gt;

&lt;p&gt;For every session the app copies the base and adds the numbered files to it, one by one. Every preset has the same settings because every preset starts from the same base, and nothing is left over from the last program. To change a setting everywhere, change the base once.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Firh87740swlt1e1e2kui.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Firh87740swlt1e1e2kui.png" alt="The generated preset open in vMix: the playlist inputs after the Cam and Mic inputs from the base preset" width="799" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed for us
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The technical team no longer repairs presets. The programs team generates them from the folder they already maintain.&lt;/li&gt;
&lt;li&gt;Updating a kit is safe: replace the file, keep its number, create the preset again.&lt;/li&gt;
&lt;li&gt;Every preset has the same microphone, headphone and bus settings, the ones in the base.&lt;/li&gt;
&lt;li&gt;Mistakes show up in a report before the session, not during it.&lt;/li&gt;
&lt;li&gt;With a parent folder that holds one folder per session, the app creates a preset for every session in one go.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Fewer hand-offs between teams
&lt;/h2&gt;

&lt;p&gt;This part is specific to how we are set up, so skip it if you have one team and one server. We keep two volumes on purpose. The programs team keeps every kit on its own server volume, which only that team can open. Each week they copy only the files needed that week to a shared volume for the streaming team, and delete them afterwards, so people can only reach what is actually in use.&lt;/p&gt;

&lt;p&gt;Before, that meant a lot of back and forth. When a kit changed, or a new kit arrived without a preset, the streaming team built or fixed the preset and shared the whole kit back through a second folder on the shared volume. The programs team then deleted their old copy of the kit and replaced it with ours. Now the programs team makes the preset themselves, so files only travel one way and the streaming team only opens the result.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0wtuzjsrnpooidvd2tnq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0wtuzjsrnpooidvd2tnq.webp" alt="Before: files and updated kits travel both ways between the programs team, a shared volume and the streaming team. Now: files travel one way, and the programs team creates the preset" width="799" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it doesn't do
&lt;/h2&gt;

&lt;p&gt;The app writes a preset that you open in vMix. It does not control vMix while you are live, and it only runs on Windows. The installer is not code-signed yet, so Windows SmartScreen may warn you the first time you run it. It also depends on your team agreeing to number the files, which is a habit, not a feature.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it on your own setup
&lt;/h2&gt;

&lt;p&gt;You don't need 20 languages or 100 kits to have this problem. Even with a handful of folders, numbering the files and generating the preset is quicker than building each one by hand, and every preset comes out the same. If you rebuild a similar vMix playlist for every event, the same method works:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make one clean &lt;code&gt;base.vmix&lt;/code&gt; with your &lt;code&gt;Cam&lt;/code&gt; and &lt;code&gt;Mic&lt;/code&gt; inputs and your settings.&lt;/li&gt;
&lt;li&gt;Number your content files in playing order.&lt;/li&gt;
&lt;li&gt;Generate the preset instead of building it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;vMix Folder Player is free and open source (MIT). &lt;a href="https://github.com/live-miracles/folder-player/releases/latest" rel="noopener noreferrer"&gt;Download it from the releases page&lt;/a&gt;, read the &lt;a href="https://live-miracles.github.io/projects/folder-player/docs/" rel="noopener noreferrer"&gt;documentation&lt;/a&gt;, or &lt;a href="https://github.com/live-miracles/folder-player/issues/new" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt; if something doesn't fit your workflow. If it saves you setup time, a star on the &lt;a href="https://github.com/live-miracles/folder-player" rel="noopener noreferrer"&gt;repository&lt;/a&gt; helps other vMix operators find it.&lt;/p&gt;

&lt;p&gt;Demo media: Blender Foundation open movies, licensed &lt;a href="https://creativecommons.org/licenses/by/3.0/" rel="noopener noreferrer"&gt;CC BY 3.0&lt;/a&gt; (&lt;a href="https://github.com/live-miracles/folder-player/blob/master/assets/CREDITS.md" rel="noopener noreferrer"&gt;credits&lt;/a&gt;).&lt;/p&gt;

</description>
      <category>vmix</category>
      <category>livestreaming</category>
      <category>opensource</category>
      <category>automation</category>
    </item>
    <item>
      <title>Live Q&amp;A in many languages: one list instead of a chat per language</title>
      <dc:creator>Nandisha</dc:creator>
      <pubDate>Thu, 12 Nov 2026 15:01:38 +0000</pubDate>
      <link>https://dev.to/livemiracles/live-qa-in-many-languages-one-list-instead-of-a-chat-per-language-p0j</link>
      <guid>https://dev.to/livemiracles/live-qa-in-many-languages-one-list-instead-of-a-chat-per-language-p0j</guid>
      <description>&lt;p&gt;Picture a live session. The teacher speaks English, and interpreters stream it in other languages, for example German, French and Russian. Each language has its own Zoom or YouTube stream, and each stream has its own chat.&lt;/p&gt;

&lt;p&gt;Then the teacher says, "Let's take some questions." Who reads all those chats at once?&lt;/p&gt;

&lt;h2&gt;
  
  
  What we did before
&lt;/h2&gt;

&lt;p&gt;We used a Google Sheet with one column per language. Volunteers pasted questions into their language's column and ticked the checkbox once a question was done.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flbdmqfe2yg4qc4q7ac2b.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flbdmqfe2yg4qc4q7ac2b.webp" alt="Our old Google Sheet: one column each for English, French, German and Arabic, with a checkbox per question and answered questions struck through" width="799" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It worked, but:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The teacher had to scroll up and down, and also left and right, so some questions were missed.&lt;/li&gt;
&lt;li&gt;A question asked in German had to be translated to English before the teacher could read it. A volunteer opened a translator, pasted the question, copied the result and pasted it back.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What we built
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/live-miracles/multi-lang-qa" rel="noopener noreferrer"&gt;Multi Lang QA&lt;/a&gt; is a small web app that runs on Google Apps Script and keeps its data in a Google Sheet. All questions go into one list, from top to bottom, with no sideways scrolling.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuwxk9ahyj8vs4ygptsqb.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuwxk9ahyj8vs4ygptsqb.webp" alt="The question list: each question shows its English translation first and the original text below it, with language badges" width="799" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sample questions. Each card shows the English translation first, with the original text and the asker's name below it.&lt;/p&gt;

&lt;p&gt;Operators in every language open the same page and add questions at the same time. The page checks for new questions every 5 seconds, so everyone sees the same list.&lt;/p&gt;

&lt;h3&gt;
  
  
  Adding a question
&lt;/h3&gt;

&lt;p&gt;An operator picks the question's language, types or pastes the question and presses &lt;strong&gt;Translate&lt;/strong&gt;. The app translates it with Google's translation service (&lt;code&gt;LanguageApp.translate&lt;/code&gt; in Apps Script) and fills in the translation field. The operator can fix it by hand before adding the question, and can add the asker's name in Latin letters (for example Мария as Maria), so the teacher can read and say it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz5lw5x1fv2thlzo2jkea.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz5lw5x1fv2thlzo2jkea.webp" alt="The add question dialog: a German question on the left and its English translation on the right, with a Translate button between them" width="800" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  For the teacher
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Done:&lt;/strong&gt; mark a question as completed once it has been answered.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Star:&lt;/strong&gt; star the question being discussed. The star is saved with the data, so everyone sees which question is current.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hide completed questions&lt;/strong&gt; so that only the open ones are left.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hide the original text&lt;/strong&gt; to see only the English translations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Filter by language&lt;/strong&gt; to show one language only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zoom and fullscreen&lt;/strong&gt; to put the list on a screen that the teacher can read from a distance.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fma5knasyrpqhhr0hu7qb.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fma5knasyrpqhhr0hu7qb.webp" alt="The same list with completed questions and original text hidden: only the open questions, in English" width="800" height="262"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  See it and use it
&lt;/h2&gt;

&lt;p&gt;Here is the whole flow in 40 seconds: add a question, translate it, star it, mark questions as done and hide the original text and the completed ones. The questions are made up.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Flive-miracles%2Fmulti-lang-qa%2Fmaster%2Fassets%2Fmulti-lang-qa-demo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Flive-miracles%2Fmulti-lang-qa%2Fmaster%2Fassets%2Fmulti-lang-qa-demo.gif" alt="A short screen recording: an operator adds a Spanish question and translates it, the teacher stars it, three questions are marked done, and the original text and the completed questions are hidden in turn" width="760" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To run your own copy you need a Google account and &lt;a href="https://nodejs.org/" rel="noopener noreferrer"&gt;Node.js&lt;/a&gt;. Apps Script and Google Sheets are free, and there is nothing to host. The &lt;a href="https://github.com/live-miracles/multi-lang-qa#set-up-your-own-copy" rel="noopener noreferrer"&gt;README&lt;/a&gt; has the steps, and it takes about 5 minutes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Turn on the Apps Script API for your Google account (one switch in your Apps Script settings).&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;npm install&lt;/code&gt; and &lt;code&gt;npm run setup&lt;/code&gt; in the project folder. Sign in when the browser opens. The command creates the Apps Script project, uploads the app, publishes it and prints your app link.&lt;/li&gt;
&lt;li&gt;Open the link yourself once and allow access. This also creates the spreadsheet in your Google Drive, where the questions are stored. Then share the link with your audience.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Running &lt;code&gt;npm run setup&lt;/code&gt; again later updates the app and keeps the same link. If you cannot run commands, the README also has a copy-and-paste way to set it up by hand.&lt;/p&gt;

&lt;p&gt;It is not limited to our setup. If you take questions from an audience in more than one language, whether on Zoom, YouTube or in a room, it may save you the same trouble.&lt;/p&gt;

&lt;p&gt;If it is useful to you, a star on &lt;a href="https://github.com/live-miracles/multi-lang-qa" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; helps other people find it. Issues and ideas are welcome too.&lt;/p&gt;

</description>
      <category>googleappsscript</category>
      <category>opensource</category>
      <category>translation</category>
      <category>livestreaming</category>
    </item>
    <item>
      <title>SRS, MediaMTX and Restreamer reject bonded SRT. Here is a relay that fixes it</title>
      <dc:creator>Nandisha</dc:creator>
      <pubDate>Sun, 01 Nov 2026 10:41:29 +0000</pubDate>
      <link>https://dev.to/livemiracles/srs-mediamtx-and-restreamer-reject-bonded-srt-here-is-a-relay-that-fixes-it-6fg</link>
      <guid>https://dev.to/livemiracles/srs-mediamtx-and-restreamer-reject-bonded-srt-here-is-a-relay-that-fixes-it-6fg</guid>
      <description>&lt;p&gt;SRT bonding sends one live stream over several network links at once, for example two uplinks or two SIM cards. If one link degrades or dies, the receiver still has the data from the other, so the stream does not drop. libsrt implements it as a &lt;em&gt;socket group&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The catch is the receiving end. A server has to accept the group, and most open source media servers cannot. We run &lt;a href="https://github.com/ossrs/srs" rel="noopener noreferrer"&gt;SRS&lt;/a&gt; in &lt;a href="https://github.com/live-miracles/bunryu" rel="noopener noreferrer"&gt;Bunryu&lt;/a&gt;, so we wrote a small relay, &lt;a href="https://github.com/live-miracles/goryu" rel="noopener noreferrer"&gt;Goryu&lt;/a&gt;, that accepts the bonded group and forwards ordinary SRT to the server behind it. This post shows how to put it in front of SRS, MediaMTX or any SRT server, and what we actually checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: terminate the group before the server
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fbonded-before-after.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fbonded-before-after.webp" alt="Sent directly, the bonded group is rejected by the server. Through Goryu, the legs are merged and the server receives one plain SRT stream" width="800" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Goryu listens on one port (i.e. &lt;code&gt;10081&lt;/code&gt;) with group connections enabled. libsrt merges the legs and drops the duplicate packets before Goryu reads anything, so Goryu sees one clean MPEG-TS stream. It automatically forwards that stream to your server's port (i.e. &lt;code&gt;10080&lt;/code&gt;) as a normal single-link SRT caller, with the same &lt;code&gt;streamid&lt;/code&gt;. The server never knows the input was bonded. An ordinary single-link SRT sender works on the same port.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it with MediaMTX
&lt;/h2&gt;

&lt;p&gt;Start MediaMTX, then Goryu with a config that points at MediaMTX's SRT port (&lt;code&gt;8890&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;--network&lt;/span&gt; host bluenviron/mediamtx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"input_host"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0.0.0.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"input_port"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10081&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"output_host"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"127.0.0.1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"output_port"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8890&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"status_port"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8081&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"passphrase"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; goryu.tar.gz https://github.com/live-miracles/goryu/releases/latest/download/goryu-linux-x86_64.tar.gz
&lt;span class="nb"&gt;mkdir &lt;/span&gt;goryu &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;tar&lt;/span&gt; &lt;span class="nt"&gt;-xzf&lt;/span&gt; goryu.tar.gz &lt;span class="nt"&gt;-C&lt;/span&gt; goryu
&lt;span class="nv"&gt;LD_LIBRARY_PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;goryu/lib goryu/bin/goryu goryu.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now send a bonded stream to &lt;code&gt;srt://&amp;lt;host&amp;gt;:10081&lt;/code&gt; with &lt;code&gt;streamid=publish:stream&lt;/code&gt;, and play it back from MediaMTX:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffplay &lt;span class="s1"&gt;'srt://127.0.0.1:8890?streamid=read:stream'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;streamid&lt;/code&gt; is the one thing to get right, because Goryu copies it unchanged to the server. These are the publish ids we used:&lt;/p&gt;

&lt;h2&gt;
  
  
  Passphrases
&lt;/h2&gt;

&lt;p&gt;SRT encrypts each hop on its own. By default Goryu uses one passphrase on both: set &lt;code&gt;passphrase&lt;/code&gt;. So similiarly to &lt;code&gt;streamid&lt;/code&gt; the encoder will use the same &lt;code&gt;passphrase&lt;/code&gt; as when directly connecting to the server. You can optionally give the server side its own &lt;code&gt;passphrase&lt;/code&gt; with &lt;code&gt;output_passphrase&lt;/code&gt;: an empty string for a server without a passphrase, or a different one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"input_host"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0.0.0.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"input_port"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10081&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"output_host"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"127.0.0.1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"output_port"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8890&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"status_port"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8081&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"passphrase"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"a-long-secret-for-encoders"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"output_passphrase"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Broadcast or main/backup
&lt;/h2&gt;

&lt;p&gt;libsrt 1.5 offers two group types, and the sender picks one. The receiver, Goryu, treats them the same: it merges what arrives and forwards one stream.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Broadcast&lt;/strong&gt; puts the whole stream on every link. If a link fails the others already have every packet, so nothing has to switch. The price is bandwidth: two links cost twice the data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Main/backup&lt;/strong&gt; gives each link a weight. The heaviest link carries the stream and the others sit idle, sending only keepalives. If the main link becomes unstable the sender activates a standby. It costs one link's worth of data, which matters on metered cellular, but the switchover is its weak spot: packets sent while the main link was failing, before it was judged unstable, can be late or lost.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In Goryu's status API every leg of a broadcast group is &lt;code&gt;running&lt;/code&gt;. In a main/backup group the standby is &lt;code&gt;idle&lt;/code&gt;, with a receive rate of about zero.&lt;/p&gt;

&lt;p&gt;We sent a main/backup group over loopback at 4 Mbps, with weights 10 and 5. The main leg was &lt;code&gt;running&lt;/code&gt; at 4.4 Mbps and the backup &lt;code&gt;idle&lt;/code&gt; at 0.000 Mbps. When we closed the main leg the backup became &lt;code&gt;running&lt;/code&gt;, about 2 MB arrived in the next four seconds (roughly 4 Mbps), and the downstream never reconnected.&lt;/p&gt;

&lt;p&gt;One catch: at a trickle (0.12 Mbps) libsrt kept both legs active, so a main/backup group needs real traffic before it settles on a main leg.&lt;/p&gt;

&lt;p&gt;Our hardwere encoder AJA Bridge Live supports only the &lt;strong&gt;Broadcast&lt;/strong&gt; mode, so we are using it with goryu. We have not tested &lt;strong&gt;Main/backup&lt;/strong&gt; mode with real hardware encoders yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we saw when a leg dropped
&lt;/h2&gt;

&lt;p&gt;We sent a stream through Goryu with two legs and closed the second leg nine seconds in, watching the status API:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;Legs&lt;/th&gt;
&lt;th&gt;Bytes forwarded&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;8 s&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;472,444&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12 s&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;708,008&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16 s&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;933,044&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The leg left the &lt;code&gt;legs[]&lt;/code&gt; list, the byte counter kept growing, and &lt;code&gt;outputConnected&lt;/code&gt; stayed &lt;code&gt;true&lt;/code&gt;. The server behind Goryu saw an unbroken stream. Each leg reports its own round-trip time, loss, retransmissions and buffer, which is what you want when you are deciding which uplink is the weak one.&lt;/p&gt;

&lt;h2&gt;
  
  
  With a real encoder, over the internet
&lt;/h2&gt;

&lt;p&gt;This is how we run it: Goryu in front of SRS (known as srt-bonding-relay until this month) has carried our live events for the past few months, a few days every week.&lt;/p&gt;

&lt;p&gt;We pointed an AJA BRIDGE LIVE at the Goryu relay (v3.3.0) on our Bunryu server, a Google Cloud VM in Mumbai, which forwards to the SRS on the same host. AJA lists SRT bonding over the public internet as a feature from firmware v1.16 (&lt;a href="https://www.aja.com/pdf/2024/AJA_BRIDGE-LIVE_ReleaseNotes_v1.16.pdf" rel="noopener noreferrer"&gt;release notes&lt;/a&gt;), and it needs the Annual Maintenance Option. Four minutes after the relay started, its status API showed this for the two legs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Per leg&lt;/th&gt;
&lt;th&gt;Leg A&lt;/th&gt;
&lt;th&gt;Leg B&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Round-trip time&lt;/td&gt;
&lt;td&gt;44.0 ms&lt;/td&gt;
&lt;td&gt;40.8 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Receive rate&lt;/td&gt;
&lt;td&gt;22.6 Mbps&lt;/td&gt;
&lt;td&gt;22.6 Mbps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Packets received&lt;/td&gt;
&lt;td&gt;491,703&lt;/td&gt;
&lt;td&gt;491,737&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Packets lost on this leg&lt;/td&gt;
&lt;td&gt;48&lt;/td&gt;
&lt;td&gt;157&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retransmissions&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;208&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dropped for arriving late&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Receive buffer&lt;/td&gt;
&lt;td&gt;242 ms&lt;/td&gt;
&lt;td&gt;239 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Two full copies.&lt;/strong&gt; In broadcast mode each leg carries the whole stream, so both show about 22.6 Mbps. The two legs came from distinct public addresses, with 240 ms of latency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real loss, handled.&lt;/strong&gt; Each leg lost a small share of its packets (about 0.01% and 0.03%) and asked for retransmissions, and nothing arrived too late. Goryu reports loss per leg, not for the merged stream, so this shows how each link behaved, not what the merged stream lost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Downstream.&lt;/strong&gt; Zero retry failures and no error on the stream.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The relay's journal covers five days. It records 18 bonded sessions and no plain ones, with no downstream retries and no failed connects. The longest session ran 21 hours 51 minutes and forwarded 215.8 GB, about 22 Mbps on average, and it ended only because the service was stopped for maintenance. These sessions are our regular use of the relay. The snapshot above and the cable pull were taken on a test feed, not during a live event.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pulling one cable
&lt;/h2&gt;

&lt;p&gt;With the stream running, we unplugged one of the encoder's two LAN cables for about 45 seconds and plugged it back in, while recording the relay's status once a second. These are the samples around the event, on the VM's clock:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;Legs&lt;/th&gt;
&lt;th&gt;Bytes forwarded&lt;/th&gt;
&lt;th&gt;What changed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;14:22:37&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2,713,522,252&lt;/td&gt;
&lt;td&gt;both legs running&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14:22:41&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2,725,683,408&lt;/td&gt;
&lt;td&gt;one leg gone from &lt;code&gt;legs[]&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14:23:22&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2,837,954,000&lt;/td&gt;
&lt;td&gt;still one leg&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14:23:27&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2,852,886,652&lt;/td&gt;
&lt;td&gt;the leg is back, with no restart&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The stream never paused.&lt;/strong&gt; Between 14:22:37 and 14:23:27 the relay forwarded 139.4 MB in 50 seconds, which is 22.3 Mbps. In steady state before the pull it was 21.9 Mbps. Over the whole event &lt;code&gt;outputConnected&lt;/code&gt; stayed &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;retryFailures&lt;/code&gt; stayed 0 and no error was recorded, so SRS saw one unbroken connection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The leg came back by itself.&lt;/strong&gt; Nobody touched Goryu or the encoder after the cable went back in. The status showed the leg absent for about 46 seconds, which matches the 45-second pull.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One oddity.&lt;/strong&gt; The rejoined leg reports 7,977 lost packets from the moment it appears. That is roughly the first 3.7 seconds of the stream at this bitrate, so it is probably the gap before the leg joined being counted as loss. We have not confirmed that, and the merged stream did not slow down.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nothing in the log, in v3.3.0.&lt;/strong&gt; The journal has no line for the leg dropping or for it coming back. The status API shows it live, but afterwards only the counters remain. The next release, v3.4.0, logs both: one line per change with the leg's address and how many legs remain, such as &lt;code&gt;Bonded leg left streamid=... leg=&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt; legs=1&lt;/code&gt;, and &lt;code&gt;Bonded leg joined ...&lt;/code&gt; when it returns. A leg that flaps is limited to 12 lines per 30 seconds and then summarised, so a bad link cannot flood the journal. Bunryu writes the same changes to the pipeline's log.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bonding needs both ends.&lt;/strong&gt; The receiving server is as much a part of it as the encoder, and the open source ones mostly do not accept groups yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A relay is a small, replaceable piece.&lt;/strong&gt; Goryu is about 2,800 lines of C and a config of six fields (a seventh is optional), so you can read all of it before trusting it with a live stream.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the sender first.&lt;/strong&gt; The hard part today is finding something that sends a libsrt group, not receiving it. Of the hardware we know of, the AJA BRIDGE LIVE is the one we have seen do it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Goryu and its &lt;a href="https://live-miracles.github.io/projects/goryu/docs/" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; are open source (MIT).&lt;/p&gt;

</description>
      <category>srt</category>
      <category>bonding</category>
      <category>goryu</category>
      <category>mediamtx</category>
    </item>
    <item>
      <title>50 inputs and 500 outputs in one dashboard</title>
      <dc:creator>Nandisha</dc:creator>
      <pubDate>Sun, 01 Nov 2026 10:33:40 +0000</pubDate>
      <link>https://dev.to/livemiracles/50-inputs-and-500-outputs-in-one-dashboard-5e2j</link>
      <guid>https://dev.to/livemiracles/50-inputs-and-500-outputs-in-one-dashboard-5e2j</guid>
      <description>&lt;p&gt;A long live event can mean dozens of inputs, each sent to a handful of destinations. Past a few streams, the question stops being "does it forward?" and becomes "can I still see what is happening without the screen turning into noise?"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/live-miracles/bunryu" rel="noopener noreferrer"&gt;Bunryu&lt;/a&gt; was tested with up to 50 inputs and 500 outputs on one server. Here is what the dashboard showed and how the control plane performed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we tested
&lt;/h2&gt;

&lt;p&gt;We started the isolated test stack that ships with the repo, created 50 pipelines, and gave each one 10 outputs: 500 in total, the supported maximum. Every pipeline had a live input: a looped 720p clip published over RTMP. All 500 outputs were running.&lt;/p&gt;

&lt;p&gt;One thing to know before looking at the pictures: &lt;strong&gt;the outputs are simulated.&lt;/strong&gt; Each one is a stand-in for FFmpeg that reports progress and sends nothing over the network. The control plane, SRS, the inputs and the dashboard are real, so this shows what the dashboard looks like and what it costs the control plane. It does not show FFmpeg's own CPU and RAM, which our &lt;a href="https://live-miracles.github.io/projects/bunryu/docs/getting-started/sizing/" rel="noopener noreferrer"&gt;sizing page&lt;/a&gt; covers separately. The machine was an 8-core laptop shared with other work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The overview
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Foverview-500-outputs.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Foverview-500-outputs.webp" alt="The overview with 50 inputs and 500 outputs: host charts, totals, and pipelines grouped in the sidebar" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The left column lists every pipeline, organized into groups (here Main Stage, Halls, Studios, Chapels and Plaza). Each row has a status dot, its output count, its name, how long it has been up and its input protocol. The totals at the top say "50 inputs, 500 outputs" with a green badge for each. To the right are the host's CPU, RAM and network charts and a table of what each process costs.&lt;/p&gt;

&lt;p&gt;Below that are two lists: every input, then every output.&lt;/p&gt;

&lt;h2&gt;
  
  
  When something goes wrong
&lt;/h2&gt;

&lt;p&gt;The useful test of a big dashboard is whether a problem shows up without hunting for it. We took two of the 50 inputs offline and watched.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Ftwo-inputs-down.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Ftwo-inputs-down.webp" alt="Two inputs drop: the totals change, the affected pipelines turn yellow, and the Issues tab narrows the list" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Within a few seconds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The totals changed to 48 live inputs and 480 healthy outputs, with a yellow 20 for the outputs that belong to the two dead inputs.&lt;/li&gt;
&lt;li&gt;The two pipelines turned yellow in their groups in the sidebar.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;Issues&lt;/strong&gt; tab narrowed the output list to those 20 outputs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fissues-tab.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fissues-tab.webp" alt="The Issues tab lists the 20 affected outputs, each with its reason" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each row says why: "Output is running but input is not live." The outputs were not failing; they were waiting for an input that was no longer live, and that is what the dashboard told us.&lt;/p&gt;

&lt;h2&gt;
  
  
  One pipeline at a time
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fpipeline-view.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fpipeline-view.webp" alt="A pipeline's own view: its input, publish URLs and its 10 outputs" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Opening a pipeline shows its input, its publish URLs and its 10 outputs on one screen, each with status, uptime, bitrate and memory. A group of ten outputs fits without scrolling, which is the level you work at when you are adjusting one destination.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measure&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Control plane with one dashboard open&lt;/td&gt;
&lt;td&gt;about 17% of one core, 251 MB of RAM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;/api/health&lt;/code&gt;, fetched every 5 s by each dashboard&lt;/td&gt;
&lt;td&gt;296 KB, 18 KB gzipped, about 30 ms to produce&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dashboard first render (headless Chrome, locally)&lt;/td&gt;
&lt;td&gt;0.7 to 0.8 s (one of four runs took 1.3 s)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Overview page length&lt;/td&gt;
&lt;td&gt;about 28,000 px, roughly 32 screens&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are the control plane's costs. A real 500-output server also runs 500 FFmpeg processes. Our sizing page puts that at about 30 vCPUs and 17 to 30 GB of RAM at 8 Mbps per output.&lt;/p&gt;

</description>
      <category>bunryu</category>
      <category>dashboard</category>
      <category>scale</category>
    </item>
    <item>
      <title>One faulty audio embedder disrupted a mega event</title>
      <dc:creator>Nandisha</dc:creator>
      <pubDate>Sun, 01 Nov 2026 10:31:00 +0000</pubDate>
      <link>https://dev.to/livemiracles/one-faulty-audio-embedder-disrupted-a-mega-event-4iha</link>
      <guid>https://dev.to/livemiracles/one-faulty-audio-embedder-disrupted-a-mega-event-4iha</guid>
      <description>&lt;p&gt;Both audio meters were moving. The dry run had gone well. We had two fiber paths from the event to the streaming server. Yet when the event went live, viewers across more than 100 streams started reporting poor-quality audio that kept breaking up.&lt;/p&gt;

&lt;p&gt;Switching to the backup feed did not help. Switching to a third feed finally did, about an hour into the live event. By then, many viewers had left.&lt;/p&gt;

&lt;p&gt;This is how one suspected faulty audio embedder affected all those streams, why our monitoring missed it, and what we changed in &lt;a href="https://github.com/live-miracles/live-gallery" rel="noopener noreferrer"&gt;Live Gallery&lt;/a&gt; afterwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  Our monitoring heard only one channel
&lt;/h2&gt;

&lt;p&gt;We were monitoring the streams in &lt;a href="https://github.com/live-miracles/live-gallery" rel="noopener noreferrer"&gt;Live Gallery&lt;/a&gt; with a mono speaker setup that, in our arrangement, let us hear only the left channel. We could also see separate volume bars for left and right. Both showed audio, and what we heard sounded acceptable, so we thought the feeds were healthy.&lt;/p&gt;

&lt;p&gt;But listening to the left channel alone is different from listening to a mono mix of left and right. We had checked that audio was present in each channel. We had not checked whether the channels worked together.&lt;/p&gt;

&lt;p&gt;That distinction became painful during the event. Some phones played the audio acceptably; others sounded bad or lost much of it. Headphones could sound fine too. At the time, that inconsistency made the reports harder to explain. In retrospect, it was a useful clue: the result depended on how the playback device handled the two channels.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why two active meters can hide bad audio
&lt;/h2&gt;

&lt;p&gt;When two channels carry similar sound with opposite polarity, each channel can sound fine on its own. Their volume meters can look normal too. Trouble appears when a playback system adds them together.&lt;/p&gt;

&lt;p&gt;A mono mix commonly combines the channels as &lt;code&gt;(L + R) / 2&lt;/code&gt;. If the right channel is an inverted copy of the left, the positive parts of one meet the negative parts of the other, and the sound cancels. With partial cancellation, voices can become thin, quiet, or unstable rather than disappearing completely.&lt;/p&gt;

&lt;p&gt;Stereo playback can keep the channels separate, so headphones may conceal the problem. Devices that combine the channels can expose it.&lt;/p&gt;

&lt;p&gt;Analysis of the recording later showed negative correlation between the channels and a loss of level when they were combined. The strength varied through the affected portion. That points to a stereo compatibility problem; it does not, by itself, tell us which physical channel or connection was at fault.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fphase-mismatch-recording.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fphase-mismatch-recording.webp" alt="A zoom from the affected recording shows blue left-channel and red right-channel waveforms moving in opposite directions, with correlation rounded to -1.000." width="800" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This 33.3-millisecond sample from just before the feed switch shows the problem clearly: when one channel rises, the other falls. Cancellation was not equally strong throughout the incident.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fphase-in-sync-recording.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fphase-in-sync-recording.webp" alt="A 33.3-millisecond zoom around 01:20:00 in the recording shows the blue left-channel and red right-channel waveforms closely following each other, with correlation rounded to +0.999." width="800" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For comparison, this sample after the switch to the clean feed shows the channels rising and falling together. Their correlation is close to +1. The key difference is their shared direction, not the height of the waveform: the two images show different moments of audio. Healthy stereo does not need to match this closely, but these channels reinforce rather than cancel each other when combined.&lt;/p&gt;

&lt;h2&gt;
  
  
  The backup had the same upstream fault
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fshared-embedder-paths.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Fshared-embedder-paths.webp" alt="The video and audio mixers feed a shared suspected faulty embedder supplying both fiber paths to the streaming server. A separate embedding path supplies the clean feed that restored audio." width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Our first response was to switch fiber paths. We had two paths from the venue to the streaming server, but both carried audio from the same suspected faulty embedder. Changing the transport path could not remove a problem already present in the source.&lt;/p&gt;

&lt;p&gt;The third feed was different. It took video from the video mixer and audio from the audio mixer through a separate embedding path. We normally used this clean feed to make social media shorts because it did not include the event overlays and lower thirds.&lt;/p&gt;

&lt;p&gt;Switching to that feed cleared the audio problem about an hour after the live broadcast started. It also exposed the gap in our backup plan: the two fiber paths were separate, but a critical part of their source chain was shared.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we added to Live Gallery
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/live-miracles/live-gallery" rel="noopener noreferrer"&gt;Live Gallery&lt;/a&gt; is our open-source application for monitoring many live streams simultaneously. After this incident, we added an audio phase mismatch alert and a choice of mono or stereo listening mode.&lt;/p&gt;

&lt;p&gt;The phase check looks at the relationship between left and right, including their correlation and how much level is lost when they are combined. It evaluates sustained evidence across multiple samples rather than treating one negative reading as a fault. We want to avoid nuisance warnings: normal stereo material can contain differences between channels, and negative correlation alone is not proof of broken equipment.&lt;/p&gt;

&lt;p&gt;The mono listening option combines left and right so we can hear cancellation during a check. It closes the specific gap in our earlier setup, where hearing only the left channel gave us confidence that the full stereo feed was safe.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Flive-gallery-phase-warning-video.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Flive-miracles.github.io%2Fblog%2Fimages%2Flive-gallery-phase-warning-video.webp" alt="Live Gallery 1.6.1 showing event footage in a local-file tile, with an Audio phase mismatch warning over the video, active audio meters, and one alert in the toolbar." width="800" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Our screenshot of Live Gallery 1.6.1 shows the phase warning directly over the playing recording, even while the channel meters show audio activity. This demonstrates the monitoring added after the incident, not an alert available during the original event.&lt;/p&gt;

&lt;h2&gt;
  
  
  What these changes cannot guarantee
&lt;/h2&gt;

&lt;p&gt;The alert is a warning about possible cancellation, not a diagnosis of an embedder. It cannot identify a loose cable, determine which channel was inverted, or promise that every viewer's device will sound good. Quiet passages, intermittent faults, and less pronounced cancellation may also escape detection. We prefer some missed detections to constant false alarms that operators learn to ignore.&lt;/p&gt;

&lt;p&gt;Mono listening and phase warnings give us additional ways to notice this failure. They do not replace listening, investigating early hardware trouble, or checking which components our backup feeds share.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it took so long to fix
&lt;/h2&gt;

&lt;p&gt;The first reports of bad audio were confusing because the feed sounded fine on our monitoring setup. We only confirmed that something was wrong after checking the streams on our own phones.&lt;/p&gt;

&lt;p&gt;Even after confirming the issue, we did not understand its cause. In all our years of regularly running live events, this was the first time we had encountered this particular phase mismatch problem. We initially suspected a fault in our encoder or other hardware, especially because switching to the backup feed had not helped.&lt;/p&gt;

&lt;p&gt;Only later did we consider trying the clean feed. Switching to it would mean the editors would lose their feed, and viewers would experience a few seconds of buffering. We were not even sure it would fix the issue. Ultimately, though, it was the right choice.&lt;/p&gt;

&lt;p&gt;Using only the left channel in the streaming encoder would also have fixed the cancellation problem. At the time, however, we did not yet understand the root cause, so we tried the clean feed first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways for the next event
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Check the feed in stereo and in a combined mono mix during the dry run. Left-only listening is a separate check.&lt;/li&gt;
&lt;li&gt;Trace backup feeds all the way upstream. Two transport paths can still share one faulty source device.&lt;/li&gt;
&lt;li&gt;Have a mature monitoring system that can detect various issues.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The clean feed saved this event's remaining broadcast. The more lasting change was learning to test what our viewers might actually hear, including what happens when two apparently healthy channels become one.&lt;/p&gt;

</description>
      <category>audio</category>
      <category>streaming</category>
      <category>reliability</category>
      <category>livegallery</category>
    </item>
    <item>
      <title>One leaking FFmpeg process took down six live streams</title>
      <dc:creator>Nandisha</dc:creator>
      <pubDate>Thu, 22 Oct 2026 05:10:13 +0000</pubDate>
      <link>https://dev.to/livemiracles/one-leaking-ffmpeg-process-took-down-six-live-streams-3kpp</link>
      <guid>https://dev.to/livemiracles/one-leaking-ffmpeg-process-took-down-six-live-streams-3kpp</guid>
      <description>&lt;p&gt;A live event cannot be restarted. When we built &lt;a href="https://github.com/live-miracles/bunryu" rel="noopener noreferrer"&gt;Bunryu&lt;/a&gt;, aself-hosted server that forwards one live stream to many destinations, we assumed things would go wrong and tried to keep each failure small. In July 2026 a single FFmpeg process showed us where that was not true yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question
&lt;/h2&gt;

&lt;p&gt;Someone looked at the dashboard and asked: "Output 1 has an error, output 2 doesn't. Why?"&lt;/p&gt;

&lt;p&gt;Output 1's last error was &lt;code&gt;exit=SIGKILL&lt;/code&gt;. That is not an application error, so we went to the host logs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;Six streams were running on one VM, with three pipelines and six outputs. This is the chain we pieced together from the logs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;All six encoders dropped and reconnected repeatedly for about eleven minutes.&lt;/li&gt;
&lt;li&gt;When the streams settled, every output's FFmpeg process restarted and resynchronised. The audio at the reconnect boundary was corrupted.&lt;/li&gt;
&lt;li&gt;FFmpeg's AAC decoder misread the corrupted audio as a bogus 22.2-channel layout and leaked memory instead of failing cleanly.&lt;/li&gt;
&lt;li&gt;One process grew to about 1.6 GB and the kernel's OOM killer killed it.&lt;/li&gt;
&lt;li&gt;FFmpeg children share a cgroup with the control-plane service, so systemd saw the whole service as failed. It restarted the service, and the restart cascaded to SRS and the SRT relay.&lt;/li&gt;
&lt;li&gt;All six encoders reconnected within the same two seconds, which recreated the corrupt-resync conditions.&lt;/li&gt;
&lt;li&gt;Fourteen minutes later a second output hit the same bug and was killed. That second kill was the error on the dashboard.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Output 2 had no error only because it was still on its way up. When we looked, it was at 644 MB and&lt;br&gt;
climbing. "No error" did not mean "healthy".&lt;/p&gt;

&lt;p&gt;The root cause was a loop: flaky input, a decoder leak on resync, an OOM kill, a restart of the whole&lt;br&gt;
stack, and a fresh mass reconnect. Isolation between outputs did not help, because the process&lt;br&gt;
topology made the kernel kill a shared fate.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgpajqxbwa8oxcvz435jw.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgpajqxbwa8oxcvz435jw.webp" alt="The restart loop in five steps, with the memory watchdog we added between the decoder leak and the OOM kill" width="800" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What we changed
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Drop damaged packets before they reach the decoder.&lt;/strong&gt; Outputs now run with&lt;br&gt;
&lt;code&gt;-fflags +discardcorrupt -err_detect crccheck+bitstream&lt;/code&gt;. This reduces the chance of the misparse, but it does not remove it, so we did not stop there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A memory watchdog that acts first.&lt;/strong&gt; Every five seconds the app checks each output's resident memory. A healthy copy output sits at about 65 to 90 MB. If one crosses 200 MB, we kill it, record why, and let the normal retry loop start a fresh one. 200 MB is far below the 1.5 GB where the kernel steps in, so the kernel never needs to, and the cascade never starts. Transcoding outputs have higher limits because they legitimately use more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Retries that don't pile up.&lt;/strong&gt; An output retries indefinitely, waiting 1, 2, 4, 8, then 16 seconds after repeated quick failures. A run that stayed up for a minute resets the sequence, so a drop late in a long event is retried after about a second. Each wait is shortened by up to a quarter at random, so outputs that fail together do not respawn in lockstep.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Evidence on every failure.&lt;/strong&gt; Each output keeps an error history with the exit status, the reason and the tail of FFmpeg's stderr. That history, together with the host logs, is how we could explain a &lt;code&gt;SIGKILL&lt;/code&gt; after the fact.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we did not fix
&lt;/h2&gt;

&lt;p&gt;The shared cgroup is still there. The watchdog keeps the kernel from ever triggering the cascade, but if a process grew faster than the watchdog checks, or something else ran the host out of memory, the same chain could start again. We would rather say that than claim the cascade is gone.&lt;/p&gt;

&lt;p&gt;We also test these paths on purpose: a destination that freezes, one that accepts a connection and never reads, one that refuses connections, a CPU-saturated host, and a soak run with 50 healthy outputs. No test makes a server perfect. The goal is that when something fails it stays small, fixes itself where that is safe, and leaves enough evidence to explain it afterwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Check how failures propagate, not only whether components are isolated.&lt;/strong&gt; Separate processes still shared a cgroup.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put your own watchdog below the kernel's threshold.&lt;/strong&gt; An OOM kill is the last resort, not the plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"No error" is not "healthy".&lt;/strong&gt; Look at resource trends, not only error flags.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write down the timeline.&lt;/strong&gt; A real incident is the best test case you will ever get.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project and its &lt;a href="https://live-miracles.github.io/projects/bunryu/docs/operations/reliability/" rel="noopener noreferrer"&gt;reliability documentation&lt;/a&gt; are open source.&lt;/p&gt;

</description>
      <category>bunryu</category>
      <category>reliability</category>
      <category>ffmpeg</category>
      <category>srt</category>
    </item>
  </channel>
</rss>
