how to remove only green background from video using ffmeg nodejs

const ffmpeg = require('fluent-ffmpeg');
const fs = require('fs');

const inputVideoPath = 'input.mp4';
const outputVideoPath = 'output.mp4';

ffmpeg()
  .input(inputVideoPath)
  .inputFormat('mp4')
  .complexFilter([
    {
      filter: 'colorkey',
      options: ['green', '0.1', '0.1', 'enable=between(t,0,2)'],
      inputs: '0',
      outputs: 'tmp',
    },
    {
      filter: 'split',
      options: '2',
      inputs: 'tmp',
      outputs: ['tmp1', 'tmp2'],
    },
    {
      filter: 'overlay',
      options: { x: '0', y: '0', format: 'rgb' },
      inputs: ['0', 'tmp1'],
      outputs: 'output',
    },
  ])
  .on('end', function () {
    console.log('Finished processing');
  })
  .on('error', function (err) {
    console.error('Error:', err);
  })
  .save(outputVideoPath);