Date: Tue, 02 Jul 2019 20:03:55 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 238944] multimedia/mpv: support DRM console output Message-ID: <bug-238944-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238944 Bug ID: 238944 Summary: multimedia/mpv: support DRM console output Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: cpm@freebsd.org Reporter: sigsys@gmail.com Assignee: cpm@freebsd.org Flags: maintainer-feedback?(cpm@freebsd.org) Seems like FreeBSD supports the VT management API that mpv expects but with declarations in the sys/consio.h header instead of sys/vt.h. With this patch playing videos directly on the console (when DRM/KMS is supported) works on my computer. $ mpv -vo gpu --gpu-context=3Ddrm <video-file> Switching VT while it's running (even if paused) unfortunately doesn't work very well (and crashes the X server if you switch to it). Still pretty neat that it does play the video though. /usr/ports/multimedia/mpv/files/patch-drm-vt-consio: --- wscript.orig 2018-10-02 19:03:41 UTC +++ wscript @@ -273,7 +273,7 @@ iconv support use --disable-iconv.", }, { 'name': 'vt.h', 'desc': 'vt.h', - 'func': check_statement(['sys/vt.h', 'sys/ioctl.h'], + 'func': check_statement(['sys/consio.h', 'sys/ioctl.h'], 'int m; ioctl(0, VT_GETMODE, &m)'), }, { 'name': 'gbm.h', --- video/out/drm_common.c.orig 2018-10-02 19:03:41 UTC +++ video/out/drm_common.c @@ -21,7 +21,7 @@ #include <sys/ioctl.h> #include <poll.h> #include <sys/stat.h> -#include <sys/vt.h> +#include <sys/consio.h> #include <unistd.h> #include "drm_common.h" --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238944-7788>