Skip to content

Commit

Permalink
Support fractional fps
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Aug 24, 2022
1 parent cd01b8e commit 7bf17ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createFFmpeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7bf17ea

Please sign in to comment.