Skip to content

Commit 7bf17ea

Browse files
committed
Support fractional fps
1 parent cd01b8e commit 7bf17ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createFFmpeg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = (_options = {}) => {
5858
readFrames = true;
5959
}
6060
} else if (readFrames && message.startsWith(' Stream')) {
61-
const match = message.match(/(\d+) fps/);
61+
const match = message.match(/([\d\.]+) fps/);
6262
if (match) {
6363
const fps = parseFloat(match[1]);
6464
frames = duration * fps;

0 commit comments

Comments
 (0)