From 197c2f94181d4527da9fb9f3bf002c70e6417838 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 9 Sep 2018 20:43:54 +0200 Subject: [PATCH] transfer timestamp when html5ifying also --- src/ffmpeg.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ffmpeg.js b/src/ffmpeg.js index 4eb85b88..e421df7b 100644 --- a/src/ffmpeg.js +++ b/src/ffmpeg.js @@ -96,7 +96,7 @@ async function cut({ const result = await process; console.log(result.stdout); - return util.transferTimestamps(filePath, outPath); + await util.transferTimestamps(filePath, outPath); } async function html5ify(filePath, outPath, encodeVideo) { @@ -118,6 +118,8 @@ async function html5ify(filePath, outPath, encodeVideo) { const process = execa(ffmpegPath, ffmpegArgs); const result = await process; console.log(result.stdout); + + await util.transferTimestamps(filePath, outPath); } /**