|
|
|
|
@ -1,4 +1,6 @@
|
|
|
|
|
import { editreadyParser, ffmpegParser, handbrakeParser } from './cliParsers';
|
|
|
|
|
import {
|
|
|
|
|
editreadyParser, ffmpegParser, getHandBrakeFps, handbrakeParser,
|
|
|
|
|
} from './cliParsers';
|
|
|
|
|
import { Ilog, IupdateWorker } from './interfaces/interfaces';
|
|
|
|
|
import { IFileObject, Istreams } from './interfaces/synced/IFileObject';
|
|
|
|
|
|
|
|
|
|
@ -182,6 +184,16 @@ class CLI {
|
|
|
|
|
percentage,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const fps = getHandBrakeFps({
|
|
|
|
|
str,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (fps > 0) {
|
|
|
|
|
this.config.updateWorker({
|
|
|
|
|
fps,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} else if (this.config.cli.toLowerCase().includes('ffmpeg')) {
|
|
|
|
|
const n = str.indexOf('fps');
|
|
|
|
|
const shouldUpdate = str.length >= 6 && n >= 6;
|
|
|
|
|
|