diff options
author | Jonas Smedegaard <dr@jones.dk> | 2021-02-09 15:26:51 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2021-02-09 15:26:51 +0100 |
commit | 18bbb8009da78f6a293e75a019a9cab51880eda3 (patch) | |
tree | f9916fe2ebedc10e5ece434c24bb2af75753fe3c /localvideowebencode | |
parent | 13febbb02acd3cf46d845f3b076bbac2b21b8ed4 (diff) |
extend html video tag to include codecs for Theora and VP8 (and add TODO note about AVC)
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-x | localvideowebencode | 6 |
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." |