generateProxyVideo static method

Future<File> generateProxyVideo(
  1. File inputVideo
)

A small (480 px short side) copy of inputVideo for fast previews, encoded with the hardware encoder when the device has one.

Implementation

static Future<File> generateProxyVideo(File inputVideo) async {
  final hardware = await hardwareEncoderAvailable();
  return MediaProbeService.generateProxyVideo(
    inputVideo,
    videoCodecArgs: hardware
        ? videoCodecArgs(
            canvas: const Size(480, 854),
            fps: 30,
            quality: ExportQuality.standard,
            preview: true,
            hardware: true,
          )
        : null,
  );
}