Support fractional fps

This commit is contained in:
Willy-JL 2022-08-25 00:37:58 +02:00
parent f5cd68c8a2
commit 1fe1b5ba61

View File

@ -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;