docstr: Changes the sample (sar) & display (dar) aspect ratios of the 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: ["Changes","the","sample","(","sar",")","&","display","(","dar",")","aspect","ratios","of","the","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]:
      """
      Changes the sample (sar) & display (dar) aspect ratios of the 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
      """
      video_info = get_video_info(video_path)
  
      area = int(video_info["width"]) * int(video_info["height"])
      if isinstance(self.aspect_ratio, float):
          aspect_ratio = float(self.aspect_ratio)
      else:
          num, denom = [
              int(x) for x in str(self.aspect_ratio).split(":")
          ]
          aspect_ratio = num / denom
  
      new_w = int(math.sqrt(area * aspect_ratio))
      new_h = int(area / new_w)
  
      filters = [
          f"scale=width={new_w}:height={new_h},"
          + "pad=width=ceil(iw/2)*2:height=ceil(ih/2)*2,"
          + f"setsar=ratio={self.aspect_ratio},"
          + f"setdar=ratio={self.aspect_ratio}",
      ]
  
      return self.standard_filter_fmt(video_path, filters, output_path)
  
file_path: AugLy/augly/video/augmenters/ffmpeg/aspect_ratio.py
imports: import math
  from typing import List, Union
  from augly.video.augmenters.ffmpeg.base_augmenter import BaseVidgearFFMPEGAugmenter
  from augly.video.helpers import get_video_info
label_desc: Use image node_id 2 for calling the VideoAugmenterByAspectRatio obj's underlying member method code with example usage: obj.get_command(video_path, output_path) and returns: self