From 3c60977c98e7711bbb8bbb045d1bfb7de3c46339 Mon Sep 17 00:00:00 2001 From: John Delisle Date: Mon, 22 Mar 2021 11:24:05 -0500 Subject: [PATCH] fix too many packets bug --- lib/classes/video.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/classes/video.js b/lib/classes/video.js index 5ec4fb0..5d95d3a 100644 --- a/lib/classes/video.js +++ b/lib/classes/video.js @@ -859,6 +859,9 @@ class Video { if (_self.options.preset) _self.ffmpegCommand.outputOptions('-preset', _self.options.preset); + // JMD fix ffmpeg "Too many packets buffered for output stream" https://stackoverflow.com/questions/49686244/ffmpeg-too-many-packets-buffered-for-output-stream-01 + _self.ffmpegCommand.outputOptions('-max_muxing_queue_size', 9999); + // H265 extra options if (_self.options.extraOptions) _self._addX265Option(_self.options.extraOptions);