Skip to content

About

🎬 PhantomRec: The Ultimate Low-End Screen Recorder β€” Smooth 60 FPS on Weak PCs, Dual-Core CPUs, No GPU Required

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

114 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PhantomRec β€” A FRAPS Clone and Alternative

Untitled The Icon Resembles "M" for the owner "MaxRBLX1"

Built by MaxRBLX1 β€” v1.9.9

Project History

PhantomRec was originally released as RetroRec (v1.0 – v1.7). The name was changed in v1.8. All recordings and settings from previous versions are fully compatible.


What is PhantomRec?

PhantomRec is a free, portable, invisible screen recorder for Windows 7, 8, 8.1, 10, and 11. It records smoothly on machines where other recorders except fraps and d3dgear lag your game β€” including dual-core CPUs, no GPU, and Microsoft Basic Display Adapter. It never uses NVENC, AMF, or QuickSync.


How PhantomRec Works β€” The Two-Stage Ghost Pipeline

Stage 1 β€” Live Capture (MJPEG, CPU-only)

  • GFX Capture / DDAGrab use the GPU's copy engine to read the framebuffer, then hand the raw pixels to the CPU. One blit per frame, no GPU-side format conversion.
  • MaxRBLX1's Fastest MJPEG (maxenc.exe) encodes each frame with libjpeg-turbo (SIMD-accelerated JPEG) using a single thread. The OS scheduler places the encode, writer, and console threads β€” PhantomRec doesn't pin them. This is a high-quality intermediate, not a lossless master.
  • GDI fallback works on any Windows version and any GPU β€” including Microsoft Basic Display Adapter β€” at up to 30 FPS.
  • The GPU encoder graph stays at 0% because PhantomRec never touches it.

Every frame is timestamped with a wall-clock PTS from QueryPerformanceCounter, not a frame counter. That means the timing stays correct even when the capture source doesn't deliver exactly N frames per second β€” which it never does, especially during the first seconds of startup.

Encoded frames are handed to a bounded writer ring (64 slots). A separate thread muxes them to disk. A short disk stall β€” Defender scanning the growing file, an HDD seek, SMB latency β€” cannot blow the frame budget. On overflow, the oldest queued frame is dropped, which is the right policy for a screen recorder.

Audio is captured separately by maxsound.exe using WASAPI loopback. Video and audio each write a .t0 marker file with the QPC tick at their first sample. At mux time, PhantomRec reads both markers and offsets the audio track by the exact measured delta, so audio t=0 lines up with video t=0.

Stage 2 β€” Post-Convert (x264 ultrafast, when you stop)

When you press STOP, PhantomRec muxes the video and audio together, then encodes the result with x264 ultrafast. Stage 2 runs with BELOW_NORMAL_PRIORITY_CLASS and half the CPU threads, so the machine stays usable while the encode runs in the background. You get a compact, shareable file without the recorder ever competing for GPU time.


The Result

  • GPU encoder stays at 0% β€” no encoding on the GPU, ever.
  • Recording uses roughly half of one CPU core on a modern 4-core machine (measured: maxenc.exe at ~14% of total CPU on 4 cores).
  • Heavy compression happens after you stop, not during recording.
  • No GPU encoder required. No NVENC. No AMF. No QuickSync. CPU only.
  • Runs on hardware from 2 cores up β€” verified on an Intel Core 2 Quad Q9550 limited to 2 cores.

Screenshot 2026-09-29 044544

Task Manager during a recording, on the Q9550 limited to 2 cores.


System Requirements

PhantomRec is designed to work on any PC from Windows 7 SP1 onward β€” no GPU lockouts.

Requirement What You Actually Need
CPU Any 64-bit x86 CPU with SSE2. The encoder is single-threaded per capture pipeline, so one usable core is the floor.
RAM 4 GB. The audio pipe, JPEG buffers, and writer ring are bounded, so memory use is flat.
OS Windows 7 SP1 through Windows 11. GFX and DDAGrab need newer Windows; GDI is the universal fallback.
Storage Any HDD or SSD. The intermediate MJPEG stream is 30–50Γ— smaller than a lossless codec, so even a slow mechanical drive can keep up.
GPU None required. Any GPU works. See the table below.

