Move to PHP to be more dry. Support WebM