r/ReplayOS • • Oct 13 '25

All Links and Set-up Guide

17 Upvotes

Scroll down for a complete starter guide to setting up RePlayOS with a Pi5 1/2gb for optimal performance of systems up to Dreamcast, Nintendo DS and PSP, with features such as Ambiscan and Alpha Player.

https://www.replayos.com (OS homepage, lots of info here, use the search)

https://www.patreon.com/RePlayOS (to support OS development)

https://www.mortaca.com (to buy RGB-Pi 2, other DACs, and ScartBlaster)

https://lapastillaroja.github.io/replay-control (the companion web app for RePlayOS)

Community:

RePlayOS Telegram : t (dot) me/RePlayOS

RGB-Pi Telegram : t (dot) me/RGB_Pi

Discord : https://discord.gg/2ghkKAWKDv

The Developer:

https://www.youtube.com/@RTA_RetroDev

https://x.com/rtomasal

Launch interview: /r/ReplayOS/comments/1pqw1xa

GitHubs

https://github.com/rtomasa/RePlay-issues

https://github.com/lapastillaroja/replay-control

GUIDE

RePlayOS v2 base download (free patreon subscription required): https://www.patreon.com/RePlayOS/posts/replayos-2-is-170745525 Latest BIOS pack (updated soon after release of new bios versions): https://archive.org/details/replayos-bios

After you have placed the Pi5 1/2gb in a case of your choice (ideally with thermal pads and active cooling) and connected an official Pi5 power supply, use the Raspberry Pi flasher app (with a card reader) to install the v2 image to an official Raspberry 16gb or larger microSD card (or any microSD rated A2 U3)

Use config.user.txt to overclock the Pi5 1/2gb to 3100mhz or lower if you experience crashes/failure to boot. Otherwise, RePlayOS overclocks the Pi5 to 2600mhz by default. Optionally, you can also set over_voltage_delta=50000 (in the line above arm_freq=3000)

Copy roms and media to a compact USB stick or ideally to your NVMe SSD, after selecting that mode of storage in the RePlayOS menu (which will automatically create the full folder structure)

Transfer the downloaded Bios files to the corresponding folder on your storage unit.

To setup Wifi, either setup Replay Control with ethernet and then enter your Wifi info via that interface, or remove the microSD after RePlayOS has created the full partition structure and enter your Wifi info manually in replay/config/config.txt

Join the Telegram group and contribute to the GitHub to get the most out of your RePlayOS and RGB-Pi 2 experience.

The RGB-Pi 2 scart adapter has a mini-HDMI input (Pi5 output is micro-HDMI, unless your case extends the output to standard HDMI)

To connect a GunCon2, use a composite (female) to CTIA minijack adapter cable (composite is typically red/white/yellow, but only yellow required). The 3.5mm minijack port can also output audio via red/white while GunCon2 is being used.

/preview/pre/0mfo8hrswnhg1.png?width=1082&format=png&auto=webp&s=6a1dde8ac9c2a72e78f121c85cc419b77830f22a

HACKS:

Use RePlayOS with only the Pi5's second HDMI port! This is helpful for those that have a broken first port:

Add nohdmi0 to your display overlay in /boot/firmware/config.txt: dtoverlay=vc4-kms-v3d,nohdmi0


r/ReplayOS • • Dec 19 '25

INTERVIEW: Rubén Tomás Alonso, v1.0 of RePlayOS and the future of emulation

35 Upvotes

Rubén Tomás Alonso (RTA) is releasing today, 19th December 2025, the first public version of RePlayOS for Pi5 and older Pi models. Also launched today is RGB-Pi 2, a compact HDMI-SCART adapter tailor-made for connecting a Raspberry Pi running RePlayOS to a CRT with RGB input.

It’s a significant milestone for retro emulation, with both efforts focused on perfecting the emulation experience for gamers tired of configuration, limitations and inconvenience. And for gamers seeking the highest audiovisual standards and most awesome range of features.

Dynamic, original refresh rates and resolutions for systems including Dreamcast and Nintendo DS. With a lean front-end built from scratch for a single family of devices, and Libretro cores, users can enjoy accuracy and latency comparable with original consoles and arcades.

Then factor in the instant availability, unbeatable cost and ease-of-use, 24-bit video and audio, customisable pixel art UI, 240p/480i media player, Ambiscan, Dual Screen output and advanced CRT options, with any Pi case you desire. VGA and HDMI displays can also expect the best possible results.

And anticipate the release of Pi6 with even more playable systems, even lower lag, and extra features for the retro gaming purist – still using RGB-Pi 2, as it will be fully compatible.

See the subreddit's pinned post for all the important links/info. Recommended watching: Dreamroom64 reviews the RGB-Pi 2

You started developing the original RGB-Pi OS in 2018. At what point did you start to envision an OS standing on its own feet, without RetroArch?

RTA: When I was about to begin developing OS2, I started researching how RetroArch was built, its different layers and engines, and especially the user interface. Actually, my intention wasn't to create my own Libretro frontend; I saw that as completely impossible, both due to the time it would require and the technical knowledge required to develop something so complex. My idea was simply to create a new user interface for RetroArch, either within the main project or as an alternative fork.

I contacted a couple of developers, and they gave me access to the development chat group. There I asked if there was some kind of reference manual on how the user interface was organized, even at a high level, so I could understand it superficially and gradually add things. But they basically told me that it was an impossible task, that not even the RGUI developers themselves were familiar with maintaining the code, let alone anyone trying to break into it from scratch. So I discarded that idea.

