Skip to content

Instantly share code, notes, and snippets.

View jnutting's full-sized avatar

Jack Nutting jnutting

View GitHub Profile
import Foundation
final class Sample: NSObject {
@objc dynamic var name: String = ""
}
class MyObj: NSObject {
@objc dynamic var test: String = ""
}
extension NSObjectProtocol where Self: NSObject {
@westerlund
westerlund / ffmpeg_commands.md
Last active November 15, 2017 08:29
Common ffmpeg commands

common ffmpeg commands

common arguments

-y overwrite without asking
-r frame rate
-vf eq=1:0:1.1:1:1:1:1:1 change colors. contrast : brightness : saturation : gamma : gamma r : gamma g : gamma b : weight
-vf scale=width:height scale/resize. -1 will leave preserved ratio, for instance 320:-1 will resize to 320 in width and keep ratio
-ss seek to position
-t duration, trim to a certain length