What This Means for Your GPU

GPU Type What Happens Locked Out?
NVIDIA Kepler+ (GTX 600+) Full GFX/DDAGrab support. 60 FPS recording. ❌ No
AMD GCN 1.0+ (HD 7000+) Full GFX/DDAGrab support. 60 FPS recording. ❌ No
NVIDIA Tesla / Fermi (GTX 400/500) Capture still works via GDI fallback. GFX/DDAGrab may be slow on some titles because the GPU itself is old. ❌ No
AMD TeraScale (HD 6000 or older) Capture still works via GDI fallback. Same caveat as above. ❌ No
No GPU (Microsoft Basic Display Adapter) GDI capture + CPU encoding. Recording is smooth. ❌ No

No one is locked out. If you have a modern GPU, you get GFX/DDAGrab at 60 FPS. If you have an older one, PhantomRec falls back to GDI and still records. GDI is CPU-bound; if it drops frames, your CPU is the limit, not the GPU.


A Note on Windows Versions

PhantomRec doesn't care what hardware you have β€” it cares about your OS, because that determines which capture APIs are available.

Windows Version Capture Method Typical FPS
Windows 10 / 11 GFX (Windows.Graphics.Capture, D3D11) 60 FPS
Windows 8 / 8.1 DDAGrab (DXGI Desktop Duplication) 60 FPS
Windows 7 SP1 GDI (CPU BitBlt) Up to 30 FPS

Fallback chain: GFX β†’ DDAGrab β†’ GDI. If a method isn't supported on your system, PhantomRec automatically drops to the next one. GDI is the universal fallback.


What's New in v1.9.9

Two-stage pipeline, unchanged from 1.9.8

The core architecture is identical: MJPEG capture on one core with libjpeg-turbo, muxed with WASAPI audio, then re-encoded to x264 after you stop. Nothing about the pipeline changed.

Removed β€” process affinity system

libjpeg-turbo is single-threaded and skips intra-frame prediction, so the encoder uses one core's worth of work and doesn't compete with anything else on the machine. Measurements across every capture path show maxenc.exe CPU cost is unchanged (10–15% of total on a 4-core machine) regardless of core placement.

The 1.9.8 affinity system tried to reserve cores for the encoder, but the reservation added scheduling overhead without lowering the encoder's CPU cost. Removing it restores the OS's own thread placement, which is where the encoder always performed best.

  • Process monitor, browser detection, and core reservation are gone.
  • No process affinity is changed, on any machine, at any time.
  • Dual-core console-thread priority boost is kept. On 2-core machines, maxenc.exe's console thread runs at THREAD_PRIORITY_HIGHEST so STOP and PAUSE respond immediately even when the encoder is mid-frame.
  • Stage 2 runs at BELOW_NORMAL_PRIORITY_CLASS on half the CPU threads.

Stage 2 β€” universal 60fps output

Every recording now produces a 60fps CFR final file, regardless of capture method. GFX and DDAGrab already capture at 60fps; GDI captures at 30fps natively and Stage 2 duplicates each frame to fill the 60fps timeline. The output format is consistent across all three capture paths.

GDI recordings take roughly 2Γ— longer in Stage 2 because there are twice as many output frames to encode. Stage 2 runs in the background at BELOW_NORMAL_PRIORITY_CLASS, so the machine stays usable while it runs.

Desktop notification when a recording is saved

When Stage 2 finishes, PhantomRec shows a system notification with the filename. Clicking it opens Explorer with the file selected.

  • Windows 7 SP1, 8, 8.1 β€” classic tray balloon
  • Windows 10, 11 β€” toast in the Action Center

Uses Shell_NotifyIcon, the one notification API that renders natively on every Windows version PhantomRec supports. No WinRT dependency.

Cleanup

  • ts=wallclock removed from the gdigrab path. It was a no-op β€” maxenc's PTS comes from QueryPerformanceCounter, not from the demuxer.
  • Version strings updated.

What's New in v1.9.8

The biggest update in months. Two months of work, one goal: smooth recording on any PC.

