From 25535ce58485786ef7bb351ebc76243fdfc9badc Mon Sep 17 00:00:00 2001 From: Romain Date: Tue, 1 Jan 2019 11:33:07 +0100 Subject: [PATCH] Enable experimental codecs (-strict -2) for better VP9 support --- lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.js b/lib/index.js index 97f4f08..10fab69 100644 --- a/lib/index.js +++ b/lib/index.js @@ -80,6 +80,7 @@ exports.video = function (source, target, options, callback) { // output to mp4 or webm which are well read on the web if (options.format === 'webm') { args.push('-f', 'webm', '-vcodec', 'libvpx-vp9') + args.push('-f', 'webm', '-vcodec', 'libvpx-vp9', '-strict', '-2') } else { args.push('-f', 'mp4', '-vcodec', 'libx264') }