Command line application ######################## This section describes using the Ytpb command line application: from an overview and usage of commands to configuring and advanced use cases. .. contents:: Contents :depth: 3 :backlinks: top :local: Overview ******** Synopsis ======== The general synopsis of ``ytpb`` commands is as follows:: ytpb [GLOBAL_OPTIONS] COMMAND [SUBCOMMAND] [OPTIONS] [ARGS]... Commands -------- .. code:: man Usage: ytpb [OPTIONS] COMMAND [ARGS]... A playback for YouTube live streams Global options: --no-config Do not load any configuration files. --config PATH Specifies a path to a configuration file. --report Dump all output to a file. It implies --debug. --debug Enable verbose output for debugging. -q, --quiet Supress all normal output. Other options: -V, --version Show the version and exit. --help Show this message and exit. Top-level commands: download Download excerpts. capture Capture a single or many frames. mpd Compose MPEG-DASH manifests. Subcommands ----------- *capture* ^^^^^^^^^ .. code:: man Usage: ytpb capture [OPTIONS] COMMAND [ARGS]... Capture a single or many frames. Options: --help Show this message and exit. Commands: frame Capture a single frame. timelapse Capture time-lapse frames. *mpd* ^^^^^ .. code:: man Usage: ytpb mpd [OPTIONS] COMMAND [ARGS]... Options: --help Show this message and exit. Commands: compose Compose an MPEG-DASH manifest. refresh Refresh a composed MPEG-DASH manifest. Getting help ============ To show a list of available options, type ``--help`` after commands or subcommands: :: $ ytpb --help $ ytpb download --help $ ytpb mpd compose --help Usage ***** Specifying rewind interval ========================== * ``--interval /`` The rewind interval can be specified with the ```-i/--interval`` option. The formatting of input interval and its parts is closely compliant with the ISO-8601 time interval formatting. The interval composes of start and end parts, separated with the "/" symbol. These parts are a pair of points in a stream (absolute or relative ones) or some special literals. The absolute points are date and times (indirect) and sequence numbers of media segments (direct). One of interval parts can be relative to another one by a time duration or date and time replacing components. Using dates ----------- *Date and time of a day* ^^^^^^^^^^^^^^^^^^^^^^^^ * ``--interval /`` where `` = "T"