Architecture changes

  • Replaced ffvhuff with MaxRBLX1's Fastest MJPEG. libjpeg-turbo on a single pinned core. Lower CPU cost, smaller intermediate files, and it stays out of the GPU's way completely.
  • Bounded writer ring. Encoded frames go into a 64-slot ring, and a separate writer thread muxes them to disk. Disk stalls no longer drop frames.
  • maxsound.exe for audio. Dedicated WASAPI loopback capture process instead of an in-process audio thread.
  • .t0 marker-based A/V alignment. Video and audio each write a QPC tick marker at their first sample. PhantomRec reads both and applies the exact measured offset with adelay or atrim at mux time.
  • Removed forced frame rate from Stage 2. The output inherits its frame rate from the intermediate instead of being re-timed, which eliminates the A/V drift that older versions had.
  • Persistent tjhandle and AVPacket. No per-frame allocation in the in-process MJPEG fallback.

Bug fixes

  • Fixed a crash on STOP where PhantomRec could receive its own CTRL_BREAK_EVENT and exit.
  • Fixed the segment-0 overwrite in the standalone maxenc.exe pause path.
  • Fixed the audio child's inherited handle list so ffmpeg's stderr no longer goes to a stale handle.
  • Fixed KSDATAFORMAT_SUBTYPE_IEEE_FLOAT linkage on MSYS2 UCRT64.
  • In-process capture thread now distinguishes AVERROR(EAGAIN) from EOF and no longer loops on permanent source failure.

What's New in v1.9.7

Polish release:

  • 🧹 Removed power-plan management β€” no longer forces High Performance.
  • 🎨 Fixed UI status flicker β€” no more black rectangles during updates.
  • πŸ“Š Progress bar corrected β€” proper 0–100 range, no PBS_MARQUEE.
  • πŸ–ΌοΈ Added HD icon β€” 256Γ—256 with 48, 32, and 16 px fallbacks.
  • πŸ“„ Version info embedded in the .exe.
  • πŸ› οΈ Verified build on MSYS2 UCRT64 with windres.

What's New in v1.9.6

Bug-fix release:

  • 🎯 Fixed CMD console window staying open after recording.
  • πŸ”§ Fixed FFmpeg not exiting cleanly β€” process stops reliably every time.
  • πŸ”‡ Fixed audio thread hang β€” pipe write handle closed before waiting.
  • πŸ” Fixed progress bar after pause/resume.
  • πŸ“¦ Fixed fragmented files β€” segments always concatenate into a single file.
  • 🧡 Fixed race conditions β€” all state flags use Interlocked operations.
  • 🎨 Fixed font handle leaks.
  • πŸš€ Direct FFmpeg launch β€” no cmd.exe wrapper.

Settings β€” How to Control

All settings are in Settings.ini (same folder as PhantomRec.exe). Edit it while the program is running β€” hotkeys and appearance apply within 2 seconds. Capture method and conversion flag are deferred until idle.

[Settings]
Hotkey=F10
PauseHotkey=P
ConvertAfterRecording=yes
CaptureMethod=auto

[Appearance]
Background=C:\path\to\image.png
Font=C:\path\to\font.ttf
FontSize=14
FontColor=16777215
Setting Description
Hotkey F1–F12 for function keys, or a single letter for Ctrl+letter (e.g. R = Ctrl+R).
PauseHotkey Same format as Hotkey.
ConvertAfterRecording yes = compress after recording (recommended). no = keep the high-quality intermediate file.
CaptureMethod auto (default), gfx, ddagrab, gdi.

Note: MJPEGQuality is no longer read. Stage 1 picks the intermediate quality automatically. Legacy keys are ignored silently.


When ConvertAfterRecording=no

Setting Result
ConvertAfterRecording=yes MJPEG intermediate β†’ muxed with audio β†’ x264 ultrafast β†’ intermediate deleted. Final file: small, ready to share.
ConvertAfterRecording=no MJPEG intermediate β†’ muxed with audio β†’ kept as-is. Final file: large, high quality, ideal for editing or re-encoding.

File Output

  • yes (default): PhantomRec_YYYYMMDD_HHMMSS.mkv β€” compact x264, ready to share.
  • no: PhantomRec_YYYYMMDD_HHMMSS_lossless.mkv β€” high-quality MJPEG intermediate, ideal for editing.

