Desktop launcher: Capture cleanup look (clarity + sharpen) for the compressed capture picture
This commit is contained in:
1 parent
ca46a28d97
commit
190da7a34b
2 files changed
+23
-1
No files matched your search
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"version": 1,
|
||||
"name": "Capture cleanup",
|
||||
"nodes": [
|
||||
{
|
||||
"type": "clarity",
|
||||
"on": true,
|
||||
"mix": 1.0,
|
||||
"amount": 0.35,
|
||||
"size": 0.3
|
||||
},
|
||||
{
|
||||
"type": "sharpen",
|
||||
"on": true,
|
||||
"mix": 1.0,
|
||||
"amount": 0.5
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -11,10 +11,13 @@ for i in 4 3 2 1; do [ -f "$LOG.$i" ] && mv -f "$LOG.$i" "$LOG.$((i + 1))"; done
|
||||
export SMOOVPLAY_TITLE="SmoovPlay (desktop)" # a KWin rule keys on this title to put the window on DP-3
|
||||
export PYTHONFAULTHANDLER=1 PYTHONUNBUFFERED=1
|
||||
export FRAMEGEN_VFX_PATH="${FRAMEGEN_VFX_PATH:-${XDG_DATA_HOME:-$HOME/.local/share}/smoovplay/vfx}"
|
||||
# Sharpening look for the card's compressed MJPEG picture (scripts/linux/looks/capture-cleanup.json); SMOOVPLAY_LOOK=off to skip
|
||||
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/smoovplay/looks"
|
||||
cp -f "$ROOT/scripts/linux/looks/capture-cleanup.json" "${XDG_CONFIG_HOME:-$HOME/.config}/smoovplay/looks/"
|
||||
cd "$ROOT"
|
||||
echo "[launcher] started $(date "+%F %T")" >"$LOG"
|
||||
"$ROOT/.venv/bin/python" "$ROOT/run.py" --capture "${SMOOVPLAY_CARD:-Live Gamer MINI}" --display --no-fullscreen \
|
||||
--hz 120 --monitor "${SMOOVPLAY_MONITOR:-DP-3}" "$@" >>"$LOG" 2>&1
|
||||
--hz 120 --look "${SMOOVPLAY_LOOK:-my:capture-cleanup}" --monitor "${SMOOVPLAY_MONITOR:-DP-3}" "$@" >>"$LOG" 2>&1
|
||||
rc=$?
|
||||
if [ "$rc" -ne 0 ] && command -v notify-send >/dev/null; then
|
||||
why="$(grep -E '^\[capture\]|Error|error' "$LOG" | tail -1)"
|
||||
|
||||
Reference in new issue
Block a user