yaVDR Ansible - Ton stottert immer öfter ...

  • Lei .. lei .. lei ... lei ... lei ... leider kommt es seit einigen Tagen immer häufiger vor, dass unser yaVDR Ansible unter Ubuntu 18 zu stottern beginnt.

    Die letzte Silbe wird immer wieder wiederholt. Das dauert dann ein paar Sekunden dann fängt sichs wieder.


    Manchmal kann ich dann im syslog so was finden:

    Code
    ...
    Dec  2 22:43:23 localhost vdr: [15119] epg data writer thread started (pid=1958, tid=15119, prio=low)                                                                                                                       Dec  2 22:43:25 localhost vdr: video: speed up video, droping frame                                                                                                                                                         Dec  2 22:43:28 localhost vdr: video: 18:48:12.970 -265 1181   0/\ms 118+2+4 v-buf                                                                                                                                          Dec  2 22:43:28 localhost vdr: video: speed up video, droping frame                                                                                                                                                         Dec  2 22:43:28 localhost vdr: video/vdpau: missed frame (22/93795)                                                                                                                                                         Dec  2 22:43:28 localhost vdr: video: speed up video, droping frame                                                                                                                                                         Dec  2 22:43:28 localhost vdr: video: 18:48:13.090 -241 1341   0/\ms 126+2+2 v-buf                                                                                                                                          Dec  2 22:43:28 localhost vdr: video/vdpau: missed frame (23/93798)                                                                                                                                                         Dec  2 22:43:28 localhost vdr: video: speed up video, droping frame                                                                                                                                                         Dec  2 22:43:28 localhost vdr: video: 18:48:13.150 -214 1308   0/\ms 123+2+2 v-buf                                                                                                                                          Dec  2 22:43:28 localhost vdr: video: speed up video, droping frame                                                                                                                                                         Dec  2 22:43:28 localhost vdr: video: slow down video, duping frame                                                                                                                                                         Dec  2 22:43:28 localhost vdr: video: 18:48:13.650  +93 1501   0/\ms 116+4+4 v-buf                                                                                                                                          Dec  2 22:43:28 localhost vdr: [15119] epg data writer thread ended (pid=1958, tid=15119)                                                                                                                                   Dec  2 22:43:29 localhost vdr: video: slow down video, duping frame                                                                                                                                                         Dec  2 22:43:29 localhost vdr: video: speed up video, droping frame                                                                                                                                                         Dec  2 22:43:29 localhost vdr: video: 18:48:15.830  -36 1719   0/\ms 131+2+4 v-buf                                                                                                                                          Dec  2 22:43:29 localhost vdr: video: speed up video, droping frame                                                                                                                                                         Dec  2 22:43:29 localhost vdr: video: slow down video, duping frame                                                                                                                                                         Dec  2 22:43:29 localhost vdr: video: 18:48:16.850  +60 1723   0/\ms 129+4+4 v-buf
    
    ...
    
    Dec  2 23:04:09 localhost vdr: [softhddev] invalid PES video packet                                                                                                                                                         Dec  2 23:04:09 localhost vdr: audio/alsa: start delay 800ms                                                                                                                                                                Dec  2 23:04:10 localhost vdr: [softhddev] 12 invalid PES video packet(s)                                                                                                                                                   Dec  2 23:04:12 localhost vdr: video: decoder buffer empty, duping frame (11529/15) 4 v-buf                                                                                                                                 Dec  2 23:04:12 localhost vdr: video: slow down video, duping frame                                                                                                                                                         Dec  2 23:04:12 localhost vdr: video:  1:35:47.966 +111  820   0/\ms  62+4+4 v-buf                                                                                                                                          Dec  2 23:04:12 localhost vdr: video/vdpau: synced after 62 frames
    ...

    Hat jemand eine Idee woran das liegen könnte?

    Außer immer brav update & dist-upgrade habe ich nichts (wissentlich) gemacht ...

    MyVDR: yaVDR-Ansible (Ubuntu 20) - softhddevice-openglosd (ffmpeg 2.8) - epgd/epg2vdr - skindesigner estuary4vdr (adaptiert) - 1920x1080@50 Hz | kodi 18 - inputstream + amazon vod
    Aerocube M40 | 300W | ASRock H61M-GE | Intel G530 | Asus ENGT520 | 2 x TT-budget S2-3200 | ASRock Smart Remote (CIR) | 4 GB RAM | 120 GB SSD | 3 TB HDD

  • Nach langem Rumsuchen, habe ich den Tipp gelesen, man solle in pulseaudio die Echtzeitverarbeitung ausschalten.

    Da mir das dann doch zu heiß war, habe ich in der /etc/pulse/daemon.conf die Echtzeitpriorität hochgedreht:

    realtime-priority = 7 (statt bisher 5; max wäre 9)


    Seither gab es kein Tonstottern mehr - wir beobachten das weiter ...

    MyVDR: yaVDR-Ansible (Ubuntu 20) - softhddevice-openglosd (ffmpeg 2.8) - epgd/epg2vdr - skindesigner estuary4vdr (adaptiert) - 1920x1080@50 Hz | kodi 18 - inputstream + amazon vod
    Aerocube M40 | 300W | ASRock H61M-GE | Intel G530 | Asus ENGT520 | 2 x TT-budget S2-3200 | ASRock Smart Remote (CIR) | 4 GB RAM | 120 GB SSD | 3 TB HDD

  • Zu früh gefreut :(

    Das Stottern ist leider wieder zurück und schlimmer als vorher.


    Im syslog sehe ich zur Zeit des Stotterns (22:42:xx) einen Audio Buffer-Underrun:

    Code
    ...
    Jul 29 22:40:46 localhost vdr: video: 15:48:44.801  +42 4062   0/\ms 102+6+4 v-buf                                                                                                                                          Jul 29 22:41:45 localhost vdr: scraper2vdr: epgd busy, trying again in 60 seconds ...                                                                                                                                       Jul 29 22:41:46 localhost vdr: video: 15:49:44.801  +42 4063   0/\ms 101+6+4 v-buf                                                                                                                                          Jul 29 22:42:06 localhost epgd: 502 DVB pending, mergeepg done after 104.921 seconds                                                                                                                                        Jul 29 22:42:06 localhost epgd: Checking timers against actual epg and searchtimer settings                                                                                                                                 Jul 29 22:42:06 localhost epgd: Timers check done                                                                                                                                                                           Jul 29 22:42:06 localhost epgd: AUTOTIMER: Updating searchtimers due to 'events changed' (force)
    Jul 29 22:42:07 localhost epgd: AUTOTIMER: Update done after 885 ms, created (0) timers                                                                                                                                     Jul 29 22:42:07 localhost epgd: State now 'standby'                                                                                                                                                                         Jul 29 22:42:07 localhost vdr: [2428] SVDRP myVDR < 192.168.192.150:44510 client connection accepted                                                                                                                        Jul 29 22:42:07 localhost vdr: [2428] SVDRP myVDR > 192.168.192.150:44510 server created                                                                                                                                    Jul 29 22:42:07 localhost epgd: Send 'PLUG epg2vdr STATE standby' to '192.168.192.150:6419'                                                                                                                                 Jul 29 22:42:07 localhost vdr: epg2vdr: Got epgd state 'standby' (1)                                                                                                                                                        Jul 29 22:42:07 localhost vdr: epg2vdr: Change handler state to 'active'                                                                                                                                                    Jul 29 22:42:07 localhost vdr: [2428] SVDRP myVDR < 192.168.192.150:44510 lost connection to client                                                                                                                         Jul 29 22:42:07 localhost vdr: [2428] SVDRP myVDR < 192.168.192.150:44510 connection closed                                                                                                                                 Jul 29 22:42:07 localhost vdr: [2428] SVDRP myVDR < 192.168.192.150:44510 server destroyed                                                                                                                                  Jul 29 22:42:07 localhost vdr: epg2vdr: Updated changes since '29.07.2020 22:30:29'; 186 channels, 442 events (7 deletions) in 241 ms
    Jul 29 22:42:08 localhost vdr: [5979] epg data writer thread started (pid=1911, tid=5979, prio=low)                                                                                                                         Jul 29 22:42:12 localhost vdr: [2066] CAM 2: module ready                                                                                                                                                                   Jul 29 22:42:12 localhost vdr: audio/alsa: avail underrun error? 'Datenübergabe unterbrochen (broken pipe)'                                                                                                                 Jul 29 22:42:12 localhost vdr: [2066] DVBAPI: CaInfo: 1.1 sending CA info                                                                                                                                                   Jul 29 22:42:12 localhost vdr: [2066] CAM 2: system ids: FFFF                                                                                                                                                               Jul 29 22:42:12 localhost vdr: video: speed up video, droping frame                                                                                                                                                         Jul 29 22:42:12 localhost vdr: video: 15:50:09.061 -149 5866   0/\ms 151+6+1 v-buf                                                                                                                                          Jul 29 22:42:12 localhost vdr: video: speed up video, droping frame                                                                                                                                                         Jul 29 22:42:12 localhost vdr: video/vdpau: missed frame (3/622174)                                                                                                                                                         Jul 29 22:42:12 localhost vdr: video: speed up video, droping frame                                                                                                                                                         Jul 29 22:42:12 localhost vdr: video: 15:50:09.181  -91 5805   0/\ms 148+6+2 v-buf                                                                                                                                          Jul 29 22:42:12 localhost vdr: [5979] epg data writer thread ended (pid=1911, tid=5979)
    Jul 29 22:42:12 localhost vdr: video: 15:50:09.181  -91 5805   0/\ms 148+6+2 v-buf                                                                                                                                          Jul 29 22:42:12 localhost vdr: [5979] epg data writer thread ended (pid=1911, tid=5979)                                                                                                                                     Jul 29 22:42:32 localhost vdr: [1911] [softhddev]CreateOsd: left 0, top 0, level 0, using OpenGL OSD support                                                                                                                Jul 29 22:42:32 localhost vdr: [1911] [softhddev]cOglOsd osdLeft 0 osdTop 0 screenWidth 1920 screenHeight 1080                                                                                                              Jul 29 22:42:32 localhost vdr: epg2vdr: Answer 'Epg2Vdr_Timer_Service-v1.0' call with 0 timers, duration was (0 ms)                                                                                                         Jul 29 22:42:32 localhost irexec[865]: KEY_OK                                                                                                                                                                               Jul 29 22:42:32 localhost vdr: [6033] animator thread thread started (pid=1911, tid=6033, prio=high)                                                                                                                        Jul 29 22:42:33 localhost vdr: [6033] animator thread thread ended (pid=1911, tid=6033)
    ...


    Ich persönlich habe epgd bzw. mariaDB im Verdacht und denke mir, dass die DB-Zugriffe die CPU (kurzfristig) so stark auslasten, dass pulseaudio für 1-2 Sekunden nicht mehr richtig arbeiten kann und stottert.


    Audiobuffergröße ist im Softhddevice auf 600 ms gestellt (vorher 999 - brachte aber auch nichts).

    realtime-priority in /etc/pulse/daemon.conf steht immer noch auf 7.


    Habt ihr bitte noch irgendwelche Ideen wo ich ansetzen könnte?

    Oder hatte gar jemand schon mal das gleiche Problem und eine Lösung?


    Vielen Dank schon jetzt für eure Unterstützung!

    MyVDR: yaVDR-Ansible (Ubuntu 20) - softhddevice-openglosd (ffmpeg 2.8) - epgd/epg2vdr - skindesigner estuary4vdr (adaptiert) - 1920x1080@50 Hz | kodi 18 - inputstream + amazon vod
    Aerocube M40 | 300W | ASRock H61M-GE | Intel G530 | Asus ENGT520 | 2 x TT-budget S2-3200 | ASRock Smart Remote (CIR) | 4 GB RAM | 120 GB SSD | 3 TB HDD

  • Hast Du denn mal epgd und mariadb deaktiviert um zu sehen, ob es daran liegt?

    Blog


    VDR1 (Server): Gigabyte Z87-HD3, Intel(R) Core(TM) i7-4770S CPU @ 3.10GHz, 16GB RAM, NVIDIA GT 640 (Zotac), Digital Devices Cine V7, OrigenAE S21T, yavdr ansible an Röhre mit vga2scart

    VDR2 (Client): AsRock ION 330, yavdr-ansible auf Ubuntu 18.04 an Panasonic Beamer (HDMI)

  • Hmmm ... eigentlich nicht. :wand


    Einfach die beiden Services mit sudo service epgd stop und sudo service mariadb stop stoppen?

    Dann sind die aber beim nächsten Restart wieder aktiv, oder?

    Geht das auch "temporär dauerhaft"?

    MyVDR: yaVDR-Ansible (Ubuntu 20) - softhddevice-openglosd (ffmpeg 2.8) - epgd/epg2vdr - skindesigner estuary4vdr (adaptiert) - 1920x1080@50 Hz | kodi 18 - inputstream + amazon vod
    Aerocube M40 | 300W | ASRock H61M-GE | Intel G530 | Asus ENGT520 | 2 x TT-budget S2-3200 | ASRock Smart Remote (CIR) | 4 GB RAM | 120 GB SSD | 3 TB HDD

  • systemctl disable .... geht eigentlich auch ganz gut :)

  • Huiuiui ... war heute wohl doch ZU heiss für mich.

    Danke für die Erinnerung!


    Werde mal Abwarten bis es wieder stottert und dann mal disablen und beobachten.

    MyVDR: yaVDR-Ansible (Ubuntu 20) - softhddevice-openglosd (ffmpeg 2.8) - epgd/epg2vdr - skindesigner estuary4vdr (adaptiert) - 1920x1080@50 Hz | kodi 18 - inputstream + amazon vod
    Aerocube M40 | 300W | ASRock H61M-GE | Intel G530 | Asus ENGT520 | 2 x TT-budget S2-3200 | ASRock Smart Remote (CIR) | 4 GB RAM | 120 GB SSD | 3 TB HDD

  • Ich glaube, das Problem ist wohl ein anderes:

    snd_pcm_avail() gibt einen Wert zurück, der außerordentlich groß ist: 631136 bytes (3287 ms)


    Das Stottern war um ca. 12:02 Uhr - hier der entsprechende Logauszug:

    Auszug aus /var/log/syslog


    Hab schon einiges dazu gefunden, aber leider nichts, was irgendwie weitergeholfen hat.

    Habt ihr noch eine Idee, was da los sein könnte?


    Update:

    Ich hatte wohl dem mysqld (mariadb) zuviel RAM erlaubt und das jetzt beschränkt.

    Seit dem ist kein Stottern mehr aufgetreten - ich beobachte das weiter ...

    MyVDR: yaVDR-Ansible (Ubuntu 20) - softhddevice-openglosd (ffmpeg 2.8) - epgd/epg2vdr - skindesigner estuary4vdr (adaptiert) - 1920x1080@50 Hz | kodi 18 - inputstream + amazon vod
    Aerocube M40 | 300W | ASRock H61M-GE | Intel G530 | Asus ENGT520 | 2 x TT-budget S2-3200 | ASRock Smart Remote (CIR) | 4 GB RAM | 120 GB SSD | 3 TB HDD

    2 Mal editiert, zuletzt von davie2000 ()

Jetzt mitmachen!

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