2
0
mirror of https://github.com/ad1217/PrinterStatus synced 2024-11-24 16:33:49 -05:00

Constrain video aspect ratio on client instead of resizing on server

This commit is contained in:
Adam Goldsmith 2023-01-12 01:47:46 -05:00
parent 7e8583f8ed
commit a6a097a7f7
2 changed files with 1 additions and 3 deletions

View File

@ -36,8 +36,6 @@ function start_ffmpeg(
]) ])
.noAudio() .noAudio()
.videoCodec('libx264') .videoCodec('libx264')
.size('640x480')
.autopad()
.videoFilter('hqdn3d') .videoFilter('hqdn3d')
.videoFilters(transforms) .videoFilters(transforms)
.format('mp4') .format('mp4')

View File

@ -5,7 +5,7 @@
</h3> </h3>
<video-js <video-js
ref="video" ref="video"
class="card-img vjs-fluid" class="card-img vjs-4-3"
controls controls
autoplay autoplay
muted muted