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
import {jsx} from "slate-hyperscript"; | |
import {JSDOM} from "jsdom"; | |
const DOMParser = new JSDOM().window.DOMParser | |
const htmlToAST = (html: string) => { | |
const parsed = new DOMParser().parseFromString(html, 'text/html') | |
return deserialize(parsed.body) | |
} |
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
ffmpeg -i input.mov -vf mpdecimate,setpts=N/FRAME_RATE/TB output.mov |