Capture card resolution: 1080p, 1440p or 4K

A capture card was always read at 1080p (run.py's --capture-size
default). A player with a 4K card edited their install to get 4K, so
it's now a setting: Settings, Picture, Capture card resolution, 1080p
(the default), 1440p or 4K, Experimental, for the next Play.

Every new frame is drawn at the size captured, so the hints, help and
impact line say plainly that it can run quite sluggish: 1440p is about
twice the work of 1080p, 4K about four times. On an RTX 4070 Ti SUPER
(scripts/benchmark.py, per 30 fps game frame of 33 ms): 1440p 20 ms at
60 fps, 26 at 90 with half motion detail; 4K 52 ms at full, 36 at half,
30 at a quarter. So Auto motion detail now uses half for 1440p at 90
fps and a quarter for 4K (its motion worked out at 960x540, as half's
is at 1080p).

run.py reads the setting when --capture-size isn't given and logs the
size asked for; a card without it still gets the largest it has under
it. The capture setup step, the source guide and the README say to set
the console to the picked resolution.

1080p, 1440p and 4K recordings standing in for a card all ran through
the capture path without errors.
This commit is contained in:
SmoovPlay committed 2026-11-19 03:38:12 +00:00
1 parent 75a6e6b573
commit b0c0f98bd6
7 files changed
+59 -11

No files matched your search

