static_videos_DATA = \
src/static/videos/firewall.jpg \
src/static/videos/firewall@1920.av1.mp4 \
- src/static/videos/firewall@1920.hevc.mp4 \
+ src/static/videos/firewall@1920.h265.mp4 \
src/static/videos/firewall@1920.h264.mp4
static_videosdir = $(staticdir)/videos
-vf scale=$(patsubst src/static/videos/firewall@%.av1.mp4,%,$@):-2,fps=25 \
$@
-# HEVC
-src/static/videos/firewall@%.hevc.mp4: src/static/videos/firewall.mp4
+# H.256
+src/static/videos/firewall@%.h256.mp4: src/static/videos/firewall.mp4
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
$(FFMPEG) -y \
-i $^ \
-pix_fmt yuv420p \
-movflags +faststart \
-tag:v hvc1 \
- -vf scale=$(patsubst src/static/videos/firewall@%.hevc.mp4,%,$@):-2,fps=25 \
+ -vf scale=$(patsubst src/static/videos/firewall@%.h256.mp4,%,$@):-2,fps=25 \
$@
# H.264
{# AV1 for modern browsers that support it #}
<source src="{{ static_url("videos/firewall@1920.av1.mp4") }}" type="video/mp4; codecs=av01.0.05M.08" />
- {# HEVC/H.256 for modern browsers #}
- <source src="{{ static_url("videos/firewall@1920.hevc.mp4") }}" type="video/mp4; codecs=hvc1" />
+ {# H.265/HEVC for modern browsers #}
+ <source src="{{ static_url("videos/firewall@1920.h265.mp4") }}" type="video/mp4; codecs=hvc1" />
- {# H.254 as compatibility option for anything else #}
+ {# H.264/AVC as compatibility option for anything else #}
<source src="{{ static_url("videos/firewall@1920.h264.mp4") }}" type="video/mp4; codecs=avc1.4D401E" />
<p>