@extends('profilelayout') @section('novidcontent')
How 2 make a webm
#The based white man way
ffmpeg -i virgin.mp4 chad.webm #single file, very simple
#You can add this to your .bashrc
function mkwebmbatch() {
for i in *.$1;
do name=`basename "$i" .$1`
echo "$name"
ffmpeg -i "$i" -c:v libvpx -c:a libvorbis -auto-alt-ref 0 -crf 5 "$PWD/${name}.webm"
done
}
function mkwebm() {
filename=$(basename -- "$1")
extension="${filename##*.}"
filename="${filename%.*}"
name=`basename "$filename" .$extension`
echo "$name"
ffmpeg -i "$1" -c:v libvpx -c:a libvorbis -auto-alt-ref 0 -crf 5 "$HOME/Videos/converts/$name.webm"
}
function stillvid() {
#stillvid image.jpg music.mp3 $3.
ffmpeg -i "$1" -i "$2" -c:a libvorbis -auto-alt-ref 0 -c:v libvpx $3.webm
}
#Notable mentions
* https://github.com/ekisu/mpv-webm
* https://github.com/Kagami/webm.py
# If using webm.py a good line to get a high quality video would be
# (assuming you have it in your path)
webm -i virgin.mp4 -l 40 chad.webm #this will produce a vp9 webm with decent image quality