<?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: Davi Ranci</title>
    <description>The latest articles on DEV Community by Davi Ranci (@davi_ranci_0a3815eb957033).</description>
    <link>https://dev.to/davi_ranci_0a3815eb957033</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%2Fuser%2Fprofile_image%2F3370324%2F3c8d82d0-9bca-4a17-bd0f-8c68e2de79e5.png</url>
      <title>DEV Community: Davi Ranci</title>
      <link>https://dev.to/davi_ranci_0a3815eb957033</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/davi_ranci_0a3815eb957033"/>
    <language>en</language>
    <item>
      <title>Moment: instant replay for Linux, with a clip library and a simple editor</title>
      <dc:creator>Davi Ranci</dc:creator>
      <pubDate>Fri, 30 Oct 2026 16:24:09 +0000</pubDate>
      <link>https://dev.to/davi_ranci_0a3815eb957033/moment-instant-replay-for-linux-with-a-clip-library-and-a-simple-editor-2bfd</link>
      <guid>https://dev.to/davi_ranci_0a3815eb957033/moment-instant-replay-for-linux-with-a-clip-library-and-a-simple-editor-2bfd</guid>
      <description>&lt;p&gt;I wanted a simple way to save something that had already happened during a game on Linux. That's what I've been working on with Moment: leave it running in the tray, press F8 after a good moment, and save the previous seconds as a clip.&lt;/p&gt;

&lt;p&gt;I'm using it on CachyOS with KDE Plasma and Wayland, and I'm looking for people willing to try the current version and report what works on their setup.&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%2Ffxlyewn39zzu2nxi64ni.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%2Ffxlyewn39zzu2nxi64ni.png" alt="The actual Moment library with sample media" width="799" height="512"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The screenshot uses sample media, not personal recordings.&lt;/p&gt;

&lt;h2&gt;
  
  
  The current workflow
&lt;/h2&gt;

&lt;p&gt;The app keeps a rolling replay buffer while capture is active. F8 saves a replay and F9 takes a screenshot; the duration and shortcuts can be changed. Saved clips appear in a local library with search, favorites and playback.&lt;/p&gt;

&lt;p&gt;From there, the editor can trim the start and end and export an MP4 using one of four quality presets. It currently handles simple trimming, not a multitrack timeline. The original media stays on disk.&lt;/p&gt;

&lt;p&gt;Other features include audio-device selection, per-game capture profiles, optional Discord activity and an on-screen confirmation when a capture is saved. Closing the main window leaves the app running in the system tray.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it's put together
&lt;/h2&gt;

&lt;p&gt;Moment uses C++ and Qt Quick. Screen access goes through the XDG ScreenCast portal, and frames arrive through PipeWire. The replay buffer retains recent video frames and optional audio in memory. Saving a replay exports that interval to a video file.&lt;/p&gt;

&lt;p&gt;SQLite keeps the local library index, and FFmpeg handles edited exports and prepares compatible MP4 copies for experimental Drive sharing. Local recording does not need an online account.&lt;/p&gt;

&lt;p&gt;Desktop integration matters here: the compositor's portal backend controls screen permission and global shortcuts. KDE Plasma on Wayland is the setup I've been using; I still need feedback from other desktops and GPUs. There is no dedicated X11 capture backend yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trying it
&lt;/h2&gt;

&lt;p&gt;The code is MIT-licensed:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/rancidavi-dotcom/MomentReplay" rel="noopener noreferrer"&gt;https://github.com/rancidavi-dotcom/MomentReplay&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For Arch Linux and derivatives, the repository includes a PKGBUILD:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/rancidavi-dotcom/MomentReplay.git
&lt;span class="nb"&gt;cd &lt;/span&gt;MomentReplay
makepkg &lt;span class="nt"&gt;-si&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are also manual CMake instructions in the README. Google Drive sharing still needs an OAuth-configured build, so the main workflow to try first is capture, save, browse and trim.&lt;/p&gt;

&lt;p&gt;I'm particularly interested in feedback on hotkey reliability while a game has focus, audio synchronization, replay memory use and long-session stability. A bug report with your distribution, desktop, GPU and reproduction steps would help a lot.&lt;/p&gt;

&lt;p&gt;Transparency: Moment is conceived and led by a human, with AI assistance in development. AI also assisted in preparing this post.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>linux</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