Time passed, and versions of RGB-Pi OS continued to be released, including a fork of RetroArch where I implemented changes for the first version of DynaRes and tweaks for on-the-fly resolution changes (looking back, it's pretty poor code). And then the new Pi5 model arrived, which predictably brought incompatibilities with all the previous development. That was the final straw. It was impossible for me to maintain so many pieces of software and there were limitations that RetroArch couldn't overcome. So I decided to see if I could do something very, very basic. If it wasn’t feasible, I would continue with the previous development.

The idea was simply to initialise the Raspberry Pi's video subsystem using low-level C libraries and paint something on the screen. When I succeeded, I tried to load an external library (the Libretro core) into memory. Once I achieved that, I moved on to the next step: trying to bring the core image to life on screen. And when I first saw Streets of Rage displayed on screen with basic keyboard controls – that's when I decided to abandon all previous development and dedicate all my time to the new system.

I don't want to misrepresent RetroArch because I don't have much experience with its source code, but it's a fact that it has many things running in the main emulation loop generating CPU usage or unexpected bugs. Things like rewind, fast forward, runahead, translation layers for different drivers (audio, video or input), network play functions for reading memory states... there's a lot of stuff. In general, they have good quality code, but with so many functions, it's hard to avoid negative impacts. In RePlayOS, since I control all the code, I make sure that only what's necessary runs.

What have been the main challenges in the development of RePlayOS and RGB-Pi 2?

RTA: From a software perspective, everything was a challenge, as this was the first time I've done everything this project entails. But in particular, the audio resampler was the hardest part, as the audio from different systems governs the speed at which games run. At first, I didn't even know this and used the screen refresh rate to control the execution speed, with very mixed results. After I dug deeper into Libretro's documentation and saw that audio functions as a kind of clock, I spent almost a year developing a proper audio resampler. Managing video modes was also a headache until recently, as it's not easy to manage different video subsystems (DRM, GBM, EGL, OpenGL, etc.) when applying resolution changes on the fly, for example.

The upgrade to a 24-bit video DAC has actually been the easiest part from a software perspective, as everything works more simply and standardly using the HDMI output rather than the GPIO port. A good example is the ability to use interlaced video modes on any Pi model with exactly the same image quality and very vivid colors, without interference. Plus, let's not forget that the video DAC includes an audio DAC (also 24-bit), delivering spectacular sound quality.

An older video of yours showed RGB-Pi OS displaying a perfectly framed Neo-Geo picture, whereas on MiSTer the picture had too much overscan, or was entirely missing a thin strip of graphics on the leftmost side. Can you comment generally on accuracy and other things that can be fixed or optimised?

RTA: This is a priority for RePlayOS. One of my main goals is to have systems running as smoothly and accurately as possible on each supported model of Pi. Cores and emulators often come with default options that are suboptimal, and this can lead to a perception that software emulation itself is suboptimal.

RePlayOS automatically adjusts all core options based on the Pi model, and also offers various emulation quality profiles so the average user doesn't have to deal with dozens of options with vague definitions or unknown implications. As new Pi models become more powerful, it's easier to set more precise default options, thereby reducing the complexity even further.

Regarding the Neo-Geo image, it's pretty simple. With the DynaRes engine, which handles all the CRT resolution and adjustments, you can perfectly adjust the size, overscan, and position of games based on their native resolution and refresh rate.

A more recent video of yours showed a beta version of RePlayOS with input lag even lower than original NES hardware, without using run-ahead. I’m sure a detailed explanation would educate a lot of people…

RTA: On the subject of input lag, I love seeing how very clever people find ways to overcome certain limitations. RunAhead seems super-developed and clever from a technical standpoint, but I don't like it from a gameplay/emulation perspective. It's a bit of a chore, and you modify the standard emulation cycle, potentially introducing strange behaviour and errors in many areas such as audio and video, as well as breaking compatibility with other features such as save states, retroachievements, and much more.

I've introduced the ability to reduce lag to the same level, or lower than the original hardware simply by eliminating intermediate video buffers. It's a very simple and effective solution that has no impact on the emulator itself. The only requirement is a more powerful CPU/GPU so it can process the video information more quickly before the video buffers run out.

This option works really well on 8- and 16-bit systems, even on Pi3 models, but I prefer to leave it disabled by default, to avoid risking performance issues and also because 99.9% of users won't notice a maximum of one frame of overall input lag. Possibly, in future Pi6+ models, this option can be enabled by default.

If we accept that MiSTer FPGA has exactly the same response time as the original hardware, then it's quite simple to compare input lag. In that video, you see me using a special gamepad with two internal controllers, allowing a MiSTer and a Pi with RePlayOS to be controlled simultaneously. I loaded Super Mario Bros. (NES) and recorded the screens (both the exact same model), also swapping the two cables to rule out discrepancy there.

This showed how, if the lag reduction option is enabled, RePlayOS responds even faster than real hardware. If this test were not accepted as valid, it would be implicitly saying that the MiSTer cannot match the input lag of the real hardware.

To get more technical, the NES example is useful. People who argue these matters generally don't have deep technical knowledge of either hardware or software, and they tend to accept erroneous explanations that, through repetition, have become accepted by reputable sources.

For example: the claim that emulators, because they work sequentially, don't allow for the same input lag as an FPGA or the original hardware (which work with different components in parallel). In practice, this claim is incorrect in most cases. On a NTSC NES, a frame lasts approximately 16.67ms. If the emulator and the hardware running it can process everything needed to emulate within that time, it makes absolutely no difference whether the process is sequential or parallel.

Something even more important, which is often overlooked because very few have studied how games are programmed in assembler for these consoles, is that most 8/16-bit systems and more modern systems all follow a common convention: reading control information once per frame drawn. On the NES, specifically, this is done via polling during the VBLANK NMI, right at the end of the frame drawing process. Therefore hardware parallelism is irrelevant, since a frame of lag is always introduced as standard, thus simplifying the game execution process. With an emulator, you see exactly the same thing.

What really adds lag in an emulator are the additional video buffers used to improve screen fluidity (VSYNC). The usual is a triple buffer, but simply going down to double buffering puts you at one frame of lag, which is the minimum you’ll get with original hardware (it is common for there to be up to 2 or 3 frames of input lag with some original systems).

All systems can benefit from Low Latency option in RePlayOS, as it only adjusts video buffer management. Unlike RunAhead, it doesn't require running two instances in parallel or copying memory between them, which can cause compatibility issues. (Some cores already have RunAhead built in, and those implementations are generally more reliable.)

I've also added an input bitmask read mode to the control engine, so all compatible cores can use it. This ensures that all button states are read in the same button state check cycle, eliminating per-button time skew and replicating the behavior of real hardware. The result is lower input latency and improved controller responsiveness. It's worth mentioning that RePlay uses a 1ms USB polling system, so as long as you have a quality USB controller, you won't see any noticeable lag there.

Can you explain the RGB-Pi 2, and which adapters are planned for 2026?

RTA: We migrated from the old GPIO to an HDMI solution using two DACs: one for video and one for audio, both with 24-bit quality. This is a notable improvement over the GPIO signal, which is typically 16-bit for video if it outputs audio simultaneously, or 18-bit without audio. The difference is even more evident in audio, as the GPIO uses only an 11-bit DAC, not to mention that the Pi5 still doesn’t have an official audio driver for use with the GPIO.

The GPU in Raspberry Pi3 and later models is based on Broadcom's Videocore, which has hardware features and video drivers allowing for the generation of virtually any type of video signal, whether 15kHz, 25kHz, 31kHz, progressive or interlaced, and therefore native signals for virtually any system you want to support.

As for the advantages of the video DAC we used, the chosen model has the ability to output in three signal modes: one with separate synchronizations like a standard VGA signal, and two native CSYNC modes (AND & XOR), which is something completely new in this type of hardware and offers greater compatibility with TV and especially monitor models.

With the RGB-Pi 2 adapters, there's one major appeal: the ability to use official or third-party Pi cases, since there's no need to connect anything to the GPIO. This allows for a much more attractive setup, and easier portability if you have multiple setups.

From a software perspective, thanks to the low-level control I have over the Pi's video driver from RePlay OS, it's possible to directly use HDMI to create fully customized video modes, which can be converted to an analog signal without any processing, such as scaling, thus obtaining a signal with no input lag.

Another advantage of using HDMI in conjunction with DACs is the complete absence of interference, something that can occur naturally on the GPIO port.

As for dual-screen, I think I'm correct in saying that this is the first system to allow dual-screen games to be played on pairs of both LCD and CRT. You can use horizontal dual screen for titles like Darius II, or a vertical dual screen for games like Punch-Out! This opens the door to properly recreating such arcade games for the first time, and I would love to see someone try their hand at a 6-player dual-screen X-Men, or a versus mode for Gaelco's World Rally 2.

Finally, regarding the RGB-Pi 2 models, the next after the HDMI to SCART, will be the JAMMA. The VGA model might not make as much sense, as there are many inexpensive DACs that perform that function (although we wouldn't rule out making our own as well). We do have a VGA version in mind for use in NAOMI arcades, and we'd like to develop a component version, but that remains to be confirmed. Of course, we have in mind other new projects based on all this hardware and software development, which we do not want to reveal yet!

Can you summarise the range of controller support, and which controllers might be supported in future?

RTA: RePlayOS supports all controllers supported by the standard Linux kernel. The frontend uses SDL as its API for input devices, which means additional features such as default mappings and management of different button and joystick types using a community-managed controller database, as explained on the official website. Any standard Xinput or Dinput device is supported, and if necessary, they can be physically mapped from the OS menu if no default mapping exists.

Proprietary controllers that use non-standard protocols, such as those for XBox, PlayStation, or Switch, can cause compatibility issues, and I always recommend avoiding them for retro gaming, as in many cases they may require special drivers that can introduce additional CPU usage and/or input lag. However, a couple of custom drivers for different XBox models are provided in the system extras section for those who want to install and use them effortlessly.

I don't actively support Bluetooth because it's a protocol that tends to cause a variety of issues, especially when using the Pi’s built-in module. If you want to use Bluetooth, your best option is to purchase a dedicated dongle like the ones from 8bitdo.

Aside from this, I've created some custom open source drivers for very specific controllers, such as for the original GunCon2, the Taito Paddle & Trackball, and controllers connected directly via GPIO (for rock-bottom input lag).

Alpha Player was a late addition to the feature list, and unexpected. Was it a lot of work?

RTA: The main differences are in the use of new internal APIs, code reorganization, and the new features. Approximately 30% of the original code was removed, 20% was modified, and another 20% was newly added.

The FFMpeg-related code was updated for compatibility with the modern version's features. Everything related to OpenGL was refactored to adapt to OpenGL ES, which is what RePlayOS uses. All options that didn't make sense on a Raspberry Pi were removed, such as the different video acceleration modes for AMD, NVIDIA, and Intel.

In terms of new features, several improvements were added: 32-bit linear colour scaling, support for M3U playlists, loop and random playback modes, default mappings for various actions (such as displaying info about the current video), as well as numerous bug fixes that have now achieved considerable stability.

RePlayOS’s Ambiscan works in video just as in games: if the content is pillarboxed or letterboxed, the vacant screen area dynamically and smoothly changes colour relative to the dominant colour in the video/game, increasing immersion and avoiding burn-in.

As an extra bonus, CEC support for HDMI was added, so it's now possible to fully control the player from the TV remote. And the core is public, so anyone interested can contribute with improvements or new features if they wish.

Pi variants have always been ideal candidates for software emulation, but would you say that we're finally realising Pi potential?

RTA: The Pi5's power leap has exceeded my expectations when it comes to emulation. It's now capable of running virtually the entire FBNeo arcade game catalog and a very large number of MAME Mainline games, including 3D titles like Tekken, Street Fighter EX, G-Darius, GTI Club, and highly anticipated titles like Killer Instinct.

On the other hand, systems like the Dreamcast now run smoothly, the Saturn runs very well on 80% of the catalogue using a core as precise as Mednafen, and the N64 has also improved significantly. Not only that, it is now possible to activate RePlayOS lag reduction on most systems for those who want input lag equal to, or lower than the original systems.

My main goals for the next public release, after the release of v1.0 are as follows:

1. Bug fixes.

2. Technical improvements to the audio, video, or input engines.

3. Integration with RetroAchievements, and if everything goes well, some unexpected new things.

I think that if the forthcoming Pi6 makes a leap comparable to that between the Pi4 and Pi5, we'll reach the performance level of a desktop PC, and very possibly, all of the systems mentioned above (and additional systems!) will run completely smoothly with very high emulation quality settings.

As you say, it's been a one-man job for two years, and we could add that the work has only just begun. Based on what you've developed so far, we can imagine RePlayOS in 2028 with a huge power upgrade being exactly what the future of emulation needs to be. Accessible, affordable, uncompromising, and responsive to an active community.

¡Un millón de gracias!

See the subreddit's pinned post for all the important links/info. Recommended watching: Dreamroom64 reviews the RGB-Pi 2


r/ReplayOS • • 11h ago

Has anybody used the lo-tech/vga888 adapter yet?

1 Upvotes

I had found a guide about using it and what the config needs to be but I can’t find it anywhere now.
Really want to give this a try tonight


r/ReplayOS • • 19h ago

Hard facts, updated for 2027

Post image
2 Upvotes

r/ReplayOS • • 1d ago

Alpha Player network streaming plan

1 Upvotes

1. Objective and scope

Allow a local channel playlist to mix local files and network streams. Users load the playlist through the existing frontend or REST flow, then use L/R to change entries and B to display the current entry's name. Deliver all seven discussed requirements:

  1. Play HTTP/HTTPS URLs, including HLS stream URLs, from M3U playlists.
  2. Use L/R to navigate the URLs/files inside that channel playlist.
  3. Use optional outer #EXTINF titles for channel names.
  4. Disable unsupported seeking, hide live progress, and skip position resume for live streams without a meaningful duration.
  5. Bound network connection, probing, and stalled-read waits.
  6. Show actionable OSD messages for unavailable streams.
  7. Skip failed entries with bounded attempts, keeping channel navigation usable. UDP URLs are secondary, conditional on the linked FFmpeg build. Handle their addresses correctly and use protocol-appropriate timeout behavior, but do not delay the HTTP/HTTPS/HLS milestone for multicast or other advanced UDP setup.

2. Terminology and intended use cases

  • M3U channel list: the list Alpha Player navigates. Each entry represents a complete local media item or network channel.
  • HLS: HTTP Live Streaming. An HLS manifest, commonly .m3u8, identifies media segments and possibly alternative quality streams. FFmpeg handles these internal playlists and segments as one playable item. HLS supports both live broadcasts and on-demand content; a network URL alone does not imply live TV.
  • MPEG-TS: MPEG Transport Stream, a container carrying audio, video, and timing. It can contain H.264/AAC and is not limited to MPEG-2 video. It can be delivered continuously over HTTP/UDP or used for individual HLS segments.
  • Reported use case: Dispatcharr sends continuous MPEG-TS over an HTTP URL with no useful filename extension. HLS is an additional supported input type. Applicable home-server sources include ErsatzTV for scheduled library channels, Owncast for livestreaming, MediaMTX for relaying streams, and FFmpeg plus a web server for custom HLS output. Jellyfin HLS URLs may also work when the caller supplies a usable authenticated playback URL; session management is separate. This feature does not implement YouTube webpage resolution, Jellyfin/Plex library browsing or login, DRM, EPG/XMLTV, channel logos/groups, or a server/encoder inside Alpha Player. It consumes streams supplied by those systems.

3. Current implementation and affected code

Primary implementation file: ffmpeg_core.c.

  • playlist, playlist_count, playlist_index: store paths only; no titles.
  • parse_m3u_playlist(): prefixes every entry with the playlist directory and requires access(..., R_OK). This rejects URLs and mishandles absolute paths.
  • aplayer_path_is_m3u() / retro_get_system_info(): currently recognize .m3u as the outer playlist extension; .m3u8 needs explicit classification.
  • retro_load_game(): opens/probes synchronously through FFmpeg without network options or an interrupt callback.
  • display_media_title() and L/R OSD: derive names from filenames.
  • seek_frame(), dispaly_time(), bookmark helpers: already have some duration guards, but duration alone is not sufficient to determine seekability.
  • Decode loop: every negative av_read_frame() result currently becomes EOF.
  • retro_unload_game(): signals decoder shutdown and joins its thread; signals alone cannot interrupt a blocked FFmpeg network read.
  • Existing playlist retry logic uses internal reload flags consumed by retro_load_game(). Preserve playlist context explicitly across failed loads.
  • Fix the existing open-input error log's two %s placeholders with one argument while implementing network diagnostics.

4. Playlist representation and parsing

Introduce an entry structure containing the source string, optional display title, and source kind (local or supported network protocol). Keep the existing 256-entry limit for this milestone and report when additional entries are ignored. Update all navigation, bookmark matching, shuffle, and reload uses consistently. Parsing rules:

  • Resolve relative local paths against the playlist directory.
  • Preserve absolute local paths; retain local readability checks.
  • Recognize supported schemes at the start of the entry, case-insensitively. Preserve URLs, query parameters, and escaping exactly; skip filesystem checks for them. Reject unsupported schemes with a clear diagnostic.
  • Accept LF/CRLF and a UTF-8 BOM. Ignore blank lines and comments. Detect overlong lines and reject the entire entry instead of accepting a truncated URL/path.
  • Capture #EXTINF metadata for the following media entry. Find the first comma outside quoted attributes and preserve the complete following title, including any commas in that title. Clear pending metadata after consuming or rejecting its entry so it cannot attach to a later channel.
  • Treat -1 as unknown declared duration. Do not use it as the sole authority for live/seek capabilities; actual input properties take precedence.
  • Additional tvg-id, tvg-name, group-title, and logo attributes may be ignored. Their presence must not break title parsing. Example outer playlist:
#EXTM3U
#EXTINF:-1 tvg-id="news" group-title="TV",News
https://server.example/news/live.m3u8
#EXTINF:-1,Cartoons
http://192.168.1.20:9191/proxy/ts/stream/channel-id
#EXTINF:120,Local clip
../videos/clip.mp4

5. HLS handling and extension classification

Do not feed HLS segment or variant lists into Alpha Player's channel parser. Pass HLS input to avformat_open_input() and let FFmpeg manage it.

  • A URL inside an outer playlist goes directly to FFmpeg, regardless of extension.
  • Classify URLs before applying local extension-based handling; query strings must not turn a stream into a local playlist or MIDI input.
  • Add .m3u8 to advertised content extensions. For local playlist files, inspect HLS #EXT-X- tags: an HLS manifest goes to FFmpeg; an ordinary channel list goes to the channel parser. Apply this distinction to .m3u too, since the extension alone does not define the playlist's meaning.
  • Local HLS manifests can reference remote segments. Network limits and cancellation must cover nested FFmpeg requests as well as top-level URLs.
  • Never present HLS segments or quality variants as separate L/R channels.

6. Network opening, cancellation, and thread ownership

Allocate an AVFormatContext explicitly and install AVIOInterruptCB before opening. Give each load a cancellation token and monotonic deadline, separate from decode_thread_dead, whose current lifecycle is tied to active decoding. Use proper synchronization for state shared with the callback. Proposed initial limits, implemented as named constants:

  • 10 seconds total for opening plus stream probing of one network candidate.
  • 10 seconds without successful network read progress before declaring a stall.
  • Cancellation requested immediately on channel change or unload. Set rw_timeout where applicable and use protocol-specific options where needed. Use interrupt deadlines to cover overall open/probe work; a socket timeout alone does not bound all probing or HLS retries. Refresh read deadlines around active read operations, not while paused or blocked by a full decoded-data queue. Verify nested HTTP/HLS requests inherit the intended behavior. Audit resolver and TLS behavior on the shipped FFmpeg build before claiming a strict wall-clock bound for every possible failure. Initial retro_load_game() may remain synchronous with a bounded total startup budget, since the frontend needs a success/failure result. Use a 10-second total budget across initial candidates, rather than 10 seconds multiplied by 256. If exhausted, report failure clearly and return false. During playback, perform network open/probe for channel switching in a background loader. Keep the frontend loop available to poll input, display loading/error state, and cancel or replace the pending selection. Stage candidate FFmpeg state separately; publish it only after success. Keep frontend environment callbacks, OSD, GL setup, and final playback-state installation on the frontend thread. On unload, cancel pending loading and active reads, wake FIFO/video waiters, join threads, then release their contexts. Never free state still used by an interrupt callback or join a worker while holding a lock it needs to finish.

7. Names, live controls, and resume

Use one title helper for initial load, B, channel switching, and error messages: outer #EXTINF title first, then useful stream metadata for network media, then a safe URL basename/host fallback. Preserve current filename behavior for local files without an explicit playlist title. Do not expose URL credentials or query tokens in fallback titles or diagnostics. Determine duration validity, seekability, and live behavior separately. Combine FFmpeg input/demuxer capabilities, meaningful duration, and known live/HLS state; do not rely solely on duration or fctx->pb->seekable, since HLS manages nested inputs and can have a sliding duration window.

  • For live/unknown-duration streams: disable time seeking and position resume. A should display Live and optionally elapsed playback time as a notification, with no percentage or progress-bar message.
  • B and L/R remain available, including after a failed channel or ended stream. Move navigation outside the current !decode_thread_dead gate as needed.
  • Seekable on-demand streams may retain progress, seeking, and resume.
  • Preserve existing local-file, MIDI, and game-music restrictions.
  • A stale playlist bookmark must not seek a newly live entry. Restoring a channel selection can remain independent from restoring a playback timestamp; live timestamp saving/restoration stays disabled.
  • Live pause is a local pause with bounded buffers, not a DVR promise. On resume, reconnect to the live edge if the session/window is no longer usable. Do not treat deliberate pause/backpressure as network failure or accumulate media indefinitely. Local-file pause behavior remains unchanged.

8. Failure handling and channel navigation

Use an explicit result/state for loading, playing, switching, failed, and ended; do not represent every network error as ordinary EOF. Distinguish EOF, temporary EAGAIN, cancellation, timeout, and permanent open/read errors.

  • Show Connecting: <name> during network channel changes.
  • Show Stream unavailable: <name> or Stream timed out: <name> on failure; retain FFmpeg error details in sanitized logs.
  • On failure, try another channel with a visited-entry set and finite attempt limit. R and forward advancement move forward; L moves backward. Respect Play Once boundaries, wrapping modes, and Shuffle without retrying the same failed candidate indefinitely. Repeat Track must not trap the user on a dead channel; failure skipping overrides repetition for the current attempt.
  • Use the same candidate-selection logic for initial load, manual switching, automatic advancement, and runtime stream failure, with the startup budget described above. A new user selection cancels the previous attempt sequence.
  • After all eligible entries fail, show No playable channels and retain an idle playlist state for L/R retry and exit if content was already loaded. Initial startup failure instead returns false after its error notification.
  • Do not add unlimited reconnect loops. Explicit user cancellation must not be reported as a stream failure or trigger automatic skipping.

9. Implementation order

  1. Add playlist entry/title representation, URL classification, robust parsing, and HLS-versus-channel-list detection. Preserve local playlist behavior.
  2. Add interruptible FFmpeg opening/probing/reads, cancellation ownership, timeout diagnostics, and safe cleanup, including nested HLS requests.
  3. Replace fragile reload retries with shared candidate-selection logic and add cancellable background network switching plus frontend loading/error states.
  4. Add shared title display, live progress/seek/resume rules, and live pause policy.
  5. Verify shipped FFmpeg protocol/demuxer support and document playlist examples, limits, supported sources, and controls in README.md. The default build links system FFmpeg. Verify the actual RePlay/Pi libraries for HTTP, HTTPS/TLS, TCP, HLS demuxing, and the requested codecs; UDP is conditional. The optional bundled configuration currently disables HTTPS, so update and verify its TLS dependency configuration before advertising HTTPS for that build.

10. Focused validation and completion criteria

Keep validation limited to the changed behavior; no broad new test framework.

  • Small parser checks: relative/absolute local paths; mixed URLs/local files; BOM/CRLF; missing titles; quoted commas and title commas; query strings; overlong entries; local HLS versus ordinary M3U/M3U8 channel lists.
  • A controlled LAN source: continuous MPEG-TS over HTTP without an extension, HLS live, and HLS on-demand. Include a local HLS manifest with remote segments.
  • An unreachable/stalled endpoint: bounded initial load, readable OSD, working L/R during channel connection, and cancellation during reads and exit.
  • Mixed good/bad channels: broken first entry, mid-playback disconnect, all failed, backward skipping, Play Once boundaries, wrapping, Shuffle, and Repeat Track.
  • Live controls: title, no progress bar, disabled time seek, no timestamp resume, and bounded pause/resume behavior. Confirm on-demand seek/resume still works.
  • Compile with the normal project configuration and perform final playback checks on Raspberry Pi 5/RePlayOS, the reporter's target environment. Complete when the issue's HTTP MPEG-TS example and an HLS channel both work through the existing playlist flow, titles and L/R work, failures are bounded and visible, and local media playback remains functional. HLS support does not imply seamless adaptive bitrate switching or guaranteed playback of every service's protected or session-dependent URLs.

References

  • HLS structure and MPEG-TS segments: https://datatracker.ietf.org/doc/html/rfc8216
  • FFmpeg network options: https://ffmpeg.org/ffmpeg-protocols.html
  • FFmpeg interruption: https://ffmpeg.org/doxygen/trunk/structAVIOInterruptCB.html
  • FFmpeg HLS generation: https://ffmpeg.org/ffmpeg-formats.html#hls
  • ErsatzTV channels: https://ersatztv.org/docs/channels/
  • Owncast external playback: https://owncast.online/docs/watching-streams/
  • MediaMTX: https://mediamtx.org/docs/features/read
  • Jellyfin playback: https://jellyfin.org/docs/general/clients/codec-support/

r/ReplayOS • • 3d ago

DevLog #40 - RePlay OS v2.2.18 - New Native Games

Thumbnail
youtube.com
3 Upvotes

r/ReplayOS • • 5d ago

VGA to Retrotink Scart cable not compatible?

3 Upvotes

Im using raspberry pi 5, with a micro hdmi to hdmi, the vga dac bob from retrorgb recommended, and the vga to scart cable from retrotink. I have it set to crt, and changed the range to limited range to match his settings. No dice getting any picture.

Im using a scart modded sony. I use a scart switcher and every other console is fine. Maybe with a scart modded tv this setup isn’t viable?

I powered the dac and it gave me a image with incorrect sync(rolling rapidly). He used the dac without power so I can’t imagine this is related. Any ideas?


r/ReplayOS • • 5d ago

Ambiscan: only with RePlayOS, only on Pi devices

Thumbnail gallery
3 Upvotes

r/ReplayOS • • 13d ago

Can I use the RGB-Pi 1.0 "game packs" for RGB-Pi 2.0 as well?

2 Upvotes

Asking here because Mortaca never provides support for their products or answers after-sales questions according to my experience.


r/ReplayOS • • 17d ago

Now RTA is customising cores for RePlayOS

Post image
11 Upvotes

r/ReplayOS • • 26d ago

File format for save states (.sst)

2 Upvotes

I've recently been using Syncthing to sync saves and save states between several different devices and it works great.

I was going through the process of adding my Pi3 with ReplayOS to Syncthing but noticed that the save states are in a file format that ends in .sst# where # is the save state slot.

I thought ReplayOS used libretro cores. Does anyone know what the reason behind changing the file type for save states is or if the .sst file is interchangeable with a typical libretro save state?

BTW I have tested at least SNES to confirm that the save files generated by saving in game works and they do (.srm file type). I'm just curious about these .sst file types.


r/ReplayOS • • Nov 03 '26

BT controllers

3 Upvotes

Can you use BR controllers yet? I have not been keeping up on the project.


r/ReplayOS • • Nov 01 '26

DevLog #39 - RePlay OS v2.1.0 & Pi-DOS 1.0

Thumbnail
youtube.com
11 Upvotes

r/ReplayOS • • Oct 31 '26

RetroTV v0.3.4: a 90s cable box for ReplayOS, now a system of its own

Post image
25 Upvotes

RetroTV is a libretro core for ReplayOS on the Raspberry Pi 5. It plays live TV from an IPTV playlist (M3U) like an old cable box: channel up and down, a channel banner, a TV guide, static while it tunes, "NO SIGNAL" on a dead channel, and two CRTs at once if you have them. You can pause live TV for about 15 minutes, and the paused picture wobbles like a VHS tape on pause. You can also control it from your phone.

Demo video: https://youtu.be/OCvExU21ayg

What's new since v0.2.10

  • It's its own system now (ReplayOS 2.1.0+). "RetroTV" appears in the system list. It no longer borrows the A/V test or Virtual Boy slot, and ReplayOS updates don't remove it. If you have an older install, it gets moved over automatically and keeps your settings and last channel.
  • More than one line-up. Every .txt or .m3u file in roms/retrotv/ is a line-up you can pick like a game, and each one remembers its own last channel.
  • Updates from the TV. RetroTV checks for a new version once a day and shows a notice on the banner. Press X → Update → Install, or tap INSTALL on the phone remote. No ReplayOS restart is needed.
  • Reconnects dropped streams. If a live stream drops (a server restart, a flaky source), RetroTV holds the last picture and reconnects instead of going to NO SIGNAL.
  • Free Pluto TV channels. There's a new guide to using a community Pluto TV playlist (plus its TV guide) as a line-up. It works best with one Pluto channel at a time.
  • Better phone remote. It has a SWAP button for two-screen setups, and you can change picture settings for each screen separately.
  • Zaparoo.

    • RetroTV shows up as a system.
    • Channel cards tune channels.
    • The Zaparoo app shows the current channel as "now playing".
    • Channels in your history and recents launch straight back into that channel.
  • "NO CHANNEL" message when a card or the remote asks for a channel the line-up doesn't have, instead of failing silently.

Install (Pi 5, ReplayOS 2.1.0 or newer). Run this on the Pi as root:

curl -fsSL https://raw.githubusercontent.com/chris-skitch/retrotv-libretro/main/install.sh | bash

Then put your M3U link in retrotv/playlist.txt on your ReplayOS storage. Dispatcharr, Tunarr and plain M3U + XMLTV all work.

No IPTV source yet? You can try RetroTV with free Pluto TV channels. The guide shows how to add them as a line-up in a couple of minutes: https://github.com/chris-skitch/retrotv-libretro/blob/main/docs/PLUTO_TV.md

Updating from 0.2.x: first update ReplayOS to 2.1.0, then run Extra → retrotv_update.sh (or the one-liner again). From then on, updates come through the TV.

Repo: https://github.com/chris-skitch/retrotv-libretro

Feedback and bug reports are welcome!


r/ReplayOS • • Oct 31 '26

2.1.0 change list looks so good!!

Post image
16 Upvotes

I didn't get a chance to update yet, but this is awesome news!


r/ReplayOS • • Oct 29 '26

I made RetroTV: a libretro core that turns an IPTV playlist into a 90s cable box on ReplayOS (Pi 5, dual CRT support)

15 Upvotes

I've been building a libretro core for ReplayOS on the Pi 5 that makes an IPTV/M3U playlist behave like a 90s cable box on a CRT:

- Channel up/down with static and hiss while it tunes, and a NO SIGNAL screen

- Now/next banner and a 90-minute TV guide from your XMLTV listings

- Made for CRTs: 4:3, 50 Hz on PAL-rate channels, optional 240p, overscan margin

- Fit/Zoom for letterboxed 16:9 channels, remembered per channel

- Pause live TV (buffered in RAM, up to about 15 minutes) with a VHS-style wobbly still frame

- Two screens: uses ReplayOS's dual HDMI so each CRT gets its own channel, with the sound following the focus

- A phone remote and HTTP API on the Pi, so Zaparoo cards or scripts can change channel

It uses ReplayOS's own FFmpeg, so there's nothing extra to install. Works with Dispatcharr, Tunarr or any M3U with MPEG-TS or HLS streams.

Install

(one line over SSH):

curl -fsSL https://raw.githubusercontent.com/chris-skitch/retrotv-libretro/main/install.sh | bash

There's also a no-SSH option via Extras; details in the README.

The catch:

ReplayOS doesn't support custom cores yet, so RetroTV borrows a slot: the A/V test in Extras by default, or Virtual Boy (`--slot vb`) if you want remote start and Zaparoo channel cards. The uninstaller gives the slots back. Re-run the installer after a ReplayOS update.

Video of it running on two CRTs: https://www.youtube.com/watch?v=OCvExU21ayg

Code (MIT): https://github.com/chris-skitch/retrotv-libretro

Built with a lot of help from Claude Code; I review, test and maintain it. It's a prototype, so bug reports, ideas and "it didn't work on my setup" reports are all welcome, here or as GitHub issues.


r/ReplayOS • • Oct 16 '26

Retroflag SUPERPi case Pi 3 Safe Shutdown Script Doesn't Work

6 Upvotes

*SOLVED with Edit #4 below!*

TL;DR: The solution was to edit the script and replace it with the one in GitHub issue #150, set up a systemd service to run the script and then install the RPi.GPIO library.

________________________

Does anyone know why the safe shutdown script doesn't work with ReplayOS?

In my case I'm using the SUPERPi case from Retroflag and there are some errors installing the script.

I've heard that this support is baked in but doesn't seem to work on Pi 3 or maybe specifically with this case.

Edit to add more info:

When installing the script there isn't an option for ReplayOS however there is a script for RetroPie, RecalBox and Batocera. They all fail when trying to add the script to rc.local because rc.local desn't exist on ReplayOS.

Also there's closed github feature requests. The answer given is to use the scripts that come with the case in question.

Github links:

[FR] Add support for Retroflag SuperPi4 Case #190

Feature request: Retroflag Case suport for RPI3 #338

Edit #2:

Looks like these scripts need to be updated to support systemd i think.

Edit #3:

There is more info here which make me think I'm on the verge of making this work but I'm still missing something.

Here are the steps I took so far:

  1. Follow instructions in this github issue [Fix] SafeShutdown.py broken on Raspberry Pi OS Bookworm (Debian 12) — lgpio incompatibility + working script included #150
  2. Install PIP for Python3:

sudo apt-get update
sudo apt-get install python3-pip

3. Install RPi.GPIO because the script seems to use it:

pip install RPi.GPIO

4. Reboot

sudo reboot

Doesn't work yet but I think I'm close.

Edit #4:

So apparently "pip install RPi.GPIO" didn't work but the following did:

apt install python3-RPi.GPIO

And now everything works as expected!


r/ReplayOS • • Oct 16 '26

Composite filter coming in v2.1.0

Post image
19 Upvotes

r/ReplayOS • • Oct 12 '26

"Added automatic gameplay screenshots when saving states, so now Save/Load State menus display each corresponding screenshot"

Post image
16 Upvotes

r/ReplayOS • • Oct 04 '26

OmaCRT: driving the RGB-Pi 2 from a Linux PC (Hyprland), open source

Post image
17 Upvotes

Two things up front:

- It is written with AI, like most software in 2026. If that is not for you, that's fine, but please keep it civil. Other subreddits got personal, and I'd rather that did not happen here.

- It is experimental. I'd love it if a few people tried it and told me what works and what breaks.

I've been using my RGB-Pi 2 with a desktop PC instead of a Raspberry Pi, and the result became a project: OmaCRT, for retro gaming on a real 15 kHz CRT television from a Hyprland desktop.

The RGB-Pi 2 is a plain HDMI sink, so a PC can drive it. OmaCRT takes one HDMI output for the TV through DRM leasing and leaves your other monitors on the desktop. It sets the DAC's sync mode over I2C and switches modes per game (240p NTSC, 288p PAL). It also has a small launcher for games (RetroArch, and Supermodel for Model 3), music and video at 320x240.

It is not meant to replace RePlayOS. On a Pi, RePlayOS is the complete, polished option, and I learned a lot from its public scripts. OmaCRT is for people who already have a Linux PC next to the TV and want to use it.
So far it has been tested on one TV, with an AMD GPU and a stock kernel (no interlace). Written in Rust, MIT licence, no account or telemetry.

Site and manual: https://omacrt.com

Code: https://github.com/stefanomainardi/omacrt

RGB-Pi 2 on a PC (sync registers, EDID, what I measured): https://github.com/stefanomainardi/omacrt/blob/main/docs/rgb-pi-2.md

Feedback from other TVs and GPUs is very welcome, especially on AND vs XOR csync.


r/ReplayOS • • Sep 28 '26

V2 dropped

Post image
24 Upvotes

r/ReplayOS • • Sep 24 '26

Interesting RTA activity on github

Post image
11 Upvotes

r/ReplayOS • • Sep 24 '26

Mame question

3 Upvotes

Hi, I have a non merged romset in the version 0.289 from pleasuredome and ReplayOS in 1.8.

I have the latest v11 drivers.

But Mame for the most part doesn't work, many games missing and only shows a few gamedswith the full name.

Anything I'm missing here?


r/ReplayOS • • Sep 23 '26

New UI font option

Post image
12 Upvotes

r/ReplayOS • • Sep 18 '26

v3.5 of RGBpi2 has entered the beta testing phase

Post image
30 Upvotes