summaryrefslogtreecommitdiff
path: root/videos.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2024-07-28 09:44:00 +0200
committerpdp8 <pdp8@pdp8.info>2024-07-28 09:44:00 +0200
commitd987641d7b68fcfa8431b1835411bb1095a37961 (patch)
tree3fbc5e18a16ea0003adace63b1bdb0ea7521f1e7 /videos.rb
parentd13dc919f9fe0e14e8b58ec2e6ce727a6bbc1621 (diff)
image albums, flex layout
Diffstat (limited to 'videos.rb')
-rwxr-xr-xvideos.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/videos.rb b/videos.rb
index d4f68a7..2dd37d7 100755
--- a/videos.rb
+++ b/videos.rb
@@ -18,9 +18,7 @@ videos.each_with_index do |dir, _i|
mp4 = File.join(MEDIA_URL, 'videos', File.basename(dir), title.gsub(' ', '_') + '.mp4')
webm = File.join(MEDIA_URL, 'videos', File.basename(dir), title.gsub(' ', '_') + '.webm')
poster = File.join(MEDIA_URL, 'videos', File.basename(dir), title.gsub(' ', '_') + '.webp')
- w, h = `ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 #{webm}`.chomp.split(',')
-
- html += "<video controls preload='none' width='#{w}' height='#{h}' poster='#{poster}'>
+ html += "<video controls preload='none' poster='#{poster}'>
<source src='#{webm}' type='video/webm'>
<source src='#{mp4}' type='video/mp4'>
<a href=#{mp4}>#{mp4}</a>
@@ -29,6 +27,5 @@ videos.each_with_index do |dir, _i|
html += lines.join('<br>')
html += '</div>'
end
-html += '<p>&nbsp;&copy; pdp8 <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>'
html += File.read(File.join(SNIPPETS, 'tail.html'))
print_html 'videos', html