Posts by lnj

    This will be done differently, but for now it is not a priority. There is no solution for the crash yet. If crashing after launching the plugin is not so bad for you, I can make the card switching.

    So far I have discovered that the problem is with the MPV itself, and not with the mpv plugin. Run vdr, detach the softhddrm, start the mpv, stop the mpv, attach the softhddrm. After a few times you get vdr crash.

    I'm looking for a solution.

    very small OSD!

    I understand, the plugin can't get screen info.

    cinfo

    in player.c, line ~463:


    fd = open("/dev/dri/card0", O_RDWR);


    Change it to need card.

    Why w=1728, when screen width = 1280...

    cinfo

    Please, add in osd.c after line 171:

    Code
    dsyslog("left %d top %d osdw %d osdh %d xv %d yv %d wv %d hv %d xd %d yd %d wd %d hd %d\n",
    Left(),Top(),OsdAreaWidth,OsdAreaHeight,pm->ViewPort().X(),pm->ViewPort().Y(),pm->ViewPort().Width(),pm->ViewPort().Height(),
    pm->DrawPort().X(),pm->DrawPort().Y(),pm->DrawPort().Width(),pm->DrawPort().Height());

    And gggggg post the syslog after crash.

    Now I can’t adjust the volume at all with softhddrm, it doesn’t respond to buttons at all, I’ll take a look at the weekend.

    This is a normal, shaders version 460 not compiled, but version 330 ok.

    Code
    Mar 20 18:39:42 vdr7 vdr: [1884] [softhddev]:SHADER: Try compile #version 330 core 
    Mar 20 18:39:42 vdr7 vdr: [1884] [softhddev]:SHADER: Compiled ok
    Mar 20 18:39:42 vdr7 vdr: [1884] [softhddev]:SHADER: Try compile #version 460 core 
    Mar 20 18:39:42 vdr7 vdr: [1884] [softhddev]:SHADER: Compile-time error: Type: 2 - 0(2) : error C0201: unsupported version 460#0120(2) : error C0000: syntax error, unexpected '(', expecting "::" at token "("#0120(2) : warning C7532: global type vec2 requires "#version 100" or later#0120(2) : error C5060: out can't be used with non-varying TexCoords#0120(2) : warning C7532: global type vec4 requires "#version 100" or later#0120(2) : error C5060: out can't be used with non-varying textColor#0120(2) : warning C7532: global type mat4 requires "#version 100" or later#0120(2) : warning C7532: global variable gl_Position requires "#version 100" or later
    Mar 20 18:39:42 vdr7 vdr: [1884] [softhddev]:SHADER: Try compile #version 330 core 
    Mar 20 18:39:42 vdr7 vdr: [1884] [softhddev]:SHADER: Compiled ok
    Mar 20 18:39:42 vdr7 vdr: [1884] [softhddev]Shaders initialized


    It seems, you have software decoder.

    Code
    Mar 20 18:48:45 vdr7 vdr: video/vdpau: can't create decoder: A catch-all error, used when no other error code applies.

    I have installed Nvidia+Intel both.


    root@ua0lnjvdr:/dev/dri# ls -l /dev/dri

    total 0

    drwxr-xr-x 2 root root 120 мар 18 23:00 by-path

    crw-rw---- 1 root video 226, 0 мар 17 22:32 card0

    crw-rw---- 1 root video 226, 1 мар 18 23:00 card1

    crw-rw---- 1 root render 226, 128 мар 17 22:32 renderD128

    crw-rw---- 1 root render 226, 129 мар 17 22:32 renderD129


    This method doesn't work for me.


    And, we need to find the reason, then we will find a solution.

    cinfo

    You can try add in mpv plugin, player.c, after line 522:

    check_error(mpv_set_option_string(hMpv, "drm-device", "/dev/dri/card0"));



    Code
      if (!strcmp(MpvPluginConfig->GpuCtx.c_str(),"drm") || !strcmp(MpvPluginConfig->VideoOut.c_str(),"drm"))
      {
        drm_ctx = 1;
        check_error(mpv_set_option_string(hMpv, "drm-device", "/dev/dri/card0"));
      }

    or card1


    I haven't been able to reproduce the crash yet.