• sorry i dont understand how this works together....

    In vdr it even outputs 4kp60 in HDR to the TV. We are running drm.

    Please have a look at the console output of the post above.

    What determines the framerate and resolution ?

    1 Video is 1080p 24 ... why is output 30Hz ?

    2 can we limit resolution to 1080 ??

    Pleas help

    Liebe Grüße g ;)

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

  • OK. Can you please explain if this can be the cause for choosing highest available resolution :

    [vo/gpu/drm] VT_GETMODE failed: Inappropriate ioctl for device

    Liebe Grüße g ;)

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

  • --drm-mode=1920x1080@24

    This works, but how can we determine the correct resolution of the video instead of fixed values ?

    Liebe Grüße g ;)

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

  • Variable resfresh rates is what you want: 24fps instead of 25...

    I think...

    Resolution is another point...

    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
    http://www.easy-vdr.de

  • Gut gemeint, aber das funkt nicht weil es bei VRR darum geht, dass das Display sich an die dynamischen Framerates der Grafik während eines Videogames anpasst. (Toggle use of Variable Refresh Rate (VRR), aka Freesync or Adaptive Sync on compatible systems)

    --drm-mode=1920x1080@24

    how can we use width and hight described here: , https://mpv.io/manual/master/#command-interface-width

    oder wie könnte es damit gehen ?

    height = mp.get_property( height )

    Muss das ev. in den .conf

    drm-mode=????

    Liebe Grüße g ;)

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

  • Agreed, but there are properties as posted above.

    - do we need property expansion for this ?

    - Can you please help to integrate them into the .conf or profile or do we need a script (lua) ?

    Liebe Grüße g ;)

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

    Edited once, last by gggggg (December 11, 2024 at 2:10 PM).

  • Yes that works perfectly TV shows this resolution for the HDMI Input selected !

    --drm-mode=1920x1080@24 also if put into the .conf without --

    Liebe Grüße g ;)

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

    Edited once, last by gggggg (December 11, 2024 at 2:36 PM).

  • So we would be great to have Plugin options like:

    -DrmUseVideoRateResolution ... which uses resolution and framerate of video

    -DrmUseVideoRateResolutionFixed 1920x1080 ... which uses the rate of the Video and the fixed resolution e.g. 1920x1080

    (-DrmUseFixedRateResolution 1920x1080@24 ... which uses fixed resolution and rate e.g. 1920x1080@24)

    Liebe Grüße g ;)

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

    Edited 5 times, last by gggggg (December 11, 2024 at 3:39 PM).

  • I have put drm-mode=1920x1080@24 into the mpv.conf

    Console is OK, but Plugin not:

    At the moment the default behavior seems to be that mpv/drm plugin chooses the 1st resolution found in the edid. On one of my TVs its 4k p60 and on the new one it is 4k p30.

    Liebe Grüße g ;)

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

  • Dear lnj many THX that you help us out again !

    To sum it up:

    1 If mpv starts the video, drm uses the FIRST resolution/framerate mode it findes in the modes file:

    (e.g/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-HDMI-A-2/modes)

    Usally this is either the prefred mode or the mode with the highest resolution of the display.

    !!! But this will not always work for the AV-chain sitting between source and display !!!

    2 If one like me has an AV-Receiver and splitters in the line between display and PC source, this will not always work:

    E.g. if the AVR cant handle the highest/preferred resolution or FRAMERATE.

    3. The config line (e.g. drm-mode=1920x1080@24) in the ~/.config/mpv/mpv.conf has no influence on the mpv/drm plugin.

    But it works for starting mpv from the comand line.

    4. The resolution of the video could be obtained (within mpv) as linked here.

    Solution:

    The mpv plugin should start the player with parameter drm-mode=WIDTHxHIGHT@RATE (e.g. drm-mode=1920x1080@24).

    To control the behavior please let the user choose between the following variants (plugin mpv.conf):

    -DrmUseVideoRateResolution ... which uses resolution and framerate of video . Like Kodi does it.

    (No stutter as RATE of video is used, might still lead to probs if AV-chain cant handle resolution of video)

    -DrmUseVideoRateResolutionFixed 1920x1080 ... which uses the rate of the Video and a fixed resolution e.g. 1920x1080

    (No stutter, as RATE of video is used, no probs with AV-chain, but not the optimal resolution)

    -DrmUseFixedRateResolution 1920x1080@24 ... which uses fixed rate and resolution e.g. 1920x1080@24

    (will lead to micro stutter as the framerate does not always match the video, no probs with AV-chain, but not the optimal resolution)

    If you want to solve it with only one option:

    -drmVideoResolutionRate WxH@R .... if W/H/R are found mpv uses the according parameter of the video. Otherwise it uses the given number.

    Example entries for plugin mpv.conf:

    -drm WxH@R .................. all 3 parameters are taken from video (like Kodi)

    -drm 1920x1080@R ...... only RATE of video will be used with fixed resolution from user 1920x1080

    -drm 1920x1080@24 ... all 3 parameters come from user. Resolution and rate are fixed

    Liebe Grüße g ;)

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

    Edited 13 times, last by gggggg (December 14, 2024 at 7:05 PM).

  • So far you can only set the output parameters, automatic settings by video parameters did not work. MPV cannot change the screen refresh rate or resolution on the fly, it accepts the command, but does not change anything. But it seems that the problem with the VDR crash when exiting MPV has been solved, I do not have any more problems.

    Ex. -g 1920@1080@50

    Version 1.8.0 of plugin.

    Try.

  • cinfo kannst du bitte die Version bauen.

    lnj Many THX for your fast response !!!!!!!!

    1 Just to understand it right, because -g option existed already

    X11:

    # -g geometry X11 geometry [W[xH]][+-x+-y][/WS] or x:y

    -g in conjuction with X11 change the geometrie (size) of the picture and there is no rate setiing

    drm:

    # -g resolution with drm resolution chnage W@H@R e-g- 1920@1080@24

    -g in conjuction with drm changes the resolution for the drm output

    2 "on the fly":

    Right now the resolution change happens as soon as one selects a video and hits enter and the m-player starts.

    I assume that at this point mpv made a DETA display from vdr and as the plugin is already running the resolution has been fixed already.

    So the resolution cant be passed to the m-player who changes the resolution at its starting point ?

    Liebe Grüße g ;)

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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!