Skip to content

Instantly share code, notes, and snippets.

View Quackdoc's full-sized avatar

Mitchel Stewart Quackdoc

View GitHub Profile
@Quackdoc
Quackdoc / PKGBUILD.sh
Created January 16, 2023 03:44
Build ffmpeg audio Msys
build() {
CFLAGS+=" -DWIN32"
CXXFLAGS+=" -DWIN32"
#export PKG_CONFIG_PATH=/mingw64/lib/pkgconfig/
local -a common_config
common_config+=(
#disable block
#--disable-avdevice
@Quackdoc
Quackdoc / olive decaying sine wave
Last active March 10, 2023 23:38
olive decaying sine wave
<?xml version="1.0"?>
<olive>
<version>220403</version>
<nodes>
<uuid>{a9b04422-5a40-4e42-a77b-569e1c46117f}</uuid>
<nodes>
<node id="org.olivevideoeditor.Olive.math">
<ptr>2443321308480</ptr>
<label></label>
<color>-1</color>
@Quackdoc
Quackdoc / phone.glsl
Created March 16, 2023 20:33
shader for phone
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
uniform vec2 resolution;
uniform float time;
uniform vec4 mouse;
uniform vec4 date;
@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>
@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 / 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 / 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 / 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-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 / 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