This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local label = "crop_fb608e2f" | |
| local max = math.max | |
| local running = false | |
| local params = { w = 0, h = 0, x = 0, y = 0 } | |
| local binds = { l = "h", r = "l", t = "k", b = "j" } | |
| local delete_filter = function() | |
| local vf = mp.get_property_native("vf") | |
| for i, v in ipairs(vf) do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| # generation loss demonstration script | |
| # TODO: | |
| # - output the concatenated encoded format | |
| # (currently outputs pcm to avoid encoder-delay gaps) | |
| # - better progress display | |
| set -e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- add users: | |
| -- $ htpasswd -s -c /etc/nginx-rtmp/.htpasswd streamname | |
| -- stream: | |
| -- $ ffmpeg -i foo.mp4 -c copy -f flv rtmp://abc.de/streamname?auth=password | |
| local users = {} | |
| for line in io.lines("/etc/nginx-rtmp/.htpasswd") do | |
| local user, pass = line:match("([^:]+):{SHA}([^\n]+)") | |
| users[user] = pass | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env gawk | |
| function seconds(h, m, s) { | |
| return h * 3600 + m * 60 + s | |
| } | |
| BEGIN { | |
| RS = "[\r\n]" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env lua | |
| local usage = [[ | |
| dvdaspect.lua [-pw] width height | |
| returns the correct display aspect ratio of a dvd after cropping | |
| options: | |
| -p input is pal | |
| -w input is widescreen | |
| ]] |