ffmpeg helper by napi-rs binding
This binding will link against system installed ffmpeg(libavcodec libav*).
It will run cargo build when install, make sure you have rust toolchain installed.
brew install pkg-config ffmpeg nasm
apt install -y clang libavcodec-dev libavformat-dev libavutil-dev pkg-config
more see https://github.com/zmwangx/rust-ffmpeg/wiki/Notes-on-building
$ pnpm add ff-helper
see typedoc https://magicdawn.github.io/ff-helper/
export declare async funciton getVideoInfo(file: string): Promise<VideoInfo>;
export interface VideoInfo {
/** degress, 0-360, counterclockwise */
rotation: number
/** millseconds */
duration: number
width: number
height: number
}
the MIT License http://magicdawn.mit-license.org