How to use the fluent-ffmpeg/lib/utils.timemarkToSeconds function in fluent-ffmpeg

To help you get started, we’ve selected a few fluent-ffmpeg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cypress-io / cypress / packages / server / lib / video_capture.js View on Github external
}).on('progress', (progress) => {
        // bail if we dont have total yet
        if (!total) {
          return
        }

        debug('compression progress: %o', progress)

        const progressed = utils.timemarkToSeconds(progress.timemark)

        return onProgress(progressed / total)
      }).on('error', (err, stdout, stderr) => {
        debug('compression errored: %o', { error: err.message, stdout, stderr })
github cypress-io / cypress / packages / server / lib / video_capture.js View on Github external
getMsFromDuration (duration) {
    return utils.timemarkToSeconds(duration) * 1000
  },
github cypress-io / cypress / packages / server / lib / video_capture.js View on Github external
}).on('codecData', (data) => {
        debug('compression codec data: %o', data)

        total = utils.timemarkToSeconds(data.duration)
      }).on('stderr', (stderr) => {
        return debug('compression stderr log %o', { message: stderr })