Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
object Lib { | |
private val instance: LibInternal by lazy { | |
LibInternal() | |
} | |
fun init(buider: Builder) = instance.init(builder) | |
internal class LibInternal : Lib { | |
private var inited: Boolean |
class MyMagicClass private constructor(builder: Builder) { | |
class Builder { | |
} | |
companion object { | |
@Volatile | |
private var instance: MyMagicClass? = null |
Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
import numpy | |
from heapq import * | |
def heuristic(a, b): | |
return (b[0] - a[0]) ** 2 + (b[1] - a[1]) ** 2 | |
def astar(array, start, goal): | |
neighbors = [(0,1),(0,-1),(1,0),(-1,0),(1,1),(1,-1),(-1,1),(-1,-1)] |