Skip to content

Instantly share code, notes, and snippets.

@ChrisK2
ChrisK2 / README.md
Created July 19, 2018 06:55 — forked from sarciszewski/README.md
Twig 2.0 without Composer

Your mileage may vary, depending on how you set up the directory structure

@ChrisK2
ChrisK2 / 00 Registering odWeb.tv ProPlayer for Certification.md
Last active January 2, 2018 09:06
Registering odWeb.tv ProPlayer for Certification

Registering odWeb.tv ProPlayer for Certification

  1. Login on https://www.odweb.tv/admin/index.htm with provided credentials 10

  2. If neccessary, change language 20

  3. Navigate to Device management

@ChrisK2
ChrisK2 / ls_hook.lua
Created November 10, 2014 18:28
Get mpv master/HEAD with lua, livestreamer in $PATH, put in ~/.config/mpv/scripts ... you know the drill.
local utils = require 'mp.utils'
local msg = require 'mp.msg'
local ls = {
path = "livestreamer",
}
mp.add_hook("on_load", 9, function ()
local function exec(args)
@ChrisK2
ChrisK2 / README.md
Last active August 29, 2015 14:07
ytdl_hook.lua

youtube-dl hook script for mpv

Now part of mpv

As of 079ecd7 (2014-11-19), the hook script is now integrated into mpv and will be avaiblable when compiled with LUA support. It is (currently) disabled by default, to enable it add --ytdl=yes to your command-line or ytdl=yes to your mpv.conf.

Open Issues

-- Manually load the plugin (no idea if this works)
-- invoke("std", "LoadPlugin", {path = "libf3kdb.dylib"})
clip = video_in
clip = invoke("std", "Trim", {clip = clip, i_first = 0, i_length = 500000})
clip = invoke("f3kdb", "Deband", {clip = clip, i_grainy = 0, i_grainc = 0, i_output_depth=16})
video_out = clip
#!/bin/bash
set -e
URL=$1
YTDL=youtube-dl
if [ -z "$MPV" ] ; then
MPV=mpv
fi
@ChrisK2
ChrisK2 / element_documentation.lua
Last active August 29, 2015 14:05
Documentation of the element table structure of the OSC
-- created by new_element()
element = {
type = "button" -- or "box" or "slider"
eventresponder = { -- eventhandlers
eventname = eventfunction,
},
visble = true, -- Should the element be visibale at all?
enabled = true, -- Should it be clickable?
softrepeat = false, -- Repeat the _down event when mouse is held down?
styledown = true, -- should the element change its style while the mouse is held down on it? for box and slider false
@ChrisK2
ChrisK2 / how to fix CR.md
Last active August 29, 2015 14:02
Guide on how to fix various errors in Crunchyroll's releases during playback with mpv.

mp.option

mpv comes with a built-in module to manage options from config-files and the command-line. All you have to do is to supply a table with default options to the read_options function. The function will overwrite the default values with values found in the config-file and the command-line (in that order).

read_options(table, identifier)

A table with key-value pairs. The type of the default values is

@ChrisK2
ChrisK2 / How to Vapoursynth + flash3kyuu_db for mpv on Mac OS X.rst
Last active July 19, 2021 09:04
Short tutorial on how to compile Vapoursynth and flash3kyuu_deband on Mac OS X and use it with mpv, might be out of date.