docstr: Stacks two videos together
  
  @param video_path: the path to the video to be augmented
  
  @param output_path: the path in which the resulting video will be stored.
      If not passed in, the original video file will be overwritten
  
  @returns: a list of strings containing the CLI FFMPEG command for
      the augmentation
docstr_tok: ["Stacks","two","videos","together","@","param","video_path",":","the","path","to","the","video","to","be","augmented","@","param","output_path",":","the","path","in","which","the","resulting","video","will","be","stored",".","If","not","passed","in",",","the","original","video","file","will","be","overwritten","@","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]:
      """
      Stacks two videos together
  
      @param video_path: the path to the video to be augmented
  
      @param output_path: the path in which the resulting video will be stored.
          If not passed in, the original video file will be overwritten
  
      @returns: a list of strings containing the CLI FFMPEG command for
          the augmentation
      """
      video_info = get_video_info(video_path)
  
      process_audio = False
      if self.use_second_audio:
          process_audio = has_audio_stream(self.second_video_path)
      else:
          process_audio = has_audio_stream(video_path)
  
      ret = [
          *self.input_fmt(video_path),
          "-i",
          self.second_video_path,
          "-filter_complex",
          f"[1:v]scale={video_info['width']}:{video_info['height']}[1v];"
          + f"[0:v][1v]{self.orientation}=inputs=2[v]",
          "-map",
          "[v]",
      ]
  
      if process_audio:
          ret += [
              "-map",
              f"{int(self.use_second_audio)}:a",
          ]
  
      ret += [
          "-vsync",
          "2",
          *self.output_fmt(output_path),
      ]
  
      return ret
  
file_path: AugLy/augly/video/augmenters/ffmpeg/stack.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_video_info, has_audio_stream
label_desc: Use image node_id 2 for calling the VideoAugmenterByStack obj's underlying member method code with example usage: obj.get_command(video_path, output_path) and returns: ret