Install mpv and vapoursynth:
brew tap mpv-player/mpv
brew install --with-libbs2b --with-vapoursynth mpv
Save the script below (squareize.py).
Use mpv to encode the video:
| #!/bin/bash | |
| ffmpeg -i "$1" -filter:v "scale=683x384, crop=512:384:86:0, pad=512:512:0:64, scale=256x256" -pass 1 -f mpeg1video -q:v 3 -an -passlogfile log_file -y "$1.mpeg" | |
| ffmpeg -i "$1" -filter:v "scale=683x384, crop=512:384:86:0, pad=512:512:0:64, scale=256x256" -pass 2 -f mpeg1video -q:v 3 -an -passlogfile log_file -y "$1.mpeg" |
Install mpv and vapoursynth:
brew tap mpv-player/mpv
brew install --with-libbs2b --with-vapoursynth mpv
Save the script below (squareize.py).
Use mpv to encode the video:
| ### | |
| Vinylsmith: A Wintersmith plugin factory that pipes files through a | |
| series of gulp plugins. | |
| By Thai Pangsakulyanont <[email protected]> | |
| Licensed WTFPL | |
| ### | |
| fs = require 'vinyl-fs' | |
| lazypipe = require 'lazypipe' |
| arpeggio: | |
| chords: | |
| # JavaScript | |
| var: "var " | |
| let: "let " | |
| ret: "return " | |
| thr: "throw " | |
| new: "new " | |
| imp: "import " |
| do -> # Chords add-on | |
| # Uppercase letter only, must be sorted alphabetically | |
| chords = { | |
| 'AKW': '川', | |
| 'ERQ': 'require', | |
| 'IMP': 'import' | |
| 'FNU': 'function', | |
| } |
| #atom-perspective() { | |
| @viewing-distance: 12in; | |
| @rotation: 20deg; | |
| .tree-view-scroller { | |
| transform: translateY(-10vh) perspective(@viewing-distance) rotateY(@rotation); | |
| padding-top: 12vh; | |
| padding-bottom: 12vh; | |
| transform-origin: left; |
This is the original note that I have written two months of what became the song “Reminiscentia”. On that night, I had an idea of some song. After repeating it for a few times in my head, I reached for my terminal. I ran vim Idea and start putting in these notes.
You can listen to the end result at: https://soundcloud.com/o_ooooo/flicknote-reminiscentia
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Test</title> | |
| </head> | |
| <body> | |
| <h1>This counter should keep counting smoothly: <span id="counter"></span></h1> | |
| <script src="https://cdn.jsdelivr.net/bluebird/latest/bluebird.min.js"></script> | |
| <script> |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Test</title> | |
| </head> | |
| <body> | |
| <h1>This counter should keep counting smoothly: <span id="counter"></span></h1> | |
| <script src="https://cdn.jsdelivr.net/bluebird/latest/bluebird.min.js"></script> | |
| <script> |
| diff --git a/source/vendor/es6-module-loader/es6-module-loader-sans-promises.src.js b/source/vendor/es6-module-loader/es6-module-loader-sans-promises.src.js | |
| index 813ed0a..8b2d73c 100644 | |
| --- a/source/vendor/es6-module-loader/es6-module-loader-sans-promises.src.js | |
| +++ b/source/vendor/es6-module-loader/es6-module-loader-sans-promises.src.js | |
| @@ -280,7 +280,7 @@ function logloads(loads) { | |
| // 15.2.4.5.3 InstantiateSucceeded | |
| .then(function(instantiateResult) { | |
| if (load.status != 'loading') | |
| - return; | |
| + return false; |