vdr-plugin-mpv - Konfiguration

  • Wer nutz aktiv das MPV-Plugin unter yaVDR [@ansible) oder vdr4arch?


    Irgendwie bekomme ich keinen Ton und der Cursor (ein X) ist in der Bild Mitte.


    Das Plugin ist aus dieser Quelle gebaut: https://github.com/ua0lnj/vdr-plugin-mpv


    In den Optionen hab ich nur den Schalter:

    -d

    -b

    gesetzt, nichts weiter, wie gesagt Bild wird wie oben beschrieben ausgegeben.


    Das Plugin mplayer funktioniert mit Bild und Tonausgabe.


    Hardware ist wie in der Signatur vdr03 / vdr04 mit einer GT630

    Gruß utiltiy



    VDR Projekte VDR Projects

  • Danke, hab das fix ergänzt. Am Verhalten hat sich nichts geändert, leider.

    Gruß utiltiy



    VDR Projekte VDR Projects

  • Hmm, bei mir steht "--ao=pulse" in der config.

  • If i use the Plugin from here: https://projects.vdr-developer…ojects/plg-mpv/repository


    Sound come without any changes on my plugin config, but the cursor is also in the picture


    Test with the option"-a alsa...." brings no sound.


    You coment the Tipp to hide the cursor in player.c, why?


    It is possible to add an option to hide the cursor in plugin settings or implement an auto hide function?


    My card:


    Gruß utiltiy



    VDR Projekte VDR Projects

    2 Mal editiert, zuletzt von utiltiy ()

  • Testsystem: arch with 2.4.6


    Test commit git, before this: 0ad359fb03694790605a9ae59df568fefd5fc315 the sound's come with my posted plugin.conf.

    Gruß utiltiy



    VDR Projekte VDR Projects

  • player.c already have code to hide cursor

    check_error(mpv_set_option_string(hMpv, "cursor-autohide", "always"));

    It is not clear why it does not help.


    What verson of mpv you use?

    See readme, you need libmpv >= 0.30.0 (for old version use vdr-plugin-mpv 0.0.4.)

    It looks like you have an old version of mpv, there is another option for sound.
    check_error(mpv_set_option_string(hMpv, "audio-device", MpvPluginConfig->AudioOut.c_str()));

    but for old version need

    check_error(mpv_set_option_string(hMpv, "ao", MpvPluginConfig->AudioOut.c_str()));

  • Gruß utiltiy



    VDR Projekte VDR Projects

  • See mpv/DOCS/interface-changes.rst

    --- mpv 0.21.0 ---- deprecate the device/sink options on all AOs. Use --audio-device instead.


    Maybe the arch distribution uses its own patches for mpv.

    Then you have to fix the code for your distribution.


    Or you have some mpv in you system :)

    Try mpv --version

  • Gruß utiltiy



    VDR Projekte VDR Projects

  • The sound problem is also with ubuntu aka yavdr on my system not only with arch, see 1. post.

    Gruß utiltiy



    VDR Projekte VDR Projects

  • Give

    pkg-config --modversion mpv

    Code
    pkg-config --modversion mpv
    1.109.0

    Gruß utiltiy



    VDR Projekte VDR Projects

  • It's a mystery...

    Yes, i think so too ;)


    Test:

    yavdr@bionic = 0.0.4 = mpv works with sound (stock config)

    yavdr@focal = 0.0.9 = mpv works without sound (test with stock config / with --ao=pulse)


    arch = 0.0.4 = mpv works with sound

    arch = 0.0.9 = mpv works without sound

    Gruß utiltiy



    VDR Projekte VDR Projects

  • Test with arch


    mpv 0.0.4 with sound, stock config file


    mpv 0.0.9 without sound, stock config file

    mpv 0.0.9 without sound, stock config file with option: -a alsa/hdmi:CARD=NVidia,DEV=0

    Gruß utiltiy



    VDR Projekte VDR Projects

  • Where the sound is connected?

    You aplay -L say sysdefault:CARD=PCH

    In 0.0.4 log is [mpv] API error: error setting option, and most likely use sysdefault output.


    Try -a alsa/sysdefault.

    And if you enabled DEBUG in makefile, plugin must create /var/log/mpv file. There you can see which device is used when there is sound, in case 0.0.4 version. And set this device in 0.0.9 config.

  • My asound.conf, i use GT630 for sound by HDMI

    Code
    pcm.!default {
        type hw
        card NVidia
        device 7
    }


    aplay -L says

    Code
    aplay -L
    null
        Discard all samples (playback) or generate zero samples (capture)
    sysdefault:CARD=PCH


    other output

    Gruß utiltiy



    VDR Projekte VDR Projects

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!