vdr-2.4.1 and vaapi => issues audio and video

  • Hi all,


    I am buidling a new vdr box :

    - old one : Debian 7 / nvidia gpu / vdpau plugin

    - new one : Mint 19.3 / Desktop Cinnamon 3840x2160 -@ 60 Hz / intel gpu / vaapi plugin / vdr-2.4.1


    Driver seems to be OK :

    Running mpv from a terminal is OK :

    Code
    1. mpv -vo=vaapi --hwdec=vaapi /DATA/file1080p.mkv
    2. Playing: /DATA/file1080p.mkv
    3. (+) Video --vid=1 (*) (h264 1920x800 24.000fps)
    4. (+) Audio --aid=1 --alang=fre (*) (dts 6ch 48000Hz)
    5. (+) Subs --sid=1 --slang=fre (*) 'Forced' (subrip)
    6. AO: [pulse] 48000Hz 5.1(side) 6ch float
    7. Using hardware decoding (vaapi).
    8. VO: [vaapi] 1920x800 vaapi[nv12]
    9. AV: 00:00:09 / 01:27:44 (0%) A-V: 0.000


    I have an issue with VDR and vaapi-plugin :



    - pictures are extremely slow on every channels (dvbt and dvbs)

    - no sound on dvbt (beause eac3 ?) , picture and sound out of sync on dvbs


    I found many errors in syslog (see below) , but I don't know what's wrong.

    Could you please help me to fix this isssue ?


    Thanks a lot.

    Karim



    "Prod" : Debian 7 vdr-2.0.6, TBS6280, 6922, 6928
    "Test" : Mint 19.3, vdr-2.4.1, Hauppauge WinTV Quad, S2-3200+CI


  • Hi,

    I think you have problems with your video source. Is it in live-Plugin also?

    Are recordings ok when playing them afterwards?

    Where is your vdr from?

    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

  • Hi,

    I think you have problems with your video source. Is it in live-Plugin also?

    Are recordings ok when playing them afterwards?

    Where is your vdr from?

    Regards Stefan


    Sorry, I didn't explain enough.... VDR is totally unusable : live mode, view recording, and of course mvp plugin.


    I don't think it's a video source problem, because I have the same issue with dvb-t (antenna on the roof) and dvb-s (dish).


    My vdr (2.4.1) is downloaded from Klaus web site, and compiled here (as I always do).


    If I install from Synaptic, version is too old (2.3.8-2).

    Do you think I should try ?


    I can view records with mvp.


    Regards


    "Prod" : Debian 7 vdr-2.0.6, TBS6280, 6922, 6928
    "Test" : Mint 19.3, vdr-2.4.1, Hauppauge WinTV Quad, S2-3200+CI


  • Hi,

    I think you should try a standard distribution like mld to know if the tuners work.

    Self compiling vaapi and other Plugins is very difficult. You need the right ffmpeg and everything.

    As next step then if it works with the kernel version you want to use you can download the working 2.4.1 vdr and plugin source of Seahawks ppa. But it is for Ubuntu, probably you have to use other patches....

    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


  • Hi,

    I don't know "mld" distribution, could you please share a link ?

    Same question for "Seahawks ppa".


    Recently I left Buster (because lirc issue) and move to Mint 19.3.

    No problem to change again. You think that Ubuntu is the best choice for vdr ?


    Thanks for your help !

    Karim



    "Prod" : Debian 7 vdr-2.0.6, TBS6280, 6922, 6928
    "Test" : Mint 19.3, vdr-2.4.1, Hauppauge WinTV Quad, S2-3200+CI


  • yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Hi,

    Seahawk is the one who builds the yavdr packages. He has packets for Vdr 2.4.1 for focal Ubuntu (20.04).

    We at easyvdr are currently using 2.2.0 because of the setup Plugin. We are working on easyvdr v5 based on focal also.

    Mld is a distribution only for media purposes.

    Use Google and you'll find both.


    Without any hardware data this does not make any sense further.

    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

  • Thanks for the tips.

    Step 1, I am going to test MLD.


    Regards.

    Karim

    "Prod" : Debian 7 vdr-2.0.6, TBS6280, 6922, 6928
    "Test" : Mint 19.3, vdr-2.4.1, Hauppauge WinTV Quad, S2-3200+CI


  • Hello,


    dvb-s2 is OK under MLD.

    Ffor dvb-t, I need to solve an error in dmesg to test).


    I installed Ubuntu 18.2 on another ssd. According to seahawk1986, I did :

    Code
    1. sudo add-apt-repository ppa:seahawk1986-hotmail/vdr-2.4.1
    2. sudo apt-get update

    But I don't find "vdr-2.4.1 in "Software utilities".


    Did I missed something ?

    Could you please tell me how process to install vdr-2.4.1 ?


    Thank you.

    "Prod" : Debian 7 vdr-2.0.6, TBS6280, 6922, 6928
    "Test" : Mint 19.3, vdr-2.4.1, Hauppauge WinTV Quad, S2-3200+CI


  • Could you please tell me how process to install vdr-2.4.1 ?

    Code
    1. #check the available versions of the vdr package
    2. apt policy vdr
    3. # install the package
    4. sudo apt install vdr

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • You should compile against ffmpeg 4.x - version 3.x does not always use the video decoder in the GPU....

    Thanks for the tip, I will try this way.

    "Prod" : Debian 7 vdr-2.0.6, TBS6280, 6922, 6928
    "Test" : Mint 19.3, vdr-2.4.1, Hauppauge WinTV Quad, S2-3200+CI


  • Hi,


    @FireFly wrote,

    I installed ffmpg 4.x but it doesn't solve the issue.

    I am trying the other way, "seahawk packages". Thanks anyway.


    @seahawk1986,

    I have installed ppa, vdr-2.4.1 and plugins. No problems except a few issues below. (Linux Mint 19.3 Tricia x64, based on Ubuntu).

    Could you please help to fix it ?


    1/ vdr is running but I can't display it

    2) vdr-plugin-extrecmenu

    => System can't find vdrsymbols-ttf

    Code
    1. apt install vdr-plugin-extrecmenu
    2. ...
    3. vdr-plugin-extrecmenu : Dépend: vdrsymbols-ttf not installable
    4. ...


    3) vdr-plugin-skinelchi and vdr-plugin-streamdev

    Theses plugins seem to be not compatibles. Do you confirm ?


    Regards.

    Karim

    "Prod" : Debian 7 vdr-2.0.6, TBS6280, 6922, 6928
    "Test" : Mint 19.3, vdr-2.4.1, Hauppauge WinTV Quad, S2-3200+CI


  • Update...


    1) Is fixed

    by using this command (before vdr start) evry time I boot the machine.

    Is it the right command ?

    Code
    1. xhost +local:all


    4) No sound

    Audio must be sent to monitor by HDMI.

    Usually I setup runvdr with : -P'vaapidevice -a hw:0,7 -d :0.0 -v va-api -g 1920x1080'

    => In which file I can do this setup ?


    5) TV live view

    All channels are in "slow motion". Errors in Syslog :


    6) MPV plugin
    I can't never play video file via VDR (plugin is waiting for vdpau ??)

    (No problem using mpv from a terminal)


    "Prod" : Debian 7 vdr-2.0.6, TBS6280, 6922, 6928
    "Test" : Mint 19.3, vdr-2.4.1, Hauppauge WinTV Quad, S2-3200+CI


  • Is it the right command ?

    This command allows everyone on the machine to connect to the X-server. It depends on your preferences if this is good enough.

    => In which file I can do this setup ?

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

    All channels are in "slow motion". Errors in Syslog :

    This could be an issue in connection with a compositor like compiz, mutter etc. - a plain openbox session or a similar window manager without animations and other eye-candy usually works best. Also the sound output isn't working properly - you could try to allow the vdr to output sound via pulseaudio and to connect to the pulseaudio daemon running in your user's desktop session (e.g. https://wiki.archlinux.org/ind…up_with_direct_connection).

    I can't never play video file via VDR (plugin is waiting for vdpau ??)

    check the configuration file /etc/vdr/conf.avail/mpv.conf for proper start options (according to it's source code the plugin defaults to vdpau if no start arguments are given).

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • OK, I will keep this :

    Code
    1. xhost +local:all

    For vaapi setup, it's in :

    Code
    1. /etc/vdr/conf.avail/vaapidevice.conf

    video : I passed this argument with success => -g 1280x720

    audio : this argument doesn't work => -a hw:0,7

    => Did I missed something ?


    Slow motion

    " you could try to allow the vdr to output sound via pulseaudio and to connect to the pulseaudio daemon running in your user's desktop session (e.g. https://wiki.archlinux.org/ind…up_with_direct_connection)."

    It's not easy for me, I will take a look tomorrow.


    mpv vdpau error

    I tried to customize this :

    Code
    1. /etc/vdr/conf.avail/mpv.conf


    By adding (testing each of theses) argument, but vdpau error is still here :

    -h hwdec=vaapi

    -h hwdec vaapi

    -h hwdec-vaapi

    -h hwdec--vaapi


    Could you please tell me the right syntax ?


    Regards.






    "Prod" : Debian 7 vdr-2.0.6, TBS6280, 6922, 6928
    "Test" : Mint 19.3, vdr-2.4.1, Hauppauge WinTV Quad, S2-3200+CI


  • video : I passed this argument with success => -g 1280x720

    audio : this argument doesn't work => -a hw:0,7


    => Did I missed something ?

    Did you put each argument in it's own line (as described in the README.Debian which is included in the vdr package?)


    As far as I undestand the README, it should be -h vaapi

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • "each argument in it's own line"

    Thanks for pointing to this !


    /etc/vdr/conf.avail/mpv.conf

    I tried this

    -v vaapi

    -a hw:0,7

    => video is running but still no sound through HDMI.

    (When i run mpv from a terminal video and sound are OK)


    /etc/vdr/conf.avail/vaapidevice.conf

    I tried this (video OK but still no sound)

    -g 1280x720

    -a hw:0,7

    => video is running but still no sound through HDMI.



    It should be an incorrect argument...

    Any advice please ?

    "Prod" : Debian 7 vdr-2.0.6, TBS6280, 6922, 6928
    "Test" : Mint 19.3, vdr-2.4.1, Hauppauge WinTV Quad, S2-3200+CI