How to use the @qawolf/config.CONFIG.display function in @qawolf/config

To help you get started, we’ve selected a few @qawolf/config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github qawolf / qawolf / packages / screen / src / ScreenCapture.ts View on Github external
// grab the X11 display
      "-f",
      "x11grab",
      // hide mouse
      "-draw_mouse",
      "0",
      // 20 fps
      "-framerate",
      "20",
      // record display size
      "-video_size",
      `${this._size.width}x${this._size.height}`,
      // input
      "-i",
      //:display+x,y offset
      `${CONFIG.display}+${this._offset.x},${this._offset.y}`,
      // overwrite output
      "-y",
      // balance high quality and good compression https://superuser.com/a/582327/856890
      "-vcodec",
      "libx264",
      "-pix_fmt",
      "yuv420p",
      "-crf",
      "19",
      "-preset",
      "slow",
      // mp4 plays well in browsers
      "-f",
      "mp4",
      this._videoPath
    ];