Skip to content

Instantly share code, notes, and snippets.

@0x09
0x09 / vf_resdetect.diff
Last active August 3, 2019 01:50
resdetect filter for FFmpeg
diff --git a/configure b/configure
index 5a4f507246..6cc110d7e7 100755
--- a/configure
+++ b/configure
@@ -255,6 +255,7 @@ External library support:
--enable-libopus enable Opus de/encoding via libopus [no]
--enable-libpulse enable Pulseaudio input via libpulse [no]
--enable-librsvg enable SVG rasterization via librsvg [no]
+ --enable-libresdet enable resdetect filter [no]
--enable-librubberband enable rubberband needed for rubberband filter [no]
<html>
<script>
var db = openDatabase('watch','1.0','watch',104857600);
db.transaction(function(t) {
t.executeSql("CREATE TABLE IF NOT EXISTS events(time DATETIME, duration INTEGER, url TEXT);", []);
});
var event = null;
function eventclose(e) {
import Base.Display, Base.display
immutable iTermDisplay <: Display end
itshowim(x::Vector{UInt8}) = write(STDOUT, "\e]1337;File=inline=1:", base64encode(x), "\a")
const itmimetypes = map(MIME, ["application/pdf","application/postscript","image/tiff","image/png","image/jpeg","image/jp2","image/vnd.adobe.photoshop"])
function display(::iTermDisplay, m::Union{map(typeof, itmimetypes)...}, x)
itshowim(reprmime(m,x))
nothing
# © 0x09.net MIT license
"""
simpleplot(function, dims, domain, range [, sub]; flags = [])
Plot samples from a continuous function onto a matrix
# Arguments
* `sub::Real`: Sampling interval in pixels
* `flags::Array{Symbol}`: