summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalvideowebencode6
1 files changed, 4 insertions, 2 deletions
diff --git a/localvideowebencode b/localvideowebencode
index cdaa0ab..6c5cf0c 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -856,9 +856,11 @@ __width="${_width:+ width=\"$_width\"}"
__height="${_height:+ height=\"$_height\"}"
# Flash object needs extra space for controllers
__heightplus=${_height:+ height=\"$((_height+4))\"}
-_source_ogv="<source src=\"$stem.ogv\" type=\"video/ogg\" />"
-_source_webm="<source src=\"$stem.webm\" type=\"video/webm\" />"
+_source_ogv="<source src=\"$stem.ogv\" type='video/ogg; codecs=\"theora, vorbis\"' />"
+_source_webm="<source src=\"$stem.webm\" type='video/webm; codecs=\"vp8, vorbis\"' />"
_source_webm_vp9="<source src=\"${stem}_vp9.webm\" type='video/webm; codecs=\"vp9, opus\"' />"
+# TODO: add type, with h.264 level inspected after rendering
+# <https://stackoverflow.com/questions/16363167/html5-video-tag-codecs-attribute#answer-16365526>
_source_mp4="<source src=\"$stem.mp4\" type=\"video/mp4\" />"
[ -z "$flashplayer" ] || flash=yes
[ -n "$mp4" ] || [ -z "$flash" ] || error1 "Cannot enable flash when mp4 format is disabled."