+7
View File
@@ -16,6 +16,13 @@
the screen by cutting off the top and bottom, which can cut the HUD. **Stretch** makes everything wider.
**Panorama** keeps the middle close to its true shape and stretches the sides, like a TV's wide zoom.
**Capture cards** (Experimental)
- **Capture card resolution: 1080p, 1440p or 4K** (Settings, Picture). It was always 1080p. Higher is sharper on a
1440p or 4K screen, but every new frame is drawn at the size captured, so it can run quite sluggish: 1440p is
about twice the work of 1080p (fine at 60 fps on most cards), 4K about four times (likely sluggish even at 60 fps
on a fast card). 1080p stays the default. The console has to send that resolution too; a card without it uses the
largest it has under it. Motion detail on Auto goes to half for 1440p at 90 fps, and to a quarter for 4K.
## 0.3.6
**Picture**
+4
View File
@@ -275,6 +275,10 @@ As Experimental options. For any console with HDMI, pick **Capture card** on the
window**: SmoovPlay captures the window of the app you stream with (the Xbox app, Sony's PS Remote Play app,
Moonlight or a cloud game in a browser) and shows the smooth picture over it. A player's AVerMedia Live Gamer 4K
works; the Xbox app and other cards are waiting on reports, so please [send feedback](#help-test-it).
A capture card is read at 1080p by default. **Capture card resolution** (Settings, Picture) can ask for 1440p or 4K,
which is sharper on a screen that big, but every new frame is drawn at that size: 1440p is about twice the work of
1080p (60 fps on most cards), 4K about four times. Both can run quite sluggish.
</details>
<details>
+18 -3
View File
@@ -50,6 +50,7 @@ class Spec:
ON_OFF = {True: "On", False: "Off"}
CAPTURE_SIZES = {"1080p": (1920, 1080), "1440p": (2560, 1440), "2160p": (3840, 2160)} # Capture card resolution
IMPACT_PC = "an RTX 4070 Ti SUPER" # where the numbers in `impact` and the hints were measured
# scripts/looks_timing.py: GPU time of the built-in looks on a 1440p window (0.02 to 0.34 ms) and at 1080p for clips
# (0.01 to 0.19 ms), measured while chiaki-ng streamed.
@@ -150,11 +151,11 @@ SPECS: tuple[Spec, ...] = (
"speed": "TensorRT is about 12% faster at full motion detail, PyTorch at half."}),
Spec("motion", "Motion detail", ("auto", "full", "half"), "auto",
{"auto": "Auto", "full": "Full", "half": "Half"}, live=False, group="Smoothness", applies=("model", ("4.22.lite",)),
hints={"auto": "Full, or Half at 120 fps. Recommended.", "full": "Sharpest on fast motion. The slowest.",
hints={"auto": "Full; Half at 120 fps or a 1440p capture at 90; less for 4K. Recommended.", "full": "Sharpest on fast motion. The slowest.",
"half": "About 40% faster. A little softer on fast detail."},
help="How finely RIFE tracks movement. Full follows small, fast details best, like railings or distant "
"cars; Half takes about 40% less time but softens them a little. Auto uses Half at 120 fps (or for "
"a stream above 1440p) and Full otherwise. Only used with RIFE.",
"cars; Half takes about 40% less time but softens them a little. Auto uses Half at 120 fps or for a "
"1440p capture at 90, a quarter for a 4K capture, and Full otherwise. Only used with RIFE.",
impact={"picture": "Half is a little softer on small, fast details.",
"speed": "Half takes about 40% less time per AI frame."}),
Spec("scaler", "Upscaler", ("fsr", "vsr", "bilinear"), "fsr",
@@ -199,6 +200,20 @@ SPECS: tuple[Spec, ...] = (
"stream without HDR isn't changed. Applies the next time you press Play.",
impact={"picture": "An HDR stream's true colours, instead of a washed-out picture.",
"speed": "About 0.7 ms of graphics card time for each frame from the game."}),
# run.py asks the card for this size (framegen/capture.py pick_mode: else the largest it has under it). Every new
# frame is drawn at the size captured, so the cost grows with it: notes in the hints, measured by scripts/benchmark.py.
Spec("capture_size", "Capture card resolution", tuple(CAPTURE_SIZES), "1080p",
{"1080p": "1080p", "1440p": "1440p", "2160p": "4K"}, live=False, group="Picture", experimental=True,
hints={"1080p": "The lightest: 60, 90 or 120 fps on a fast card. Recommended. The default.",
"1440p": "About twice the work of 1080p: fine at 60 fps on most cards, but 90 can run sluggish. "
"Sharper on a 1440p or 4K screen.",
"2160p": "About four times the work of 1080p: likely to run sluggish, even at 60 fps on a fast card. "
"Only for a 4K screen."},
help="Capture cards only (Remote Play is 1080p at most). Higher is sharper on a bigger screen, but every new "
"frame is drawn at this size, so it can run quite sluggish. A capture bigger than your screen gains "
"nothing. The console must send it too. Experimental; applies the next time you press Play.",
impact={"picture": "Sharper on a 1440p or 4K screen; no gain on a 1080p one.",
"speed": "1440p: about twice the work of 1080p. 4K: about four times. Both can run sluggish."}),
# framegen/looks.py (the looks; "Which look" lists the built-in ones, then the user's, from looks.CHOICES, which
# the looks library keeps up to date) and framegen/looks_gl.py (drawing them, after the upscaler).
Spec("look_on", "Look", (False, True), False, ON_OFF, group="Looks",
+2 -1
View File
@@ -224,7 +224,8 @@ def make_detector(info: SourceInfo, threshold: float = 2.0):
GUIDES = {
"chiaki": "Connect your PS5 with chiaki-ng (SmoovPlay sets it up), then press Play.",
"capture": "Connect the console's HDMI to the capture card and the card to this PC. On a PS5, turn off HDCP "
"while you use it (Settings > System > HDMI). Set the console to 1080p, 60 Hz, HDR off.",
"while you use it (Settings > System > HDMI). Set the console to 1080p, 60 Hz, HDR off (or the Capture card "
"resolution picked in Settings).",
"window": "Open the app you stream with (PS Remote Play, the Xbox app, Moonlight, or a browser) and start the "
"game, pick its window, then press Play. Keep the app's window on screen: SmoovPlay shows the smooth "
"picture on top of it, and the app keeps the controller and the keyboard. SmoovPlay's own keys use Ctrl+Alt "
+1 -1
View File
@@ -1945,7 +1945,7 @@ namespace SmoovPlay
{
new[] { "capture-wire", "Connect the card", "The console's HDMI output goes into the card's HDMI input, and the card into this PC: USB 3 (a blue port) or a PCIe slot. A card with an HDMI output can pass the picture on to your TV too.", null },
new[] { "capture-hdcp", "Turn off HDCP on a PS5", "On the PS5: Settings → System → HDMI → turn off Enable HDCP. With it on, the card only gets a blank picture. Turn it back on when you're done: video apps like Netflix need it. Xbox and Switch games don't need this.", null },
new[] { "capture-mode", "1080p, 60 Hz, HDR off", "Set the console's video output to 1080p at 60 Hz, with HDR off. SmoovPlay expects a 60 Hz signal, in which a 30 fps game shows each frame twice.", null },
new[] { "capture-mode", "1080p, 60 Hz, HDR off", "Set the console's video output to 1080p at 60 Hz, with HDR off. SmoovPlay expects a 60 Hz signal, in which a 30 fps game shows each frame twice. Picked a higher Capture card resolution in Settings (Experimental)? Set the console to that instead.", null },
new[] { "capture-sound", "Sound and controller", "Your controller stays connected to the console as usual. SmoovPlay plays the card's sound on this PC, held back to meet the smooth picture. If you'd rather listen through the card's HDMI output, pick no sound for the card on the Play page.", null },
new[] { "capture-play", "Press Play", "The smooth video from the card opens in its own window.", "play" },
};
+16 -5
View File
@@ -115,7 +115,7 @@ def write_results(path: str, sessions: list, size: str, settings: Settings) -> b
lines += st.results(full_motion=False) # no motion detail setting: the advice suggests a lower rate
continue
engine = "TensorRT" if cfg["engine"] == "trt" else "PyTorch"
motion = {1.0: "Full", 0.5: "Half"}.get(cfg["motion"], f"{cfg['motion']:g}x")
motion = {1.0: "Full", 0.5: "Half", 0.25: "Quarter"}.get(cfg["motion"], f"{cfg['motion']:g}x")
lines += ["", head + f"{engine}, motion detail {motion}, RIFE {cfg['model']}"]
lines += st.results(full_motion=cfg["motion"] >= 1)
try:
@@ -245,7 +245,8 @@ def main() -> int:
ap.add_argument("--capture", metavar="NAME|N|FILE",
help="a capture card by name or number (from --list-devices), or a video file standing in for "
"one (played in real time through the capture path, to test it without a card)")
ap.add_argument("--capture-size", default="1920x1080")
ap.add_argument("--capture-size", default=None, metavar="WxH",
help="the size to ask the card for (default: Capture card resolution in the settings, 1080p)")
ap.add_argument("--capture-fps", type=float, default=60.0)
ap.add_argument("--capture-format", default="auto",
help="auto (NV12, then YUY2, then MJPEG: framegen/capture.py) or one the card lists")
@@ -379,7 +380,14 @@ def main() -> int:
elif kind == "capture":
if a.capture is None:
ap.error("--source capture needs --capture N (a device) or --capture FILE")
cw, ch = map(int, a.capture_size.split("x"))
if a.capture_size:
cw, ch = map(int, a.capture_size.split("x"))
else: # Capture card resolution (the settings are loaded again below, with the command line's overrides)
from framegen.settings import CAPTURE_SIZES
saved = Settings() if a.settings.lower() == "none" else Settings.load(Path(a.settings))
cw, ch = CAPTURE_SIZES[saved.capture_size]
print(f"[capture] asking the card for {cw}x{ch}" + ("" if (cw, ch) == (1920, 1080) else
" (Capture card resolution: every new frame is drawn at this size, so it costs more than 1080p)"))
src = open_capture(a, cw, ch, test)
elif kind == "window":
if not a.window:
@@ -466,9 +474,12 @@ def main() -> int:
return {"model": "vfg", "vfg_quality": settings.vfg_quality}
if a.scale is not None:
scale = a.scale
else: # At 120 Hz three frames per 33 ms don't fit at full-resolution flow on an RTX 4070 Ti SUPER (~54 ms).
else: # Auto. On an RTX 4070 Ti SUPER (scripts/benchmark.py), per 30 fps game frame (33 ms): 120 Hz at 1080p
# needs half (full ~54 ms with display work); 1440p at 90 too (38 ms; half 26); 4K even at 60 Hz needs a
# quarter (full 52 ms, half 36, quarter 30: its motion worked out at 960x540, as half's is at 1080p).
scale = {"full": 1.0, "half": 0.5}.get(settings.motion) or (
0.5 if src.h > 1440 or settings.hz == 120 else 1.0)
0.25 if src.h > 1440 else
0.5 if settings.hz == 120 or (src.h > 1080 and settings.hz >= 90) else 1.0)
engine = auto_engine(scale) if settings.engine == "auto" else settings.engine
if dml_mode:
engine = "dml"
+11 -1
View File
@@ -172,7 +172,7 @@ def test_menu_disabled_row_and_restart_row():
m.index = _keys(m).index("fsr_sharpness")
m.key("right")
assert st.fsr_sharpness == BY_KEY["fsr_sharpness"].default # greyed out: no change
assert _keys(m) == ["scaler", "fsr_sharpness", "hdr"] # RTX VSR quality: hidden
assert _keys(m) == ["scaler", "fsr_sharpness", "hdr", "capture_size"] # RTX VSR quality: hidden
pending.append("AI engine")
assert m.rows()[-1][0] == "restart"
m.index = len(m.rows()) - 1
@@ -390,3 +390,13 @@ def test_specs_json_says_what_applies_when():
assert specs["fullscreen"]["applies"] is None
assert [k for k, s in specs.items() if s["quick"]] == ["interp", "hz", "model", "scaler"]
assert [s["group"] for s in specs.values()][:3] == ["Smoothness"] * 3
def test_capture_card_resolution_says_what_it_costs():
from framegen.settings import CAPTURE_SIZES
s = BY_KEY["capture_size"]
assert s.default == "1080p" and CAPTURE_SIZES[s.default] == (1920, 1080) and not s.live and s.experimental
assert set(CAPTURE_SIZES) == set(s.choices) and s.name("2160p") == "4K"
assert "twice" in s.hints["1440p"] and "four times" in s.hints["2160p"] and "Recommended" in s.hints["1080p"]
assert all("sluggish" in t for t in (s.hints["1440p"], s.hints["2160p"], s.help, s.impact["speed"]))
assert "gains nothing" in s.help and "Capture cards only" in s.help