docstr: Swaps the audio of a video
  
  @param video_path: the path to the video to be augmented
  
  @param output_path: the path in which the resulting video will be stored.
  
  @returns: a list of strings containing the CLI FFMPEG command for
      the augmentation
docstr_tok: ["Swaps","the","audio","of","a","video","@","param","video_path",":","the","path","to","the","video","to","be","augmented","@","param","output_path",":","the","path","in","which","the","resulting","video","will","be","stored",".","@","returns",":","a","list","of","strings","containing","the","CLI","FFMPEG","command","for","the","augmentation"]
code: def get_command(self, video_path: str, output_path: str) -> List[str]:
      """
      Swaps the audio of a video
  
      @param video_path: the path to the video to be augmented
  
      @param output_path: the path in which the resulting video will be stored.
  
      @returns: a list of strings containing the CLI FFMPEG command for
          the augmentation
      """
      audio_info = get_audio_info(self.audio_path)
      video_info = get_video_info(video_path)
  
      audio_duration = float(audio_info["duration"])
      audio_sample_rate = float(audio_info["sample_rate"])
  
      start = self.offset
      end = start + float(video_info["duration"])
  
      audio_filters = f"atrim={start}:{end}," + "asetpts=PTS-STARTPTS"
  
      if end > audio_duration:
          pad_len = (end - audio_duration) * audio_sample_rate
          audio_filters += f",apad=pad_len={pad_len}"
  
      return [
          *self.input_fmt(video_path),
          "-i",
          self.audio_path,
          "-c:v",
          "copy",
          "-af",
          audio_filters,
          "-map",
          "0:v:0",
          "-map",
          "1:a:0",
          output_path,
      ]
  
file_path: AugLy/augly/video/augmenters/ffmpeg/audio_swap.py
imports: from typing import List
  from augly.utils import pathmgr
  from augly.video.augmenters.ffmpeg.base_augmenter import BaseVidgearFFMPEGAugmenter
  from augly.video.helpers import get_audio_info, get_video_info
label_desc: Use image node_id 2 for calling the VideoAugmenterByAudioSwap obj's underlying member method code with example usage: obj.get_command(video_path, output_path) and returns: list