Skip to content

Instantly share code, notes, and snippets.

View jcburns's full-sized avatar

jcburns jcburns

View GitHub Profile

encoding DV video (and others) from ffmpeg

ffmpeg -i /Users/jcburns/Movies/blurry\ motion\ thingie.mov -vf scale=720x480,setdar=4/3 -pix_fmt yuv411p -c:v dvvideo testblurry.mov

input comes first, then vf scale thing, including the dar, the display aspect ratio

you have to tell it -pix_fmt yuv411p because DV coming in as 422 (as it would in ProRes) will by default be encoded as DVCPRO50.

[dvvideo @ 0x7fd0ef026e00] Frame size: 720x480; pixel format: yuv411p, framerate: 30000/1001
#!/usr/bin/env xcrun swift
import Cocoa
import WebKit
let myapp = NSApplication.shared
let window = NSWindow(contentRect: NSMakeRect(0,0,940,800), styleMask: [.titled, .closable, .resizable, .miniaturizable], backing: .buffered, defer: true)
window.center()
window.title = "Swift webkit webview"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jcburns
jcburns / ampex vr-2000 20.jpg
Last active July 20, 2018 18:10
Modeling reality.
ampex vr-2000 20.jpg
CALL-SHEET
----------
AMPEX ADO BULLETIN #1
Ampex has a component input/output kit for the ADO without signalencoding/decoding. The
ADO component kit installs into existing ADO systemsenabling RGB or YUV (Y, R-Y, B-Y)
video inputs and to output the same signal.The kit consists of three boards; two for
signal input and a new Output Video PWA (printed wiring assembly) to replace the existing
composite output board.The kit enables composite and component input and output in any
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am jcburns on github.
  • I am jcburns (https://keybase.io/jcburns) on keybase.
  • I have a public key ASDJRQPz11rTVIbSxyDHqvImlZwXDQtOt4Cu_TTriDlMsgo

To claim this, I am signing this object:

var maxpixels = [5472, 3648];
function reduce(numerator,denominator){
var gcd = function gcd(a,b){
return b ? gcd(b, a%b) : a;
};
gcd = gcd(numerator,denominator);
return [numerator/gcd, denominator/gcd];
}
@jcburns
jcburns / index.html
Last active January 20, 2016 16:55
Rainbow Circle 720
<!DOCTYPE html>
<meta charset="utf-8">
<svg width="960" height="960"></svg>
<script src="//d3js.org/d3.v3.min.js"></script>
<script>
var π = Math.PI,
τ = 2 * π,
n = 500;