• THX for explanation, but I am a noob in those things:

    I guess this is to late as the video must run therefore mp.get_property( height )

    Could you get them earlier this way:

    Get property: https://mpv.io/manual/master/…-property(name-[,def])

    List of Properties: https://mpv.io/manual/master/#properties

    https://unix.stackexchange.com/questions/4551…gh-command-line

    Liebe Grüße g ;)

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

  • lnj Mostly movies are 24 and TV series are 50Hz of course .

    So I still think about a solution for the problem regarding 24 and 50Hz videos, Right now one has to start Kodi just because of this ...

    As I understand you there is no way to pass this info to mpv as soon as it is loaded.

    Would it then be possible to reload mpv plugin ? But I am sure you have a much better idea ;)

    Liebe Grüße g ;)

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

  • So I still think about a solution for the problem regarding 24 and 50Hz videos, Right now one has to start Kodi just because of this ...

    You could add a line to your commands.conf, calling a script like

    Bash
    #!/bin/bash
    export DISPLAY=:0
    xrandr --output HDMI-0 --mode 1920x1080 --rate 24

    That assumes that you already know the correct rate.

    When I used the mplayer-Plugin to start mpv, I called their mpv-identify-Script. Have a look in HowTo: mplayer-Plugin mit mpv (mplayer-fork) benutzen

    VDR1: Odroid N2+ mit CoreELEC und Ubuntu in chroot, 2x WinTV DualHD, Sandisk 2TB SSD

    VDR2: Tanix TX3 mit VDR*ELEC, WinTV DualHD, 500GB SSD

  • Hello lnj ,

    latest mpv version 0.40 support HDR metadata through drm output when using vo=gpu-next and setting target-colorspace-hint to auto or yes.

    Could you add the corresponding option within the plugin in player.c?

    Code
         #ifdef USE_DRM
         ...
            check_error(mpv_set_option_string(hMpv, "target-colorspace-hint", "auto"));
         ...
         #endif

    When setting to "auto" HDR capability of the monitor will be automatically detected so it shouldn't be a problem not making it configurable. Otherwise a new plugin parameter would be nice.

    Thanks!

    Meine VDR


    VDR1:
    Celeron J1900 | Gainward G210 | openSuSE15.1 | vdr-2.6.1
    | softhddevice | streamdev-client
    VDR2: Celeron@2000 | Zotac GT610 PCI | openSuSE42.1 x32 | vdr-2.6.1 | softhddevice | streamdev-client
    VDR3: G4400T | Cine S2 V6.5 | openSuSE15.4 | vdr-2.6.4 | streamdev-server
    VDR4:
    Pentium G6900T | openSuSE15.4 | vdr-2.4.3 | softhddrm

  • Thanks a lot lnj ,

    works for me!

    Meine VDR


    VDR1:
    Celeron J1900 | Gainward G210 | openSuSE15.1 | vdr-2.6.1
    | softhddevice | streamdev-client
    VDR2: Celeron@2000 | Zotac GT610 PCI | openSuSE42.1 x32 | vdr-2.6.1 | softhddevice | streamdev-client
    VDR3: G4400T | Cine S2 V6.5 | openSuSE15.4 | vdr-2.6.4 | streamdev-server
    VDR4:
    Pentium G6900T | openSuSE15.4 | vdr-2.4.3 | softhddrm

  • Hello,

    I am building a new VDR machine with Ubuntu Jammy + Gnome +X11 + RX550. I installed vdr and plugins (with apt install ...) from seahawk repository. No problem to install, vdr 2.6.9 is now running with softhddevice and mpv v0.34.1 :

    I've an issue when I try to run an mkv file from vdr /mpv plugin :
    -> A window is opening in full screen, but so sound and no picture.

    I can hear sound using this alsa configuration :

    Code
    aplay -D "plughw:1,9" /usr/share/sounds/alsa/Front_Center.wav

    Then I configured mvp.conf like this, and restarted vdr :

    Code
    echo "audio-device=alsa/hw:1,9" > ~/.vdr/plugins/mpv/mpv.conf

    But still black screen, mpv always call "Audio output alsa:device=default" even if configuration is different in mpv.conf :

    Code
    juin 27 11:38:29 vdr3 vdr[11753]: [11753] [mpv] playing //mnt/nasVIDEO/1080p.mkv
    ...
    juin 27 11:38:29 vdr3 vdr[11753]: [11802] [mpv]: Audio output alsa:device=default not found!
    juin 27 11:38:29 vdr3 vdr[11753]: [11802] [mpv]: Failed to initialize audio driver 'alsa:device=default'

    Did I missed something : path and/or configuration of mpv.conf ?

    Could you please help me to fix ?

    Thanks !

    "Old config HD" : Debian 7, vdr-2.0.6, xineliboutput, TBS6280, TBS6922, TBS6928
    "New config UHD" : Debian 13 KDE X11, vdr-2.6.6 + SoftHDDevice, mpv, Hauppauge WinTV Quad, S2-3200 + CI

  • How do you use the softhddevice with RX550, vdpau or va-api?

    The same you should use for mpv.

    -v gpu -h vdpau -c x11

    -v vdpau -h vdpau

    Try.

    mpv plugin used "-a" for audio, not "audio-device". These are the parameters of the plugin, not the MPV itself. See the plugin's readme.

  • I am using va-api.


    This configuration is working for live TV :

    /etc/vdr/conf.avail/softhddevice.conf

    Code
    [softhddevice]
    -g 1920x1080+0+0
    -a hw:1,9
    -v va-api
    -d :0.0

    I've just tested this for playing mkv files :
    /etc/vdr/conf.avail/mpv.conf

    Code
    [mpv]
    -b /mnt/nasVIDEO
    -a hw:1,9
    -v va-api

    It's better for alsa, but it doesn't work (video) :

    Last try with :

    Code
    [mpv]
    -b /mnt/nasVIDEO
    -a hw:1,9
    -h va-api
    -v gpu

    "Old config HD" : Debian 7, vdr-2.0.6, xineliboutput, TBS6280, TBS6922, TBS6928
    "New config UHD" : Debian 13 KDE X11, vdr-2.6.6 + SoftHDDevice, mpv, Hauppauge WinTV Quad, S2-3200 + CI

    Edited once, last by dvb91 (June 28, 2025 at 1:23 AM).

  • I tested theses settings without success :

    Code
    [mpv]
    -b /mnt/nasVIDEO
    -a hw:1,9
    -v gpu
    -h vaapi


    Code
    [mpv]
    -b /mnt/nasVIDEO
    -a hw:1,9
    -v gpu
    -h auto
    Code
    [mpv]
    -b /mnt/nasVIDEO
    -a hw:1,9
    -v gpu
    -h vaapi-copy

    With " -v gpu", mpv calls always "libcuda.so.1".

    "Old config HD" : Debian 7, vdr-2.0.6, xineliboutput, TBS6280, TBS6922, TBS6928
    "New config UHD" : Debian 13 KDE X11, vdr-2.6.6 + SoftHDDevice, mpv, Hauppauge WinTV Quad, S2-3200 + CI

  • Selected deinterlacer for resolution 4 is not supported by HW

    try different deinterlacer

  • FYI, this setup is working from console (out of vdr) :


    For deinterlaced, I tried theses two settings without success :

    Code
    [mpv]
    -b /mnt/nasVIDEO
    -a hw:1,9
    -v gpu
    -h vaapi
    -vf bwdif
    Code
    juin 28 18:43:18 vdr3 vdr[9865]: [9865] loading plugin: /usr/lib/vdr/plugins/libvdr-mpv.so.2.6.9
    juin 28 18:43:18 vdr3 vdr[9865]: [9865] [mpv]: unhandled argument 'bwdif'
    juin 28 18:43:18 vdr3 vdr[9865]: [9865] loading plugin: /usr/lib/vdr/plugins/libvdr-softhddevice.so.2.6.9
    juin 28 18:43:18 vdr3 vdr[9865]: [9865] loading /var/lib/vdr/setup.conf
    
    and


    Code
    [mpv]
    -b /mnt/nasVIDEO
    -a hw:1,9
    -v gpu
    -h vaapi
    -vf=vaapi_deinterlace


    "Old config HD" : Debian 7, vdr-2.0.6, xineliboutput, TBS6280, TBS6922, TBS6928
    "New config UHD" : Debian 13 KDE X11, vdr-2.6.6 + SoftHDDevice, mpv, Hauppauge WinTV Quad, S2-3200 + CI

  • Code
    juin 28 18:54:29 vdr3 vdr[10597]: Selected deinterlacer for resolution 0 is not supported by HW
    juin 28 18:54:29 vdr3 vdr[10597]: Selected deinterlacer for resolution 1 is not supported by HW
    juin 28 18:54:29 vdr3 vdr[10597]: Selected deinterlacer for resolution 2 is not supported by HW
    juin 28 18:54:29 vdr3 vdr[10597]: Selected deinterlacer for resolution 3 is not supported by HW
    juin 28 18:54:29 vdr3 vdr[10597]: Selected deinterlacer for resolution 4 is not supported by HW

    This is a softhddevice, not mpv, it's a normal.

    Code
    mpv --vo=gpu --hwdec=vaapi --audio-device=alsa/hw:1,9

    This equal:

    -v gpu -h vaapi -a alsa/hw:1,9

    You can do the also -v gpu -h vaapi -c x11,

    -v gpu -h vaapi -c x11egl

  • You've right, sorry for the mismatch...


    I just tried this, vdr is launching, windows is opening with sound, but no video. I am not sure if config is right :

    Code
    [softhddevice]
    -g 1920x1080+0+0
    -a hw:1,9
    -v gpu
    -h vaapi 
    -c x11egl
    Code
    juin 29 09:36:56 vdr3 vdr[28984]: [28984] starting plugin: mpv
    juin 29 09:36:56 vdr3 vdr[28984]: [28984] starting plugin: softhddevice
    juin 29 09:36:56 vdr3 vdr[28984]: audio: 'alsa' output module used
    juin 29 09:36:56 vdr3 vdr[28984]: [29005] frontend 4/0 tuner thread started (pid=28984, tid=29005, prio=high)
    juin 29 09:36:56 vdr3 vdr[28984]: audio/alsa: supports pause: yes
    juin 29 09:36:56 vdr3 vdr[28984]: audio:  44100Hz supports 2 2 2 2 2 2 2 2 channels
    juin 29 09:36:56 vdr3 vdr[28984]: audio:  48000Hz supports 2 2 2 2 2 2 2 2 channels
    juin 29 09:36:56 vdr3 vdr[28984]: audio: 192000Hz supports 2 2 2 2 2 2 2 2 channels
    juin 29 09:36:56 vdr3 vdr[28984]: video: 'gpu' output module isn't supported
    juin 29 09:36:56 vdr3 vdr[28984]: [softhddev] ready

    "Old config HD" : Debian 7, vdr-2.0.6, xineliboutput, TBS6280, TBS6922, TBS6928
    "New config UHD" : Debian 13 KDE X11, vdr-2.6.6 + SoftHDDevice, mpv, Hauppauge WinTV Quad, S2-3200 + CI

Participate now!

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