From nobody Sat May 20 17:49:39 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QNrnf4gW9z4CKfZ for ; Sat, 20 May 2023 17:49:42 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QNrnf45C2z3PjZ; Sat, 20 May 2023 17:49:42 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684604982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0k0b+b1o0HvsDs7/upus4UOiH3NMKHzOmEzJqOQy574=; b=DXf82JAsPGaHVId+v8bgYqhYNIXy6tjMrbBwRk3PmvgS1xX/DFTAVDCsasINHQZc87JEM/ y80V4HuvdGHBdGbXdfx9qL+0Tt561D81rLeISv07bFiSQlGab2X1+fmZlEsklrJ4wVAamX WBVpCH1mlSVc6K6rh6K6Ar5D1K/tntsApYc6ReMWSwktMfVfGqmo/dQSlm8+4GDV/5f82h bVjurCIpLFCXA4vvwkXm5uh5QDn+rWc5Pd3awmu0G/QHTgObIEyg22bX7e8g7mX+So1Wrg hUYy4np9Fm3q6bCmpPDs/8RM6Ehg6jLZyEInqT0JluxZchcQ9bVXsf0BSmsZvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684604982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0k0b+b1o0HvsDs7/upus4UOiH3NMKHzOmEzJqOQy574=; b=Xuz2MnPpOKquahD/idpBrQGb0kkThRW5Og/44Hghf3yAl5mJsfQPjDrQZMY75Okz73/9OV 369pHiyneV8gJKv7sceqAjLQXW9YPEF2UDtuRtqvfe9g6M+YoaGnAxW/24RQeB8w8zG6BA 2ESuLufqkyuvc7sOjZhypTIuUAEu3WJ2ZQTzb4WyNRZDH2ThMTclgMG0oaYvV597yO0WmS /5scx7RurMrVDwVlkd7PSsGU/+RiiiHXWrrSugBj054KE9RRRAJ5rotekGnJwRSuLC/a9C eIaLtS5iffXoFSAHWxh0GcZSNK4sYpWq6QYM4DRkVoDKoGhkhxbCYeA20SZUeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684604982; a=rsa-sha256; cv=none; b=iieysPT4QmQZ+sYl/Wp4gctOna7wb5gvN2+V9psq2FMIGIvCTiGI69PMKFevVHBoCyvssg PopGwFoxB6gGN8a1nh92o+yBUB2oY9HduDK1caqfuUjobU2NQIGaMbfT5lBsbsMnEm2LOg OdHeY8ba5pN3wVWhFEdnCXG8LtOPSAUdVB0+krI/8QPtBnQlGy3ggj+dTzXmaeGN/JyeLC 8W2mH9X/3cBHUnXjJTOoc5RSBlIDjMqlyhk3f971pJDyT6NhvOp0rPCCYAt63FDEhbDeH2 Cye5+iVBqBxSB+/2dzI8L8iPKEOJvbdsNAUVdriNs2hJwkzqqMGwquiUQhU4Vw== Received: by freefall.freebsd.org (Postfix, from userid 1354) id 5FEC9406A; Sat, 20 May 2023 17:49:42 +0000 (UTC) From: Jan Beich To: Alastair Hogge Cc: Ivan Quitschal , freebsd-current@freebsd.org Subject: Re: photo/video on tty console with the new VT/framebuffer In-Reply-To: <61502414be8f34256b0f93e8b20d4362@riseup.net> (Alastair Hogge's message of "Fri, 19 May 2023 11:28:08 +0000") References: <61502414be8f34256b0f93e8b20d4362@riseup.net> Date: Sat, 20 May 2023 19:49:39 +0200 Message-ID: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain X-ThisMailContainsUnwantedMimeParts: N Alastair Hogge 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.