@inj how could we continue ?
vdr-plugin-mpv
-
-
ich dachte auch das die Aufgabe vom vdr-mpv-plugin darin liegt den VDR zu stoppen und die die Videodatei mit den Einstellungen an den
MPV Mediaplayer zu Übergeben. Der MPV Mediaplayer sollte dann auch die Video- und Tonausgabe übernehmen.
Erst nach Beendigung vom vdr-mpv-plugin wird der VDR doch wieder gestartet.
Wenn das mpv Plugin den vdr beendet wo spielt denn dann das softhddrm Plugin hier ein Rolle ? Im Prinzip müsse auch ein detach ausreichen um das softhddrm zu beenden. Dann sollte das drm device frei sein.
-
Wenn das mpv Plugin den vdr beendet wo spielt denn dann das softhddrm Plugin hier ein Rolle ? Im Prinzip müsse auch ein detach ausreichen um das softhddrm zu beenden. Dann sollte das drm device frei sein.
richtig es erfolgt auch ein detach -- deshalb verstehe ich das leider auch nicht. Nur das VDR-MPV-Plugin schafft leider keine saubere "Hardware" unterstützte DRM-Übergabe an das MPV unter Ubuntu. War aber schon immer so
-
Nur das VDR-MPV-Plugin schafft leider keine saubere "Hardware" unterstützte DRM-Übergabe an das MPV unter Ubuntu. War aber schon immer so
Ja das detach schliesst das drm device und dropt den master. Bei meinen damaligen Tests hatte ich aber den Eindruck das das nicht reicht und erst nach dem beenden des vdr tatsächlich das drm device wieder frei ist. Evtl. sollte man mal wirklich den VDR beenden und/oder den mpv mit einem at Kommando starten damit er wirklich frei läuft. Hintergrund ist: wenn ich das drm device schliesse bin ich evtl. immer noch authentifiziert und das mag ja die Probleme machen und der softhddrm Threat wird beim detach ja nicht beendet (soweit ich weiss).
-
Hier steh ich nun ich armer ....
1 jojo61 Bei mir wird mpv über die FBD so gestartet: keymacros.conf: User1 @mpv
Dabei starten .mkv (per Softwaredekoder) mit AC-3 problemlos aber z.B. E-AC-3 crasht den vdr
>> kann das überhaupt mit softhddrm zusammen hängen (weil nicht DETACH...)
2 cinfo wo passiert denn das detach (nur per Aufruf übers Menü oder auch bei meinem obigen Aufruf per FBD ?
3 Wird eig. der Dateimanager zur Filmauswahl von mpv aufgerufen ?
(Wenn JA wie geht das wenn der vdr zu dem Zeitpunkt aber gestoppt wurde ?)4 Wie würdest du mpv starten ... ev. per Script
service vdr stop
svdrpsend plug softhddrm DETA
svdrpsend plug softhddrm DETA
mpvkillall -9 mpv
svdrpsend plug softhddrm ATTA
service vdr restart
-
Dabei starten .mkv (per Softwaredekoder) mit AC-3 problemlos aber z.B. E-AC-3 crasht den vdr
Läuft der mpv denn wenn du das E-AC3 File auf der Konsole mit mpv startest ? Sowas wie: $mpv video.mkv
-
AC3 OK, aber da steht unten kein HW Decoding weil er drm nicht kennt
Code
Alles anzeigen[cplayer] Command line options: '--v' '--drm-connector=DP-3' '--vo=gpu' '--hwdec=drm' '--audio-device=alsa/hdmi:CARD=PCH,DEV=0' '--gpu-context=drm' 'ac3.mkv' [cplayer] mpv 0.35.0-64-g4a2aa36674 Copyright © 2000-2022 mpv/MPlayer/mplayer2 projects [cplayer] built on Wed Dec 28 17:12:40 CET 2022 [cplayer] libplacebo version: v4.208.0-42-gddc4181 [cplayer] FFmpeg version: 5.1.2-1ubuntu2 [cplayer] FFmpeg library versions: [cplayer] libavutil 57.28.100 [cplayer] libavcodec 59.37.100 [cplayer] libavformat 59.27.100 [cplayer] libswscale 6.7.100 [cplayer] libavfilter 8.44.100 [cplayer] libswresample 4.7.100 [cplayer] [cplayer] Configuration: ./waf configure [cplayer] List of enabled features: alsa asm av-channel-layout build-date caca cplayer cplugins cuda-hwaccel cuda-interop debug-build dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms egl egl-drm egl-helpers ffmpeg ffnvcodec gbm gbm.h gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo libplacebo-next librt linux-fstatfs linux-input-event-codes lua lua51 memfd_create optimize posix posix-or-mingw posix-shm pthreads pulse rubberband shaderc shaderc-shared sixel stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vector vt.h vulkan wayland wayland-protocols wayland-protocols-1-24 zimg zlib [cplayer] Reading config file /usr/local/etc/mpv/encoding-profiles.conf [cplayer] Applying profile 'default'... [cplayer] Reading config file /root/.config/mpv/encoding-profiles.conf [cplayer] Applying profile 'default'... [cplayer] Reading config file /root/.config/mpv/mpv.conf [cplayer] Applying profile 'default'... [cplayer] Setting option 'hwdec' = 'drmi' (flags = 4) [cplayer] Setting option 'gpu-context' = 'drm' (flags = 4) [cplayer] Setting option 'vo' = 'drm' (flags = 4) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'drm-connector' = 'DP-3' (flags = 8) [cplayer] Setting option 'vo' = 'gpu' (flags = 8) [cplayer] Setting option 'hwdec' = 'drm' (flags = 8) [cplayer] Setting option 'audio-device' = 'alsa/hdmi:CARD=PCH,DEV=0' (flags = 8) [cplayer] Setting option 'gpu-context' = 'drm' (flags = 8) [cplayer] Waiting for scripts... [osd/libass] libass API version: 0x1502000 [osd/libass] libass source: tarball: 0.15.2 [osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider fontconfig [osd/libass] Done. [cplayer] Set property: shared-script-properties -> 1 [cplayer] Set property: shared-script-properties -> 1 [cplayer] Done loading scripts. [cplayer] Running hook: ytdl_hook/on_load [ytdl_hook] ytdl:// hook [ytdl_hook] not a ytdl:// url [cplayer] Set property: shared-script-properties -> 1 [bdmv/bluray] Opening a.mkv [file] Opening a.mkv [demux] Trying demuxers for level=normal. [mkv] Seeking to 453209305 to read header element 0x1c53bb6b. [file] stream level seek from 131072 to 453209305 [mkv] Parsing cues... [cplayer] Set property: shared-script-properties -> 1 [mkv] Seeking to 453224015 to read header element 0x1254c367. [file] stream level seek from 453224844 to 5555 [mkv] All headers are parsed! [osd/libass] libass API version: 0x1502000 [osd/libass] libass source: tarball: 0.15.2 [osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [osd/libass] Setting up fonts... [mkv] Start PTS: 0.160000 [demux] Detected file format: Matroska [cplayer] Opening done: a.mkv [osd/libass] Using font provider fontconfig [osd/libass] Done. [find_files] Loading external files in . [cplayer] Running hook: ytdl_hook/on_preloaded [mkv] select track 0 [mkv] select track 1 [cplayer] (+) Video --vid=1 (*) (h264 1280x720 25.000fps) [cplayer] (+) Audio --aid=1 --alang=ger (*) (ac3 6ch 48000Hz) [vo/gpu/opengl] Initializing GPU context 'drm' [vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device [vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable. [vo/gpu/opengl] Initializing KMS [vo/gpu/opengl] Picked DRM card 0, primary node /dev/dri/card0 as the default. [vo/gpu/opengl] Driver: i915 1.6.0 (20201103) [vo/gpu/opengl/kms] Connector 336 currently connected to encoder 335 [vo/gpu/opengl/kms] Selected Encoder 335 with CRTC 98 [vo/gpu/opengl/kms] Selected mode: 1920x1080 (1920x1080@60.00Hz) [vo/gpu/opengl] DRM Atomic support found [vo/gpu/opengl/kms] Using primary plane 31 as draw plane [vo/gpu/opengl/kms] Using overlay plane 40 as drmprime plane [vo/gpu] GBM_FORMAT_ARGB8888 supported by draw plane. [vo/gpu] Supported modifier: 0x100000000000006 [vo/gpu] Supported modifier: 0x100000000000008 [vo/gpu] Supported modifier: 0x100000000000002 [vo/gpu] Supported modifier: 0x100000000000001 [vo/gpu] Supported modifier: 0x0 [vo/gpu] Creating GBM device [vo/gpu] Initializing GBM surface (1920 x 1080) [vo/gpu/opengl] Initializing EGL [vo/gpu/opengl] EGL_VERSION=1.5 [vo/gpu/opengl] EGL_VENDOR=Mesa Project [vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES [vo/gpu/opengl] Trying to create Desktop OpenGL context. [vo/gpu/opengl] Attempting to find EGLConfig matching GBM_FORMAT_ARGB8888 [vo/gpu/opengl] Found matching EGLConfig for GBM_FORMAT_ARGB8888 [vo/gpu/opengl] Initializing EGL surface [vo/gpu] GL_VERSION='4.6 (Core Profile) Mesa 23.0.0-devel (git-c52b7aa 2022-12-22 jammy-oibaf-ppa)' [vo/gpu] Detected desktop OpenGL 4.6. [vo/gpu] GL_VENDOR='Intel' [vo/gpu] GL_RENDERER='Mesa Intel(R) UHD Graphics (TGL GT2)' [vo/gpu] GL_SHADING_LANGUAGE_VERSION='4.60' [vo/gpu] Loaded extension GL_KHR_debug. [vo/gpu/opengl] Preparing framebuffer [vo/gpu/opengl] GBM surface using modifier 0x100000000000008 [vo/gpu] crtc is not VRR capable [vo/gpu/opengl] Opening render node "/dev/dri/renderD128" [vo/gpu] Monitor pixel aspect: 1 [vo/gpu] Testing FBO format rgba16f [vo/gpu] Using FBO format rgba16f. [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu] Assuming 60.000000 FPS for display sync. [vd] Container reported FPS: 25.000000 [vd] Codec list: [vd] h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [vd] h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper [vd] h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration) [vd] h264_cuvid (h264) - Nvidia CUVID H264 decoder [vd] Opening decoder h264 [vd] Unsupported hwdec: drm [vd] No hardware decoding available for this codec. [vd] Using software decoding. [vd] Detected 4 logical cores. [vd] Requesting 5 threads for decoding. [vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) [vf] User filter list: [vf] (empty) [ad] Codec list: [ad] ac3 - ATSC A/52A (AC-3) [ad] ac3_fixed (ac3) - ATSC A/52A (AC-3) [ad] Opening decoder ac3 [ad] Requesting 1 threads for decoding. [ad] Selected codec: ac3 (ATSC A/52A (AC-3)) [af] User filter list: [af] (empty) [cplayer] Starting playback... [vd] Using software decoding. [vd] Decoder format: 1280x720 yuv420p auto/auto/auto/auto/auto CL=mpeg2/4/h264 [vd] Using container aspect ratio. [vf] [in] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] (disabled) [vf] [autorotate] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [autorotate] (disabled) [vf] [convert] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [convert] (disabled) [vf] [out] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [af] [in] 48000Hz 5.1(side) 6ch floatp [af] [userspeed] 48000Hz 5.1(side) 6ch floatp [af] [userspeed] (disabled) [af] [convert] 48000Hz 5.1(side) 6ch floatp [ao] Trying audio driver 'alsa' [ao] Using preferred device 'hdmi:CARD=PCH,DEV=0' [ao/alsa] requested format: 48000 Hz, 5.1(side) channels, floatp [ao/alsa] using ALSA version: 1.2.6.1 [ao/alsa] opening device 'hdmi:CARD=PCH,DEV=0' [ao/alsa] trying format float/14 [ao/alsa] trying format double/16 [ao/alsa] trying format s32/10 [ao/alsa] Channel layouts: [ao/alsa] - stereo [ao/alsa] result: stereo [ao/alsa] channel map reported by ALSA: FL FR [ao/alsa] which we understand as: stereo [ao/alsa] which is what we requested. [ao/alsa] hw pausing supported: yes [ao/alsa] buffersize: 4800 samples [ao/alsa] period size: 1200 samples [ao/alsa] device buffer: 4800 samples. [ao/alsa] using soft-buffer of 9600 samples. [cplayer] AO: [alsa] 48000Hz stereo 2ch s32 [cplayer] AO: Description: ALSA audio output [autoconvert] inserting resampler [swresample] format change, reinitializing resampler [swresample] 48000Hz 5.1(side) floatp -> 48000Hz stereo s32 [swresample] Remix: 5.1(side) -> stereo [af] [out] 48000Hz stereo 2ch s32 [cplayer] VO: [gpu] 1280x720 yuv420p [cplayer] VO: Description: Shader-based GPU Renderer [vo/gpu] reconfig to 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vo/gpu] Resize: 1920x1080 [vo/gpu] Window size: 1920x1080 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 1280x720 (1:1) [vo/gpu] Video display: (0, 0) 1280x720 -> (0, 0) 1920x1080 [vo/gpu] Video scale: 1.500000/1.500000 [vo/gpu] OSD borders: l=0 t=0 r=0 b=0 [vo/gpu] Video borders: l=0 t=0 r=0 b=0 [vo/gpu] Reported display depth: 8 [vo/gpu] Texture for plane 0: 1280x720 [vo/gpu] Texture for plane 1: 640x360 [vo/gpu] Texture for plane 2: 640x360 [vo/gpu] Testing FBO format rgba16f [vo/gpu] Using FBO format rgba16f. [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu] DR enabled: yes [cplayer] first video frame after restart shown [cplayer] audio ready [cplayer] starting audio playback [ao/alsa] starting AO [cplayer] playback restart complete @ 0.000000, audio=playing, video=playing
-
Code
Alles anzeigen[cp] Command line options: '--v' '--drm-connector=DP-3' '--vo=gpu' '--hwdec=auto' '--audio-device=alsa/hdmi:CARD=PCH,DEV=0' '--gpu-context=drm' 'eac3.mkv' [cp] mpv 0.35.0-64-g4a2aa36674 [cp] built on Wed Dec 28 17:12:40 CET 2022 [cp] libplacebo version: v4.208.0-42-gddc4181 [cp] FFmpeg version: 5.1.2-1ubuntu2 [cp] FFmpeg library versions: [cp] libavutil 57.28.100 [cp] libavcodec 59.37.100 [cp] libavformat 59.27.100 [cp] libswscale 6.7.100 [cp] libavfilter 8.44.100 [cp] libswresample 4.7.100 [cp] Configuration: ./waf configure [cp] List of enabled features: alsa asm av-channel-layout build-date caca cplayer cplugins cuda-hwaccel cuda-interop debug-build dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms egl egl-drm egl-helpers ffmpeg ffnvcodec gbm gbm.h gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo libplacebo-next librt linux-fstatfs linux-input-event-codes lua lua51 memfd_create optimize posix posix-or-mingw posix-shm pthreads pulse rubberband shaderc shaderc-shared sixel stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vector vt.h vulkan wayland wayland-protocols wayland-protocols-1-24 zimg zlib [cp] Reading config file /usr/local/etc/mpv/encoding-profiles.conf [cp] Applying profile 'default'... [cp] Reading config file /root/.config/mpv/encoding-profiles.conf [cp] Applying profile 'default'... [cp] Reading config file /root/.config/mpv/mpv.conf [cp] Applying profile 'default'... [cp] opt 'hwdec' = 'drmi' (flags = 4) [cp] opt 'gpu-context' = 'drm' (flags = 4) [cp] opt 'vo' = 'drm' (flags = 4) [cp] opt 'v' = '' (flags = 8) [cp] opt 'drm-connector' = 'DP-3' (flags = 8) [cp] opt 'vo' = 'gpu' (flags = 8) [cp] opt 'hwdec' = 'auto' (flags = 8) [cp] opt 'audio-device' = 'alsa/hdmi:CARD=PCH,DEV=0' (flags = 8) [cp] opt 'gpu-context' = 'drm' (flags = 8) [cp] Waiting for scripts... [osd/libass] libass API version: 0x1502000 [osd/libass] libass source: tarball: 0.15.2 [osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider fontconfig [osd/libass] Done. [cp] Set property: shared-script-properties -> 1 [cp] Set property: shared-script-properties -> 1 [cp] Done loading scripts. [cp] Running hook: ytdl_hook/on_load [ytdl_hook] ytdl:// hook [cp] Set property: shared-script-properties -> 1 [ytdl_hook] not a ytdl:// url [bdmv/bluray] Opening eac3.mkv [file] Opening eac3.mkv [demux] Trying demuxers for level=normal. [mkv] Deferring reading cues. [mkv] All headers are parsed! [cp] Set property: shared-script-properties -> 1 [demux] Detected file format: Matroska [cp] Opening done: eac3.mkv [find_files] Loading external files in . [osd/libass] libass API version: 0x1502000 [osd/libass] libass source: tarball: 0.15.2 [osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider fontconfig [osd/libass] Done. [cp] Running hook: ytdl_hook/on_preloaded [mkv] select track 0 [mkv] select track 1 [cp] (+) Video --vid=1 (*) (h264 1280x720 25.000fps) [cp] (+) Audio --aid=1 --alang=ger (*) (ac3 2ch 48000Hz) [cp] Audio --aid=2 --alang=eng (ac3 6ch 48000Hz) [vo/gpu/opengl] Initializing GPU context 'drm' [vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device [vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable. [vo/gpu/opengl] Initializing KMS [vo/gpu/opengl] Picked DRM card 0, primary node /dev/dri/card0 as the default. [vo/gpu/opengl] Driver: i915 1.6.0 (20201103) [vo/gpu/opengl/kms] Connector 336 currently connected to encoder 335 [vo/gpu/opengl/kms] Selected Encoder 335 with CRTC 98 [vo/gpu/opengl/kms] Selected mode: 1920x1080 (1920x1080@60.00Hz) [vo/gpu/opengl] DRM Atomic support found [vo/gpu/opengl/kms] Using primary plane 31 as draw plane [vo/gpu/opengl/kms] Using overlay plane 40 as drmprime plane [vo/gpu] GBM_FORMAT_ARGB8888 supported by draw plane. [vo/gpu]modif: 0x100000000000006 [vo/gpu]modif: 0x100000000000008 [vo/gpu]modif: 0x100000000000002 [vo/gpu]modif: 0x100000000000001 [vo/gpu]modif: 0x0 [vo/gpu] Creating GBM device [vo/gpu] Initializing GBM surface (1920 x 1080) [vo/gpu/opengl] Initializing EGL [vo/gpu/opengl] EGL_VERSION=1.5 [vo/gpu/opengl] EGL_VENDOR=Mesa Project [vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES [vo/gpu/opengl] Trying to create Desktop OpenGL context. [vo/gpu/opengl] Attempting to find EGLConfig matching GBM_FORMAT_ARGB8888 [vo/gpu/opengl] Found matching EGLConfig for GBM_FORMAT_ARGB8888 [vo/gpu/opengl] Initializing EGL surface [vo/gpu] GL_VERSION='4.6 (Core Profile) Mesa 23.0.0-devel (git-c52b7aa 2022-12-22 jammy-oibaf-ppa)' [vo/gpu] Detected desktop OpenGL 4.6. [vo/gpu] GL_VENDOR='Intel' [vo/gpu] GL_RENDERER='Mesa Intel(R) UHD Graphics (TGL GT2)' [vo/gpu] GL_SHADING_LANGUAGE_VERSION='4.60' [vo/gpu] Loaded extension GL_KHR_debug. [vo/gpu/opengl] Preparing framebuffer [vo/gpu/opengl] GBM surface using modifier 0x100000000000008 [vo/gpu] crtc is not VRR capable [vo/gpu/opengl] Opening render node "/dev/dri/renderD128" [vo/gpu] Monitor pixel aspect: 1 [vo/gpu] Testing FBO format rgba16f [vo/gpu] Using FBO format rgba16f. [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu] Assuming 60.000000 FPS for display sync. [vd] Container reported FPS: 25.000000 [vd] Codec list: [vd] h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [vd] h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper [vd] h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration) [vd] h264_cuvid (h264) - Nvidia CUVID H264 decoder [vd] Opening decoder h264 [vd] Looking at hwdec h264-nvdec... [vo/gpu] Loading hwdec drivers for format: 'cuda' [vo/gpu] Loading hwdec driver 'cuda' [vo/gpu/cuda] cu->cuInit(0) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected [vo/gpu] Loading failed. [vd] Could not create device. [vd] Looking at hwdec h264-vaapi... [vo/gpu] Loading hwdec drivers for format: 'vaapi' [vo/gpu] Loading hwdec driver 'vaapi' [vo/gpu/vaapi] using EGL dmabuf interop [vo/gpu/vaapi] Trying to open a wayland VA display... [vo/gpu/vaapi] Trying to open a drm VA display... [vo/gpu/vaapi/vaapi] Initialized VAAPI: version 1.17 [vo/gpu/vaapi] Going to probe surface formats (may log bogus errors)... [vo/gpu/vaapi] Done probing surface formats. [vd] Trying hardware decoding via h264-vaapi. [vd] Pixel formats supported by decoder: vdpau cuda vaapi yuv420p [vd] Codec profile: High (0x64) [vd] Requesting pixfmt 'vaapi' from decoder. [vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) [vf] User filter list: [vf] (empty) [ad] Codec list: [ad] ac3 - ATSC A/52A (AC-3) [ad] ac3_fixed (ac3) - ATSC A/52A (AC-3) [ad] Opening decoder ac3 [ad] Requesting 1 threads for decoding. [ad] Selected codec: ac3 (ATSC A/52A (AC-3)) [af] User filter list: [af] (empty) [cp] Starting playback... [vd] Pixel formats supported by decoder: vdpau cuda vaapi yuv420p [vd] Codec profile: High (0x64) [vd] Requesting pixfmt 'vaapi' from decoder. [vd] Using hardware decoding (vaapi). [vd] Decoder format: 1280x720 vaapi[nv12] bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264 [vd] Using container aspect ratio. [vf] [in] 1280x720 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] 1280x720 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] (disabled) [vf] [autorotate] 1280x720 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [autorotate] (disabled) [vf] [convert] 1280x720 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [convert] (disabled) [vf] [out] 1280x720 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [af] [in] 48000Hz stereo 2ch floatp [af] [userspeed] 48000Hz stereo 2ch floatp [af] [userspeed] (disabled) [af] [convert] 48000Hz stereo 2ch floatp [ao] Trying audio driver 'alsa' [ao] Using preferred device 'hdmi:CARD=PCH,DEV=0' [ao/alsa] requested format: 48000 Hz, stereo channels, floatp [ao/alsa] using ALSA version: 1.2.6.1 [ao/alsa] opening device 'hdmi:CARD=PCH,DEV=0' [ao/alsa] trying format float/14 [ao/alsa] trying format double/16 [ao/alsa] trying format s32/10 [ao/alsa] channel map reported by ALSA: FL FR [ao/alsa] which we understand as: stereo [ao/alsa] which is what we requested. [ao/alsa] hw pausing supported: yes [ao/alsa] buffersize: 4800 samples [ao/alsa] period size: 1200 samples [ao/alsa] device buffer: 4800 samples. [ao/alsa] using soft-buffer of 9600 samples. [cp] AO: [alsa] 48000Hz stereo 2ch s32 [cp] AO: Description: ALSA audio output [autoconvert] inserting resampler [swresample] format change, reinitializing resampler [swresample] 48000Hz stereo floatp -> 48000Hz stereo s32 [af] [out] 48000Hz stereo 2ch s32 [cp] VO: [gpu] 1280x720 vaapi[nv12] [cp] VO: Description: Shader-based GPU Renderer [vo/gpu] reconfig to 1280x720 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vo/gpu] Resize: 1920x1080 [vo/gpu] Window size: 1920x1080 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 1280x720 (1:1) [vo/gpu] Video display: (0, 0) 1280x720 -> (0, 0) 1920x1080 [vo/gpu] Video scale: 1.500000/1.500000 [vo/gpu] OSD borders: l=0 t=0 r=0 b=0 [vo/gpu] Video borders: l=0 t=0 r=0 b=0 [vo/gpu] Reported display depth: 8 [vo/gpu] Testing FBO format rgba16f [vo/gpu] Using FBO format rgba16f. [vo/gpu] No advanced processing required. Enabling dumb mode.
Auch EAC3 OK. @inj funktioniert hier HWdecode ?
Das sind die Fehler Zeilen:[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
-
Look at cpu loading, should work.
-
@Inj it looked good.
Just wanted your check from the above output
Code
Alles anzeigen.... [cp] Applying profile 'default'... [cp] opt 'hwdec' = 'drmi' (flags = 4) [cp] opt 'gpu-context' = 'drm' (flags = 4) [cp] opt 'vo' = 'drm' (flags = 4) [cp] opt 'v' = '' (flags = 8) [cp] opt 'drm-connector' = 'DP-3' (flags = 8) [cp] opt 'vo' = 'gpu' (flags = 8) [cp] opt 'hwdec' = 'auto' (flags = 8) [cp] opt 'audio-device' = 'alsa/hdmi:CARD=PCH,DEV=0' (flags = 8) [cp] opt 'gpu-context' = 'drm' (flags = 8)
Params are listed twice here. This is irritating for me
Can you please repeat. What are the correct parameters for
1 commandline
2 mpv.conf
-
Dear all,
I have switched from using nvidia card with cuvid to vaapi with DRM output in mpv plugin.
Code-P'mpv -v gpu -h vaapi-copy -c drm -a alsa/hdmi:CARD=PCH,DEV=0 -b /data/mpv_root -m Videoplayer'
Playing the video works really fine with hardware decoding. But when I open the OSD while playing a video file VDR crashes. Happens with any VDR skin.
Log
Code
Alles anzeigen2023-03-22T10:27:48.314226+01:00 hdvdr2 vdr: [5396] [softhddev]OpenGL Worker Thread stopped 2023-03-22T10:27:48.314337+01:00 hdvdr2 vdr: [5396] [mpv] SwitchOsdToMpv 2023-03-22T10:27:48.314433+01:00 hdvdr2 vdr: [5396] [softhddev]stopping OpenGL Worker Thread 2023-03-22T10:27:48.314513+01:00 hdvdr2 vdr: [5396] [softhddev]OpenGL Worker Thread stopped 2023-03-22T10:27:48.314593+01:00 hdvdr2 vdr: [5396] get locale de_DE.UTF-8 2023-03-22T10:27:48.348044+01:00 hdvdr2 kernel: [ 152.574073][T13822] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "HDMI-A-1" 2023-03-22T10:27:48.348068+01:00 hdvdr2 kernel: [ 152.575169][T13822] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "HDMI-A-1" 2023-03-22T10:27:48.416034+01:00 hdvdr2 kernel: [ 152.644210][T13822] snd_hda_codec_hdmi hdaudioC0D2: HDMI: audio coding xtype 11 not expected 2023-03-22T10:27:48.435944+01:00 hdvdr2 vdr: [5396] [mpv] playing /data/mpv_root/hdvideo/4K/Escape.m2ts 2023-03-22T10:27:48.437302+01:00 hdvdr2 vdr: [13826] [mpv]: Can't open TTY for VT control: Kein passendes Gerät bzw. keine passende Adresse gefunden#012 2023-03-22T10:27:48.437534+01:00 hdvdr2 vdr: [13826] [mpv]: Failed to set up VT switcher. Terminal switching will be unavailable.#012 2023-03-22T10:27:48.464971+01:00 hdvdr2 vdr: [13826] [mpv]: event: 6 start-file 2023-03-22T10:27:48.465542+01:00 hdvdr2 vdr: [13826] [mpv]: property filename 2023-03-22T10:27:48.465875+01:00 hdvdr2 vdr: [13826] [mpv]: property pause 2023-03-22T10:27:48.466029+01:00 hdvdr2 vdr: [13826] [mpv]: property speed 2023-03-22T10:27:48.466119+01:00 hdvdr2 vdr: [13826] [mpv]: property media-title 2023-03-22T10:27:48.466182+01:00 hdvdr2 vdr: [13826] [mpv]: property playlist-pos-1 2023-03-22T10:27:48.466241+01:00 hdvdr2 vdr: [13826] [mpv]: property playlist-count 2023-03-22T10:27:48.466318+01:00 hdvdr2 vdr: [13826] [mpv]: property track-list 2023-03-22T10:27:48.535844+01:00 hdvdr2 vdr: [13826] [mpv]: mpegts: stream 0 : no PTS found at end of file, duration not set#012 2023-03-22T10:27:48.535926+01:00 hdvdr2 vdr: [13826] [mpv]: mpegts: stream 1 : no PTS found at end of file, duration not set#012 2023-03-22T10:27:48.536897+01:00 hdvdr2 vdr: [13826] [mpv]: property track-list 2023-03-22T10:27:48.537614+01:00 hdvdr2 vdr: [13826] [mpv]: (+) Video --vid=1 (hevc 3840x2160 23.976fps)#012 2023-03-22T10:27:48.537659+01:00 hdvdr2 vdr: [13826] [mpv]: Video --vid=2 (hevc 1920x1080 23.976fps)#012 2023-03-22T10:27:48.537683+01:00 hdvdr2 vdr: [13826] [mpv]: (+) Audio --aid=1 (truehd 8ch 48000Hz)#012 2023-03-22T10:27:48.537708+01:00 hdvdr2 vdr: [13826] [mpv]: Audio --aid=2 (ac3 6ch 48000Hz)#012 2023-03-22T10:27:48.537733+01:00 hdvdr2 vdr: [13826] [mpv]: Audio --aid=3 (eac3 8ch 48000Hz)#012 2023-03-22T10:27:48.537756+01:00 hdvdr2 vdr: [13826] [mpv]: Audio --aid=4 (ac3 6ch 48000Hz)#012 2023-03-22T10:27:48.540498+01:00 hdvdr2 vdr: [13826] [mpv]: event: 18 audio-reconfig 2023-03-22T10:27:48.540598+01:00 hdvdr2 vdr: [13826] [mpv]: event: 18 audio-reconfig 2023-03-22T10:27:48.540626+01:00 hdvdr2 vdr: [13826] [mpv]: event: 8 file-loaded 2023-03-22T10:27:48.540982+01:00 hdvdr2 vdr: [13826] [mpv]: property container-fps 2023-03-22T10:27:48.541074+01:00 hdvdr2 vdr: [13826] [mpv]: property chapters 2023-03-22T10:27:48.552160+01:00 hdvdr2 vdr: [13826] [mpv]: property demuxer-via-network 2023-03-22T10:27:48.552388+01:00 hdvdr2 vdr: [13826] [mpv]: property track-list 2023-03-22T10:27:48.604555+01:00 hdvdr2 vdr: [13826] [mpv]: Using hardware decoding (vaapi-copy).#012 2023-03-22T10:27:48.622720+01:00 hdvdr2 vdr: [13826] [mpv]: AO: [alsa] 192000Hz 7.1 8ch spdif-truehd#012 2023-03-22T10:27:48.623070+01:00 hdvdr2 vdr: [13826] [mpv]: event: 18 audio-reconfig 2023-03-22T10:27:48.650870+01:00 hdvdr2 vdr: [13826] [mpv]: VO: [gpu] 3840x2160 p010#012 2023-03-22T10:27:49.437187+01:00 hdvdr2 vdr: [softhddev]GetVideoSize: 0x0 1 2023-03-22T10:27:49.437377+01:00 hdvdr2 vdr: [5396] skindesigner: w 0 h 0 mode changed to 1 2023-03-22T10:27:56.694250+01:00 hdvdr2 vdr: [5396] [mpv]ProcessKey: key=3 2023-03-22T10:27:56.694428+01:00 hdvdr2 vdr: [5396] skindesigner: drop image cache 2023-03-22T10:27:56.694501+01:00 hdvdr2 vdr: [5396] skindesigner: using channel logo path /etc/vdr/plugins/skinnopacity/logos/ 2023-03-22T10:27:56.694566+01:00 hdvdr2 vdr: [5396] skindesigner: using icon path /etc/vdr/plugins/skindesigner/installerskins/estuary4vdr_mk/themes/darkred/ 2023-03-22T10:27:56.694627+01:00 hdvdr2 vdr: [5396] skindesigner: using skinparts path /etc/vdr/plugins/skindesigner/installerskins/estuary4vdr_mk/themes/darkred/skinparts/ 2023-03-22T10:27:56.694688+01:00 hdvdr2 vdr: [5396] skindesigner: using svgtemplate path /etc/vdr/plugins/skindesigner/installerskins/estuary4vdr_mk/svgtemplates/ 2023-03-22T10:27:56.703917+01:00 hdvdr2 vdr: [5396] [mpv] Osd 51 1
Backtrace is attached.
I suppose the crash might somehow be related to the display coordinates. Output plugin is latest softhddrm with 1920x1080 resolution. I tried to change OSD display settings in softhddrm plugin and also giving fixed sizes on command line for both plugins (softhddrm, mpv) but this did not help.
VDR is compiled with DRM=1 and LIBPLACEBO_GL=1
Linux distribution is openSUSE 15.4
MPV version
Code
Alles anzeigenmpv --version mpv 0.35.0-326-ge1727553f1 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects built on Fri Mar 17 09:09:30 2023 libplacebo version: v5.264.0-54-g2f629a8b FFmpeg version: N-110039-gf543f12817 FFmpeg library versions: libavutil 58.4.100 libavcodec 60.6.101 libavformat 60.4.100 libswscale 7.2.100 libavfilter 9.4.100 libswresample 4.11.100
It would be really great if anyone could have a look at it.
-
Try disable upscaling osd.
Change
if (scalew > 1.0) {
to
if (0 && scalew > 1.0) {
in osd.c, line 124
-
Thanks for the quick reply.
Now it crashes in line 121.
CodeThread 1 (Thread 0x7f926f6b8780 (LWP 15411) "vdr"): #0 0x00007f9259a8b610 in cMpvOsd::WriteToMpv(int, int, int, int, int, int, unsigned char const*) (this=0x36128f0, sw=<optimized out>, sh=<optimized out>, x=0, y=<optimized out>, w=1920, h=1350, argb=0x46ce9c0 "") at osd.c:121 #1 0x00007f9259a8babe in cMpvOsd::Flush() (this=0x36128f0) at osd.c:172 #2 0x00007f9259a81efc in cMpvControl::ShowProgress(int) (this=this@entry=0x15d980f0, playlist=<optimized out>) at control.c:142 #3 0x00007f9259a83a7c in cMpvControl::ProcessKey(eKeys) (this=0x15d980f0, key=<optimized out>) at control.c:347 #4 0x000000000047fa5a in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at vdr.c:1412
I printed out some variables but as I'm not a good programmer, I don't really understand.
sw:1920 sh:1080 x:0 y:0, w:1920, h:1350, osdWidth:1920, osdHeight:1080
-
Try compile softhddrm with LIBPLACEBO_GL=0.
-
-
Hi,
On which hardware? Intel I think? Which generation and GPU? Which VDR version? Self compiled or from an ppa?
Regards Stefan
-
w=1920, h=1350
sounds suspicious. How comes "1350" there?
-
Thanks for your feedback!
CPU: Intel(R) Celeron(R) G6900T (Alder Lake)
OS: openSUSE Leap 15.4
Kernel: 5.14.21-150400.24.46-default
libva, gmmlib, Intel Media Driver self compiled from current git
Mesa 21.2.4 from opensuse.
FFMpeg (self compiled)
Code
Alles anzeigenffmpeg version N-110046-g3ead1fe413 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 7 (SUSE Linux) configuration: --arch=x86_64 --pkg-config-flags=--static --extra-cflags=-I/usr/local/include --extra-ldflags='-L/usr/local/lib -L/usr/local/lib64' --enable-shared --prefix=/usr/local --enable-debug=3 --enable-vaapi --enable-libvorbis --enable-libvpx --enable-libdav1d --enable-pthreads --disable-debug --enable-gpl --cpu=native --enable-opengl --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-libdrm --extra-libs=-lpthread --enable-openssl --enable-nonfree --extra-libs=-lpthread libavutil 58. 4.100 / 58. 4.100 libavcodec 60. 6.101 / 60. 6.101 libavformat 60. 4.100 / 60. 4.100 libavdevice 60. 2.100 / 60. 2.100 libavfilter 9. 4.100 / 9. 4.100 libswscale 7. 2.100 / 7. 2.100 libswresample 4. 11.100 / 4. 11.100 libpostproc 57. 2.100 / 57. 2.100
VDR Version (self compiled):
Code
Alles anzeigenvdr (2.6.1/2.6.1) - The Video Disk Recorder epgsync (1.0.1) - Import EPG of an other VDR epgtableid0 (2.4.0) - EPG handler for events with table id 0x00 externalplayer (0.3.3) - launch external players femon (2.4.1-GIT-ff59839) - DVB Signal Information Monitor (OSD) fritzbox (1.5.3) - Fritz Plugin for AVM Fritz!Box hbbtv (0.1.0pre1) - HbbTV Plugin hello (2.4.0) - A friendly greeting iptv (2.4.0-GIT-f7369c9) - Experience the IPTV mpv (1.4.1-GITv0.2.2-44-g31e0591) - mpv player plugin osd2web (0.2.58-GITa408bdc) - osd2web plugin osddemo (2.4.1) - Demo of arbitrary OSD setup osdteletext (2.3.1) - Displays teletext on the OSD pictures (2.4.0) - A simple picture viewer remote (0.7.0) - Remote control remoteosd (1.0.0) - Show menu of a remote VDR rssreader (2.2.1-GIT-2.6.1) - RSS Reader for OSD skincurses (2.4.3) - A text only skin skindesigner (1.2.18) - Skin Designer softhddrm (3.8-GIT7b41b9b) - A software and GPU emulated UHD device solar (0.0.1) - SOLAR simple plugin status (2.4.0) - Status monitor test streamdev-client (0.6.1-git) - VTP Streaming Client streamdev-server (0.6.1-git) - VDR Streaming Server svccli (2.4.0) - Service demo client svcsvr (2.4.0) - Service demo server svdrpdemo (2.4.0) - How to add SVDRP support to a plugin svdrpservice (1.0.0) - SVDRP client tvguideng (0.3.3) - TV Guide for Skindesigner Skins
Concerning the 1350 value, I added a debug output in cMpvOsd::Flush() for some variables related to width.
[mpv] pm->Viewport().Height():1350, winWidth:0,Player->WindowWidth():0
Don't understand how the initialization of the pm variable works.
-
Hi,
You should deactivate mostly all plugins and then test. Just softhddrm. When that works try skindesigner and then one more plugin every trial.
Why that old VDR version, which is not stable? I don't think that is the reason.
Which settings for the display are set in grub?
Does it work with live-plugin? Or with Streamdev-Server and e. g. Kodi or vlc?
Regards Stefan
-
[mpv] pm->Viewport().Height():1350, winWidth:0,Player->WindowWidth():0
Don't understand how the initialization of the pm variable works.
Metoo
But 1350 appears to be a weird height, it should rather be 1080 for full-hd. Maybe skins struggle with that setting, as they cannot paint their stuff then?
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!