Skip to content

Instantly share code, notes, and snippets.

View al3xtjames's full-sized avatar

Alex James al3xtjames

View GitHub Profile
# To set this up, first get tailscale working in an isolated linux shell:
# 1. sudo systemctl stop tailscaled.service
# 2. tailscaled -port 9993 -state tailscale-luks-setup.state -tun userspace-networking -socket ./tailscaled.sock
# 3. tailscale -socket ./tailscaled.sock up -hostname HOSTNAME-luks
# 4. tailscale -socket ./tailscaled.sock down
# 5. ctrl-c out of tailscaled
# 6 sudo systemctl start tailscaled.service
#
# Then add the .state file to your machine secrets and pass its path as tailscaleStatePath.
@al3xtjames
al3xtjames / aq_edge_biased.patch
Last active July 24, 2023 01:03 — forked from noizuy/aq_edge_biased.patch
x265 patch to add an AQ mode adding AQ mode 3's dark bias to AQ mode 4.
From 06661cfa70b74b49cf6fd8ffe62045d327b118dd Mon Sep 17 00:00:00 2001
From: noizuy <85082087+noizuy@users.noreply.github.com>
Date: Fri, 18 Feb 2022 17:09:39 +0000
Subject: [PATCH] add new AQ mode (#17)
add new AQ mode
This just adds AQ mode 3's dark bias to AQ mode 4. Because of normal AQ
strength values for mode 4 not really working well with the dark bias,
an additional bias-strength parameter has been added.
@al3xtjames
al3xtjames / singlepass-scenecut-aware-qp.patch
Last active July 24, 2023 00:18 — forked from quietvoid/singlepass-scenecut-aware-qp.patch
Enables x265 --scenecut-aware-qp for single pass, fixes float precision in settings string and allows offset to be set to 0
diff --git a/source/common/param.cpp b/source/common/param.cpp
index 1a4df4cdc..e1505b29e 100755
--- a/source/common/param.cpp
+++ b/source/common/param.cpp
@@ -1832,10 +1832,10 @@ int x265_check_params(x265_param* param)
"Invalid SAO tune level. Value must be between 0 and 4 (inclusive)");
if (param->bEnableSceneCutAwareQp)
{
- if (!param->rc.bStatRead)
+ if (param->bEnableSceneCutAwareQp != FORWARD && !param->rc.bStatRead)