ffmpeg mp4 to webm

C++
ffmpeg -i "01 - file.webm" -crf 23 "file.mp4"# lower -crf value = higher quality & larger output
ffmpeg -i input.mp4 -c:v libvpx-vp9 -crf 30 -b:v 0 -b:a 128k -c:a libvorbis output.webm

Source

Also in C++: