Skip to content

Instantly share code, notes, and snippets.

@quietvoid
quietvoid / wofi-emoji.sh
Last active June 14, 2024 16:39 — forked from jdonofrio728/wofi-emoji.sh
Wofi emoji picker
#!/usr/bin/env bash
# Source: https://gist.github.com/NearHuscarl/5d366e1a3b788814bcbea62c1f66241d
#
# Use wofi to pick emoji because that's what this
# century is about apparently...
#
# Requirements:
# wofi, wlroots based compositor
#
@quietvoid
quietvoid / singlepass-scenecut-aware-qp.patch
Last active July 24, 2023 00:16
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 8695ad686..f3aaccd54 100755
--- a/source/common/param.cpp
+++ b/source/common/param.cpp
@@ -1359,9 +1359,9 @@ int x265_param_parse(x265_param* p, const char* name, const char* value)
{
if (window1 > 0)
p->fwdScenecutWindow = window1;
- if (refQpDelta1 > 0)
+ if (refQpDelta1 >= 0)
@quietvoid
quietvoid / script.py
Last active February 27, 2021 04:08
BDSup2Sup XML to timestamps
import xml.etree.ElementTree as ET
import math
tree = ET.parse('timestamps.xml')
in_format = tree.find('Description/Format')
fps = float(in_format.attrib['FrameRate'])
lines = tree.findall('Events/Event')