function convertVideo(entry, src, dst, ffmpegPath, ffprobePath, ffmpegArgs, cb) {
  const intervalMs = 30*1000;
  let last = Date.now();

  const command = ffmpeg(src);
  command.setFfmpegPath(ffmpegPath);
  command.setFfprobePath(ffprobePath);
  command
    .on('error', cb)
    .on('end', cb)
    .addOptions(ffmpegArgs)
    .output(dst)
    .on('start', commandLine => log.debug({ffmpegArgs}, `Start video conversion via ffmpeg command: ${commandLine}`))
    .on('progress', progress => {
      const now = Date.now();
      if (now > last + intervalMs) {
        const optionalPercent = progress.percent ? ` is ${progress.percent?.toFixed()}%` : '';
        log.info(`Video conversion of ${entry} at ${progress.timemark}${optionalPercent} done`);
        last = now;
      }
    })
    .run();
}
@param {import('@home-gallery/types').TExtractorEntry} entry
@param {string} src
@param {string} dst
@param {string} ffmpegPath
@param {string} ffprobePath
@param {string[]} ffmpegArgs