Re: photo/video on tty console with the new VT/framebuffer
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.
Re: photo/video on tty console with the new VT/framebuffer
Btw. freebsd-questions list is better place for this kind of questions. freebsd-current is specific for CURRENT branch development related discussions :-) that was precisely my question, if it is possible to do *on current* at all. because as i pointed out, i havent found almost anyone saying it does on my searches. what i know is that it works with the linux framebuffer sdl directfb. thats it example, mpv on ports doesnt even seem to have sdl support, neither sdl from ports support to drm. thanks --tzk
Re: photo/video on tty console with the new VT/framebuffer
On Fri, 19 May 2023, Alastair Hogge wrote: On 2023-05-19 12:51, Ivan Quitschal wrote: hi Alastair Hey Ivan, could you please tell us how did you do to make mpv working ? when i try to run it, i get something like this: $ mpv --vo=drm video.mp4 (+) Video --vid=1 (*) (h264 424x240 30.000fps) (+) Audio --aid=1 (*) (aac 2ch 44100Hz) [vo/drm] No primary DRM device could be picked! [vo/drm] Failed to find a usable DRM primary node! [vo/drm] Failed to create KMS. Error opening/initializing the selected video_out (--vo) device. Video: no video Exiting... (Errors when loading file) thats what i should use correct ? --vo=drm ? What video card are you using? Have you loaded the kernel driver for it? To health and anarchy, Alastair yes i do. intel hd graphics 71 0x82f26000 19c948 i915kms.ko drm.ko is already loaded on the kernel thats the reason of my question, if bsd can do it to begin with. the zgv app that i mentioned for example. the closest thing i found for current vt newcons is /usr/ports/graphics/viu (which is not what im after of course) thanks --tzk
Re: photo/video on tty console with the new VT/framebuffer
On 2023-05-19 12:51, Ivan Quitschal wrote: > hi Alastair Hey Ivan, > could you please tell us how did you do to make mpv working ? > > when i try to run it, i get something like this: > > $ mpv --vo=drm video.mp4 > (+) Video --vid=1 (*) (h264 424x240 30.000fps) > (+) Audio --aid=1 (*) (aac 2ch 44100Hz) > [vo/drm] No primary DRM device could be picked! > [vo/drm] Failed to find a usable DRM primary node! > [vo/drm] Failed to create KMS. > Error opening/initializing the selected video_out (--vo) device. > Video: no video > > Exiting... (Errors when loading file) > > > thats what i should use correct ? --vo=drm ? What video card are you using? Have you loaded the kernel driver for it? To health and anarchy, Alastair
Re: photo/video on tty console with the new VT/framebuffer
On Fri, May 19, 2023 at 2:51 PM Ivan Quitschal wrote: > could you please tell us how did you do to make mpv working ? > > when i try to run it, i get something like this: > $ mpv --vo=drm video.mp4 > (+) Video --vid=1 (*) (h264 424x240 30.000fps) > (+) Audio --aid=1 (*) (aac 2ch 44100Hz) > [vo/drm] No primary DRM device could be picked! > [vo/drm] Failed to find a usable DRM primary node! > [vo/drm] Failed to create KMS. > Error opening/initializing the selected video_out (--vo) device. > Video: no video I have it working just with mpv file. Do you have drm kernel module installed? Btw. freebsd-questions list is better place for this kind of questions. freebsd-current is specific for CURRENT branch development related discussions :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
Re: photo/video on tty console with the new VT/framebuffer
On Fri, 19 May 2023, Alastair Hogge wrote: 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? 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. To health and anarchy, Alastair hi Alastair could you please tell us how did you do to make mpv working ? when i try to run it, i get something like this: $ mpv --vo=drm video.mp4 (+) Video --vid=1 (*) (h264 424x240 30.000fps) (+) Audio --aid=1 (*) (aac 2ch 44100Hz) [vo/drm] No primary DRM device could be picked! [vo/drm] Failed to find a usable DRM primary node! [vo/drm] Failed to create KMS. Error opening/initializing the selected video_out (--vo) device. Video: no video Exiting... (Errors when loading file) thats what i should use correct ? --vo=drm ? thanks --tzk
Re: photo/video on tty console with the new VT/framebuffer
On Fri, May 19, 2023 at 2:29 PM Yuri wrote: > Tomek CEDRO wrote: > > On Fri, May 19, 2023 at 1:44 PM Alastair Hogge wrote: > >> On 2023-05-19 11:30, Tomek CEDRO wrote: > >>> On Fri, May 19, 2023 at 1:28 PM Alastair Hogge wrote: > 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. > >>> > >>> Yeah, I have input problem too, maybe worth investigating as this is > >>> really neat feature to have gfx with no Xorg :-) > >> > >> It is worth investigating! In a long dead ago project, the input, > >> events, and displays were all integrated into the vty and mux'd from > >> there. The kernel provides evdev devices now, and there is a library, > >> tho I do not know how to get vt(4) to integrate with evdev, or if the > >> library is the way to do it? Any other ideas? > > > > Hey there Niclas :-) Do you know how to enable input devices > > (keyboard/mouse) in the console graphical applications? Is it > > possible? :-) > Wayland something? We have graphical applications (i.e. SDL) working on a DRM KMS console with no Xorg nor Wayland.. but no input.. looking for a solution :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
Re: photo/video on tty console with the new VT/framebuffer
Tomek CEDRO wrote: > On Fri, May 19, 2023 at 1:44 PM Alastair Hogge wrote: >> On 2023-05-19 11:30, Tomek CEDRO wrote: >>> On Fri, May 19, 2023 at 1:28 PM Alastair Hogge wrote: 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. >>> >>> Yeah, I have input problem too, maybe worth investigating as this is >>> really neat feature to have gfx with no Xorg :-) >> >> It is worth investigating! In a long dead ago project, the input, >> events, and displays were all integrated into the vty and mux'd from >> there. The kernel provides evdev devices now, and there is a library, >> tho I do not know how to get vt(4) to integrate with evdev, or if the >> library is the way to do it? Any other ideas? > > Hey there Niclas :-) Do you know how to enable input devices > (keyboard/mouse) in the console graphical applications? Is it > possible? :-) Wayland something?
Re: photo/video on tty console with the new VT/framebuffer
On Fri, May 19, 2023 at 1:44 PM Alastair Hogge wrote: > On 2023-05-19 11:30, Tomek CEDRO wrote: > > On Fri, May 19, 2023 at 1:28 PM Alastair Hogge wrote: > >> 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. > > > > Yeah, I have input problem too, maybe worth investigating as this is > > really neat feature to have gfx with no Xorg :-) > > It is worth investigating! In a long dead ago project, the input, > events, and displays were all integrated into the vty and mux'd from > there. The kernel provides evdev devices now, and there is a library, > tho I do not know how to get vt(4) to integrate with evdev, or if the > library is the way to do it? Any other ideas? Hey there Niclas :-) Do you know how to enable input devices (keyboard/mouse) in the console graphical applications? Is it possible? :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
Re: photo/video on tty console with the new VT/framebuffer
On 2023-05-19 11:30, Tomek CEDRO wrote: > On Fri, May 19, 2023 at 1:28 PM Alastair Hogge wrote: >> 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. > > Yeah, I have input problem too, maybe worth investigating as this is > really neat feature to have gfx with no Xorg :-) It is worth investigating! In a long dead ago project, the input, events, and displays were all integrated into the vty and mux'd from there. The kernel provides evdev devices now, and there is a library, tho I do not know how to get vt(4) to integrate with evdev, or if the library is the way to do it? Any other ideas?
Re: photo/video on tty console with the new VT/framebuffer
On Fri, May 19, 2023 at 1:28 PM Alastair Hogge wrote: > 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. Yeah, I have input problem too, maybe worth investigating as this is really neat feature to have gfx with no Xorg :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
Re: photo/video on tty console with the new VT/framebuffer
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? > > 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. To health and anarchy, Alastair
photo/video on tty console with the new VT/framebuffer
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? Or watching videos with mpv/mplayer + sdl 2.0/openGL or something? Or seeing pictures on w3m-img like unix does ? thanks all --tzk