VideoProbeResult constructor

const VideoProbeResult({
  1. required String codec,
  2. required int width,
  3. required int height,
  4. required int nbFrames,
  5. required double durationSeconds,
  6. double? declaredFps,
  7. bool hasAudio = false,
  8. bool hasAlpha = false,
})

Creates a result from the probed stream and container facts.

Pass declaredFps when the container declares a frame rate of its own; a probe that cannot read one leaves it null and fps derives the rate.

Implementation

const VideoProbeResult({
  required this.codec,
  required this.width,
  required this.height,
  required this.nbFrames,
  required this.durationSeconds,
  this.declaredFps,
  this.hasAudio = false,
  this.hasAlpha = false,
});