in idb/cli/commands/video.py [0:0]
def add_parser_arguments(self, parser: ArgumentParser) -> None:
parser.add_argument(
"--fps",
required=False,
default=None,
type=int,
help="The framerate of the stream. Default is a dynamic fps",
)
parser.add_argument(
"--format",
choices=list(_FORMAT_CHOICE_MAP.keys()),
help="The format of the stream",
default=VideoFormat.H264.value,
)
parser.add_argument(
"output_file",
nargs="?",
default=None,
help="h264 target file. When omitted, the stream will be written to stdout",
)
parser.add_argument(
"--compression-quality",
type=float,
default=0.2,
help="The compression quality (between 0 and 1.0) for the stream",
)
parser.add_argument(
"--scale-factor",
type=float,
default=1,
help="The scale factor for the source video (between 0 and 1.0) for the stream",
)
super().add_parser_arguments(parser)