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

    (VDR) NUC11PAH & GEEKOM MINI-IT11-11. Generation * BM2LTS * DD NET S2 Max * NC * (Sound) Cinebar Lux Set * (Stream) Apple TV 4K (2022) *

    (Light) PHILIPS Hue Play HDMI Sync Box & Gradient Lightstrip * (OLED TV) LG OLED65G29LA

  • 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
    mpv

    killall -9 mpv

    svdrpsend plug softhddrm ATTA

    service vdr restart


    Liebe Grüße g ;)

    NCV6dvbS2+Alphacrypt+ORF, BM2LTS4.4 NUC11i3 NVMe+HDD, BM2LTS2.94.4 AVG1 T7400 SSD+HDD NvidiaGT720

  • AC3 OK, aber da steht unten kein HW Decoding weil er drm nicht kennt

    Liebe Grüße g ;)

    NCV6dvbS2+Alphacrypt+ORF, BM2LTS4.4 NUC11i3 NVMe+HDD, BM2LTS2.94.4 AVG1 T7400 SSD+HDD NvidiaGT720

  • 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.

    Liebe Grüße g ;)

    NCV6dvbS2+Alphacrypt+ORF, BM2LTS4.4 NUC11i3 NVMe+HDD, BM2LTS2.94.4 AVG1 T7400 SSD+HDD NvidiaGT720

  • @Inj it looked good.


    Just wanted your check from the above output


    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

    Liebe Grüße g ;)

    NCV6dvbS2+Alphacrypt+ORF, BM2LTS4.4 NUC11i3 NVMe+HDD, BM2LTS2.94.4 AVG1 T7400 SSD+HDD NvidiaGT720

  • 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


    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


    It would be really great if anyone could have a look at it.

    Dateien

  • Thanks for the quick reply.


    Now it crashes in line 121.

    Code
    Thread 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

  • I still get the same dump when using skindesigner as Skin and opening OSD while playing. When using classic VDR skin the video continues but does not show OSD (and pressing buttons has no effect).

    In the log file I see messages like this:

    Code
    [mpv]: overlay-add: inconsistent parameters#012
  • Hi,

    On which hardware? Intel I think? Which generation and GPU? Which VDR version? Self compiled or from an ppa?

    Regards Stefan

    Test-VDR1: HP rp5700 Fertigsystem, Core2Duo E6400, 2GB RAM, FF-SD C-2300, nvidia Slim-GT218 x1 | easyVDR 2.0 64Bit
    VDR3: in Rente

    VDR4: MSI G31M2 v2, Digitainer2-Geh., t6963c 6" gLCD, E5200, 2GB, 3TB WD Red, GT730, 2x TT S2-3200; easyVDR 3.5 64bit
    VDR5: Gigabyte
    GA-G31M-S2L, Intel E2140, Zotac GT730 passiv, Digitainer2-Geh., t6963c 6 " gLCD, 2 TB WD Red, 2x TT S2-3200 (an 1 Kabel) easyVDR 3.5 64bit
    VDR6:
    Intel E5200, GT630 passiv, F1 750 GB, t6963c gLCD, 2x TT S2-3200 | easyVDR 3.5 64bit
    VDR-User #1068
    www.easy-vdr.de

  • 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)


    VDR Version (self compiled):


    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

    Test-VDR1: HP rp5700 Fertigsystem, Core2Duo E6400, 2GB RAM, FF-SD C-2300, nvidia Slim-GT218 x1 | easyVDR 2.0 64Bit
    VDR3: in Rente

    VDR4: MSI G31M2 v2, Digitainer2-Geh., t6963c 6" gLCD, E5200, 2GB, 3TB WD Red, GT730, 2x TT S2-3200; easyVDR 3.5 64bit
    VDR5: Gigabyte
    GA-G31M-S2L, Intel E2140, Zotac GT730 passiv, Digitainer2-Geh., t6963c 6 " gLCD, 2 TB WD Red, 2x TT S2-3200 (an 1 Kabel) easyVDR 3.5 64bit
    VDR6:
    Intel E5200, GT630 passiv, F1 750 GB, t6963c gLCD, 2x TT S2-3200 | easyVDR 3.5 64bit
    VDR-User #1068
    www.easy-vdr.de

    Einmal editiert, zuletzt von SurfaceCleanerZ ()

  • [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!