Skip to content

Instantly share code, notes, and snippets.

View Quackdoc's full-sized avatar

Mitchel Stewart Quackdoc

View GitHub Profile
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
@Quackdoc
Quackdoc / stream.sh
Created October 9, 2023 04:08 — forked from digitalsignalperson/stream.sh
xdp screen cast example, modified to pipe to ffmpeg
mkfifo /tmp/gfifo
./xdp-screen-cast-ffmpeg.py & # or run in another terminal
# Note the gstreamer pipeline
# 'pipewiresrc fd=%d path=%u ! videorate ! video/x-raw,framerate=60/1 ! videoconvert ! filesink location=/tmp/gfifo'
# I specified a 60/1 frameerate. You can do other pre-processing here, or offload it to ffmpeg.
# Encode the stream and pipe to netcat
# note: must specify correct resolution here
# we can now use h264_nvenc, mpegts, and anything else ffmpeg has
@Quackdoc
Quackdoc / motion-blur.xml
Last active September 15, 2023 21:55
olive motion blur try 1
<?xml version="1.0"?>
<olive version="230220">
<nodes version="1">
<node version="1" id="org.olivevideoeditor.Olive.shader" ptr="2641025001424">
<label>unnamed</label>
<input id="enabled_in">
<primary>
<keyframing>0</keyframing>
<standard>
<track>true</track>
@Quackdoc
Quackdoc / apple-m1-cross.meson
Created August 19, 2023 09:18
m1 cross file
[binaries]
c = '/usr/bin/clang'
cpp = '/usr/bin/clang++'
cld = '/usr/bin/ld64'
cppldd = '/usr/bin/ld64'
ar = '/usr/bin/ar'
strip = '/usr/bin/strip'
[properties]
skip_sanity_check = true
@Quackdoc
Quackdoc / mpv-auto.sh
Created August 8, 2023 00:57
MPV compare settings
#!/bin/bash
tonemapping=(
bt.2390
bt.2446a
st2094-40
st2094-10
hable
mobius
reinhard
@Quackdoc
Quackdoc / hlg-bt2446a.xml
Created June 1, 2023 08:17
olive tonemap ported from hdr-toys
<?xml version="1.0"?>
<olive version="230220">
<nodes version="1">
<node version="1" id="org.olivevideoeditor.Olive.displaytransform" ptr="1991839047088">
<input id="enabled_in">
<primary>
<keyframing>0</keyframing>
<standard>
<track>true</track>
</standard>
@Quackdoc
Quackdoc / mpv.sh
Created May 17, 2023 04:51
mpv tricks
#!/bin/bash
## take two inputs, filter one, stack filtered and second input, put unfiltered input at tope
mpv video.mp4 --lavfi-complex="[vid1] split [v1] [v3], [v3] eq=brightness=-0.1 [v3], [v3] [vid2] hstack [bot], [v1] pad=width=iw*2:x=(ow-iw)/2 [top], [top] [bot] vstack [vo]" --external-file=
@Quackdoc
Quackdoc / bloom.xml
Last active May 17, 2023 07:33
olive glsl PR
<?xml version="1.0"?>
<olive version="230220">
<nodes version="1">
<node version="1" id="org.olivevideoeditor.Olive.shader" ptr="94848584989760">
<label>bloom</label>
<input id="enabled_in">
<primary>
<keyframing>0</keyframing>
<standard>
<track>true</track>
@Quackdoc
Quackdoc / input.conf
Last active December 30, 2023 21:04
mpv testing conf
#s cycle tone-mapping
#A cycle target-trc
#a cycle target-prim
## These kinda suck to actually use without macro pad
Ctrl+! set vid 1
Ctrl+@ set vid 2
Ctrl+# set vid 3
Ctrl+$ set vid 4
F1 set vid 1
@Quackdoc
Quackdoc / olive-sharpen.xml
Created March 26, 2023 05:03
olive sharpening node group courtesy of mcDandy
<?xml version="1.0"?>
<olive version="230220">
<nodes version="1">
<node version="1" id="org.olivevideoeditor.Olive.transform" ptr="94894227963808">
<input id="tex_in"/>
<input id="enabled_in">
<primary>
<keyframing>0</keyframing>
<standard>
<track>true</track>