Note: The _lossless filename is kept for backwards compatibility. The MJPEG intermediate is a high-quality file, not mathematically lossless. If you need mathematically lossless output for a specific workflow, run the intermediate through maxsengine.exe with an appropriate lossless codec before editing.


Building PhantomRec from Source

This guide provides step-by-step instructions for developers to build PhantomRec, maxenc, and maxsound from source.

PhantomRec is designed to be statically linked against the GCC and C++ runtimes, meaning the final executables are fully portable and do not require users to install any Visual C++ Redistributables.

πŸ› οΈ Prerequisites

To build PhantomRec, you must use the MSYS2 MINGW64 toolchain. We explicitly use the legacy MSVCRT runtime environment.

⚠️ WARNING: Do not use UCRT64. It introduces ABI (Application Binary Interface) mismatches with older pre-compiled FFmpeg libraries that can cause random crashes on Windows 7 and 8. The MSVCRT environment guarantees universal backward compatibility.

Step 1: Install MSYS2 and Pacman

If you do not already have MSYS2 installed, you must install it first.

  1. Download the installer from msys2.org.
  2. Run the installer and follow the setup instructions.
  3. Once installed, open the MSYS2 MINGW64 terminal (the purple icon).

Note: pacman comes pre-installed with MSYS2.

Step 2: Update the Package Manager

Before installing libraries, ensure your package manager is up to date. Run this command in the MINGW64 terminal:

pacman -Syu

If the terminal asks you to close, do so, reopen the MINGW64 terminal, and run pacman -Su to finish the update.

Step 3: Install Required Libraries

Install the GCC compiler, FFmpeg, and TurboJPEG development libraries.

pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-ffmpeg
pacman -S mingw-w64-x86_64-turbojpeg

πŸ“‚ Navigating to the Source Directory

Before you compile, you need to navigate the MSYS2 terminal to the folder containing the src directory. You have two ways to do this:

Method 1: The Drag & Drop Trick

Yes, you can drag and drop!

  1. Open Windows File Explorer and locate your PhantomRec folder.
  2. Drag the folder from Explorer and drop it directly into the black MSYS2 terminal window.
  3. MSYS2 will automatically paste the path. Press Enter.

Note: If the path contains spaces, MSYS2 will usually wrap it in quotes, but you may need to type cd (with a space) before dropping the folder.

Method 2: The cd Command (Recommended)

If your project is on the D: drive, MSYS2 maps it as /d/. You can navigate there manually using:

cd /d/your/path/to/PhantomRec
# Example based on standard MSYS2 installs:
# cd /d/msys64/home/YourUsername/PhantomRec

Step 4: Build the Subprocesses (Video & Audio Engines)

PhantomRec isolates video and audio encoding into separate subprocesses to ensure the game thread is never interrupted.

Note: SSE2-only builds are intentional. All binaries are compiled with -msse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-avx and the source files call _putenv_s("JSIMD_FORCESSE2", "1") at startup. On Penryn-family CPUs (Core 2 Quad Q9550 and other 2007–2008 chips), libjpeg-turbo's SSE4.1 kernel uses pmulld, which is microcoded on that generation and runs slower than the SSE2 pmuludq-based kernel. Forcing SSE2 makes behavior identical on every x86-64 CPU from 2003 (Athlon 64) through 2024 (Arrow Lake). Do not "optimize" these flags back to -march=x86-64-v2 β€” that would reintroduce the slowdown on the exact CPUs PhantomRec targets.

Compile maxenc.exe (Stage 1 Video Engine)

gcc -std=c99 -O2 -fno-strict-aliasing \
    -msse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-avx \
    -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNTDDI_VERSION=0x0A00000B \
    -static-libgcc \
    -I"D:/msys64/mingw64/include" \
    src/maxenc.c -o maxenc.exe \
    -L"D:/msys64/mingw64/lib" \
    -lturbojpeg -lavformat -lavcodec -lavfilter -lavutil -lavdevice -lswscale -lwinpthread \
    -lole32 -luuid -lwinmm -lgdi32 -luser32

Compile maxsound.exe (Stage 1b Audio Engine)

