Date: Sat, 20 May 2023 19:49:39 +0200 From: Jan Beich <jbeich@FreeBSD.org> To: Alastair Hogge <agh@riseup.net> Cc: Ivan Quitschal <tezeka@hotmail.com>, freebsd-current@freebsd.org Subject: Re: photo/video on tty console with the new VT/framebuffer Message-ID: <fs7q-riz0-wny@FreeBSD.org> In-Reply-To: <61502414be8f34256b0f93e8b20d4362@riseup.net> (Alastair Hogge's message of "Fri, 19 May 2023 11:28:08 %2B0000") References: <CP6P284MB1900C6E2A105643BC6D3151ECB7C9@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM> <61502414be8f34256b0f93e8b20d4362@riseup.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Alastair Hogge <agh@riseup.net> writes: > On 2023-05-19 11:04, Ivan Quitschal wrote: > >> Hi all >> >> i have a question. searched everywhere and found nothing about. >> >> Is it possible to visualize photos on tty console like we used to on old SYSCONS by using zgv or something? See https://github.com/mpv-player/mpv/issues/7983 >> Or watching videos with mpv/mplayer + sdl 2.0/openGL or something? > > As long as those packages support DRMKMS and does your GPU, you can to a > degree. I noticed video works for mpv and games/sdl, tho, I cannot get > input working. I tried the Doom 3 port, and watched movies with mpv all > from the vty just a couple of months ago. mpv doesn't call KDSKBMODE ioctl, so input remains under VT control but not visible due to video showing on top. One can still control mpv via stdin(4) using a keyboard but keybindings would be limited by termios(4). For example, Ctrl+S would pause playback after a few seconds instead of taking a screenshot. SDL2 probably has a bug. SDL1 uses vgl(3) instead of KDSKBMODE directly.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fs7q-riz0-wny>