diff --git a/src/createFFmpeg.js b/src/createFFmpeg.js index 0b805f4..e7b6f7f 100644 --- a/src/createFFmpeg.js +++ b/src/createFFmpeg.js @@ -58,7 +58,7 @@ module.exports = (_options = {}) => { readFrames = true; } } else if (readFrames && message.startsWith(' Stream')) { - const match = message.match(/(\d+) fps/); + const match = message.match(/([\d\.]+) fps/); if (match) { const fps = parseFloat(match[1]); frames = duration * fps;