gcc -std=c99 -O2 -fno-strict-aliasing \
    -msse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-avx \
    -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNTDDI_VERSION=0x0A00000B \
    -static-libgcc \
    -I"D:/msys64/mingw64/include" \
    src/maxsound.c -o maxsound.exe \
    -L"D:/msys64/mingw64/lib" \
    -lwinpthread -lole32 -luuid -lavrt

Step 5: Build the Core and UI Objects

Now, compile the C core logic, the GUID definitions, the C++ UI, and the Windows resource file.

# Compile the C Core
gcc -std=c99 -O2 -fno-strict-aliasing \
    -msse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-avx \
    -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNTDDI_VERSION=0x0A00000B \
    -I"D:/msys64/mingw64/include" -c src/phantomrec_core.c -o phantomrec_core.o

# Compile the WASAPI GUIDs
gcc -std=c99 -O2 -fno-strict-aliasing \
    -msse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-avx \
    -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNTDDI_VERSION=0x0A00000B \
    -I"D:/msys64/mingw64/include" -c src/phantomrec_guids.c -o phantomrec_guids.o

# Compile the C++ UI
g++ -std=c++17 -O2 -fno-strict-aliasing \
    -msse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-avx \
    -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNTDDI_VERSION=0x0A00000B \
    -I"D:/msys64/mingw64/include" -c src/phantomrec.cpp -o phantomrec_ui.o

# Compile the Resource File (Icon & Version Info)
windres src/resource.rc -O coff -o resource.o

Step 6: Link the Final PhantomRec.exe

Link the objects together. The -static-libgcc -static-libstdc++ flags ensure the final .exe does not require external C++ DLLs. SSE2 flags do not appear here β€” they are compile-time only, and the objects already carry the SSE2-only codegen.

g++ -O2 -static-libgcc -static-libstdc++ \
    phantomrec_core.o phantomrec_guids.o phantomrec_ui.o resource.o \
    -o PhantomRec.exe \
    -L"D:/msys64/mingw64/lib" \
    -lturbojpeg -lavformat -lavcodec -lavfilter -lavutil -lavdevice -lswscale -lwinpthread \
    -lcomctl32 -lshell32 -luser32 -lgdi32 -lkernel32 -ladvapi32 -lole32 -luuid -lavrt -lgdiplus -lcomdlg32 -lwindowscodecs

πŸ“¦ Preparing the Release Folder

Because PhantomRec dynamically links against FFmpeg and TurboJPEG, you must distribute the required DLLs alongside the executables.

  1. Ensure PhantomRec.exe, maxenc.exe, and maxsound.exe are in the same folder.
  2. Download a full FFmpeg build (e.g., from Gyan.dev), rename ffmpeg.exe to maxsengine.exe, and place it in the folder.
  3. Copy all .dll files from your MSYS2 bin folder (D:\msys64\mingw64\bin) into the PhantomRec folder. You can do this quickly in the terminal using:
    cp /mingw64/bin/*.dll .
  4. Add Settings.ini and arial.ttf (for the watermark).

Your folder is now fully portable and ready to run on Windows 7, 8, 8.1, 10, and 11!


What PhantomRec Does Not Do (Yet)

  • Streaming β€” PhantomRec is a recorder, not a streaming tool.
  • Webcam overlay β€” Not supported.
  • Per-window capture β€” PhantomRec captures the entire monitor.
  • Game capture via hooking β€” Planned for a future release (exclusive fullscreen support).
  • GPU encoding β€” Not now, not ever. That's the whole point.
  • Microphone handling β€” Planned for a future release.

On FRAPS

FRAPS hasn't been updated in over a decade. PhantomRec is the recorder that should have replaced it β€” same lightweight footprint on the same class of hardware, no game hooking, no anti-cheat conflicts, and a post-conversion stage that gives you compact files without stealing FPS during play.

PhantomRec doesn't remove FRAPS. It just makes FRAPS unnecessary.


License & Credits

PhantomRec is free software. Use it, modify it, share it.

Built by a single developer: MaxRBLX1 Max'sEngineβ„’ powered by FFmpeg (ffmpeg.org) Audio capture based on Microsoft WASAPI sample code.

"Every screen deserves to be recorded."

About

🎬 PhantomRec: The Ultimate Low-End Screen Recorder β€” Smooth 60 FPS on Weak PCs, Dual-Core CPUs, No GPU Required

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages