跳到正文
DEV Community· Davi Ranci·· 2 小時前AI 評分43

Moment:Linux 即時回放工具,附片段庫及簡易剪輯器

Moment: instant replay for Linux, with a clip library and a simple editor

AI 導讀

Moment 是一款面向 Linux 的即時回放應用程式,可將遊戲中剛發生的片段儲存為影片。它提供本機片段庫、搜尋和收藏功能,並可簡單剪裁片段及以四種畫質預設匯出 MP4;程式碼採 MIT 授權,作者正徵求不同桌面環境及 GPU 的測試回饋。

正文

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.

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.

The actual Moment library with sample media

The screenshot uses sample media, not personal recordings.

The current workflow

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.

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.

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.

How it's put together

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.

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.

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.

Trying it

The code is MIT-licensed:

https://github.com/rancidavi-dotcom/MomentReplay

For Arch Linux and derivatives, the repository includes a PKGBUILD:

git clone https://github.com/rancidavi-dotcom/MomentReplay.git
cd MomentReplay
makepkg -si

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.

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.

Transparency: Moment is conceived and led by a human, with AI assistance in development. AI also assisted in preparing this post.

來源:DEV Community · dev.to