npm install
brew install ffmpeg- Download the binaries at https://www.ffmpeg.org/download.html
- Extract the files to
C:\ffmpeg - Make sure
C:\ffmpeg\binis present and contains theffmpeg.exefile inside - Add to the PATH environment variables
npm run convert -- --from=avi --to=mp4 --folder=/Volumes/Disk/VideosThis will take all .avi files from /Volumes/Disk/Videos and convert them into .mp4 there'll be a new folder /Volumes/Disk/Videos/mp4 with all of the converted files.
Make sure the path is absolute and not relational. Also you must have write access to the folder.