{{ $extensions := .Get "extensions" }} {{ $src := .Get "src" }} {{/* MP4 and Webm formats are preferred. Convert to MP4: ffmpeg -i input.mkv -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac output.mp4 -hide_banner Convert to Webm: ffmpeg -i input.mkv -c:v libvpx-vp9 -crf 30 -b:v 0 -b:a 128k -c:a libopus output.webm ## Usage: Put the video files into `/static/videos` folder. Than include this file with its name and available extensions. {{< video src="/videos/" extensions="" >}} ## Example: {{< video src="/videos/example" extensions="mp4,webm" >}} */}}