.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "ncplayer" "1" "v2.2.3" "" "" .hy .SH NAME .PP ncplayer - Render images and video to a terminal .SH SYNOPSIS .PP \f[B]ncplayer\f[R]\ [\f[B]-h\f[R]]\ [\f[B]-V\f[R]] [\f[B]-q\f[R]] [\f[B]-d\f[R]\ \f[B]\f[BI]delaymult\f[B]\f[R]]\ [\f[B]-l\f[R]\ \f[B]\f[BI]loglevel\f[B]\f[R]] [\f[B]-b\f[R] \f[B]\f[BI]blitter\f[B]\f[R]] [\f[B]-s\f[R] \f[B]\f[BI]scalemode\f[B]\f[R]] [\f[B]-k\f[R]] [\f[B]-L\f[R]] [\f[B]-t\f[R] \f[B]\f[BI]seconds\f[B]\f[R]] files .SH DESCRIPTION .PP \f[B]ncplayer\f[R] uses a multimedia-enabled Notcurses to render images and videos to a terminal. By default, \f[B]stretch\f[R]-type scaling is used to fill the rendering area, and the \f[B]sex\f[R]-type blitter is used (where known to work well) for a 3x2\[->]1 mapping from pixels to cells. In a terminal that doesn\[aq]t support Unicode 13 sextants, the \f[B]quadblitter\f[R] is used instead. .SH OPTIONS .PP \f[B]-d\f[R] \f[B]\f[BI]delaymult\f[B]\f[R]: Apply a non-negative rational multiplier to the delayscale. Only applies to multiframe media such as video and animated images. Not supported with \f[B]-k\f[R]. .PP \f[B]-t\f[R] \f[B]\f[BI]seconds\f[B]\f[R]: Delay \f[B]seconds\f[R] after each file. If this option is used, the \[dq]press any key to continue\[dq] prompt will not be displayed. \f[B]seconds\f[R] may be any non-negative number. .PP \f[B]-l\f[R] \f[B]\f[BI]loglevel\f[B]\f[R]: Log everything (high log level) or nothing (log level 0) to stderr. .PP \f[B]-s\f[R] \f[B]\f[BI]scalemode\f[B]\f[R]: Scaling mode, one of \f[B]none\f[R], \f[B]hires\f[R], \f[B]scale\f[R], \f[B]scalehi\f[R], or \f[B]stretch\f[R]. .PP \f[B]-b\f[R] \f[B]\f[BI]blitter\f[B]\f[R]: Blitter, one of \f[B]ascii\f[R], \f[B]half\f[R], \f[B]quad\f[R], \f[B]sex\f[R], \f[B]braille\f[R], or \f[B]pixel\f[R]. .PP \f[B]-m margins\f[R]: Define rendering margins (see below). .PP \f[B]-L\f[R]: Loop frames until a key is pressed. Not supported with \f[B]-k\f[R]. .PP \f[B]-k\f[R]: Use direct mode (see \f[B]notcurses_direct(3)\f[R]). This will have the effect of leaving the output on-screen after program exit, and generating it inline (rather than clearing the screen and placing it at the top). Not supported with \f[B]-L\f[R] or \f[B]-d\f[R]. .PP \f[B]-q\f[R]: Print neither frame/timing information along the top of the screen, nor the output summary on exit. .PP \f[B]-V\f[R]: Print the program name and version, and exit with success. .PP \f[B]-h\f[R]: Print help information, and exit with success. .PP files: Select which files to render, and what order to render them in. .PP Default margins are all 0 and default scaling is \f[B]stretch\f[R]. The full rendering area will thus be used. Using \f[B]-m\f[R], margins can be supplied. Provide a single number to set all four margins to the same value, or four comma-delimited values for the top, right, bottom, and left margins respectively. Negative margins are illegal. .PP Scaling mode \f[B]stretch\f[R] resizes the object to match the target rendering area exactly. \f[B]scale\f[R] resizes the object so that the longer edge of the rendering area is matched exactly, and the other edge is changed to maintain aspect ratio. \f[B]none\f[R] uses the original image size. .PP Blitters can be selected by pressing \[aq]0\[aq] through \[aq]8\[aq]. \f[B]NCBLIT_DEFAULT\f[R] corresponds to \[aq]0\[aq]. The various blitters are described in \f[B]notcurses_visual\f[R]. .PP A video can be paused with space. Press space (or any other valid control) to resume. .SH NOTES .PP If you\[aq]re looking for a fast, inline image viewer for the shell, try using \f[B]ncplayer -k -t0 -q\f[R]. .PP Optimal display requires a terminal advertising the \f[B]rgb\f[R] terminfo(5) capability, or that the environment variable \f[B]COLORTERM\f[R] is defined to \f[B]24bit\f[R] (and that the terminal honors this variable), along with a fixed-width font with good coverage of the Unicode Block Drawing Characters. .SH BUGS .PP Direct mode (\f[B]-k\f[R]) does not yet support multiframe media. It\[aq]ll read them just fine, but only show the first frame. This might or might not change in the future. Direct mode is kinda fundamentally suboptimal for multiframe media. Until that time, \f[B]-k\f[R] is exclusive with \f[B]-d\f[R] and \f[B]-L\f[R]. .SH SEE ALSO .PP \f[B]notcurses(3)\f[R], \f[B]notcurses_direct(3)\f[R], \f[B]notcurses_visual(3)\f[R], \f[B]terminfo(5)\f[R], \f[B]unicode(7)\f[R] .SH AUTHORS nick black .