json_video

Derive video streams from JSON definitions

Usage no npm install needed!

<script type="module">
  import jsonVideo from 'https://cdn.skypack.dev/json_video';
</script>

README

json_video

Derive video streams from JSON definitions

setup

on a new machine,

npm install -g @ffmpeg-installer/ffmpeg
npm install -g @ffprobe-installer/ffprobe

then add both's bin directories to path (sigh)

mac

Add the paths to your user's system path (generally by editing your .profile or .bashrc.)

Check the paths first. These are probably

/usr/local/lib/node_modules/@ffmpeg-installer/ffmpeg/node_modules/@ffmpeg-installer/darwin-x64/

and

/usr/local/lib/node_modules/@ffprobe-installer/ffprobe/node_modules/@ffprobe-installer/darwin-x64/

windows

Add the paths to your user's system path (by going to your environment variables - go to the search bar and type "environment", or your control panel.)

Check the paths first. These are probably

C:\Users\YourUser\AppData\Roaming\npm\node_modules\@ffmpeg-installer\ffmpeg\node_modules\@ffmpeg-installer\win32-x64

and

C:\Users\YourUser\AppData\Roaming\npm\node_modules\@ffprobe-installer\ffprobe\node_modules\@ffprobe-installer\win32-x64