def METHOD_NAME(self, layout):
    videoheight_label = QtWidgets.QLabel("Video height (aspect ratio fixed)")
    self.video_height = QtWidgets.QSpinBox()
    self.video_height.setMaximum(1000)
    self.video_height.setValue(256)
    self.video_height.valueChanged.connect(self.log_video_height)
    rotate_label = QtWidgets.QLabel("Rotate video")
    self.video_rotation = QtWidgets.QComboBox()
    self.video_rotation.addItems(["no", "clockwise", "specific angle"])
    self.video_rotation.currentTextChanged.connect(self.update_video_rotation)
    trim_start_label = QtWidgets.QLabel("Trim start (sec)")
    self.video_start = QtWidgets.QSpinBox()
    self.video_start.setMaximum(3600)
    self.video_start.setValue(1)
    self.video_start.valueChanged.connect(self.log_video_start)
    trim_end_label = QtWidgets.QLabel("Trim end (sec)")
    self.video_stop = QtWidgets.QSpinBox()
    self.video_stop.setMaximum(3600)
    self.video_stop.setMinimum(1)
    self.video_stop.setValue(30)
    self.video_stop.valueChanged.connect(self.log_video_stop)
    angle_label = QtWidgets.QLabel("Rotation angle (deg)")
    self.rotation_angle = QtWidgets.QDoubleSpinBox()
    self.rotation_angle.setMaximum(360.0)
    self.rotation_angle.setMinimum(-360.0)
    self.rotation_angle.setDecimals(2)
    self.rotation_angle.setValue(0.0)
    self.rotation_angle.setEnabled(False)
    self.rotation_angle.valueChanged.connect(self.log_rotation_angle)
    downsample_title = QtWidgets.QLabel("Downsample and rotate:")
    trim_title = QtWidgets.QLabel("Shorten video (trim):")
    layout.addWidget(downsample_title, 0, 0)
    layout.addWidget(trim_title, 0, 4)
    layout.addWidget(videoheight_label, 1, 0)
    layout.addWidget(self.video_height, 1, 1)
    layout.addWidget(rotate_label, 1, 2)
    layout.addWidget(self.video_rotation, 1, 3)
    layout.addWidget(angle_label, 2, 2)
    layout.addWidget(self.rotation_angle, 2, 3)
    layout.addWidget(trim_start_label, 1, 4)
    layout.addWidget(self.video_start, 1, 5)
    layout.addWidget(trim_end_label, 2, 4)
    layout.addWidget(self.video_stop, 2, 5)
    # layout.addWidget()