Radio-Aufnahmen mit VDR-2.8.1

  • Hallo,

    VDR-2.8.1 von MLD-6.5 über DVB-C kann Radio-Aufnamen nur bedingt wiedergeben, sowohl eigene als auch solche von VDR-2.6.1 MLD-5.5U.

    Der Effekt ist immer derselbe: Die Wiedergabe startet bei 00:00, der Ton ist da, aber Springen ist nicht möglich, oder besser, nur ein einziges mal. Beim zweiten Sprung vorwärts springt VDR an den Anfang zurück. An das Ende (9) lässt sich springen, aber von dort zurück auch nicht mehr, Schneiden ist nicht möglich. Das OSD (LCARS) zeigt beim Abspielen immer 00:00:00, bzw. die gesamte Laufzeit.
    Ich habe auch schon versucht, die index-Datei zu regenerieren, doch das bringt auch keine Änderung des Verhaltens.

    Jetzt frage ich mich, ist das ein Patch der MLD-6.5 oder ist das Verhalten von 2.8.1 derzeit eben so.

    Schöne Grüße
    BobW (Michael)

    VDR1: MLD 5.5 auf at5iont-i als Server für DVB-S2
    VDR2: MLD 6.5 für DVB-C
    VDR3: VDR*ELEC auf Odroid-n2plus mit lokalem devel-image

  • Ich kann das bei mir auch mit Radio-Aufnahmen über SAT und VDR 2.8.1 mit softhddevice 2.4.8 reproduzieren.
    Ich habe dann noch anstatt softhddevice das neue vaapivideo als Ausgabe-Frontend getestet und da tritt das Problem nicht auf.
    Mit vaapivideo (bei MLD 6.5 aktuell Version 1.5.5) kann ich bei einer Radio-Aufnahme auch Springen sowie Schnittmarken setzen und diese bearbeiten.
    Das Problem liegt also vermutlich bei softhddevice.

    Mehrere HD-VDRs mit MLD z.B.:

    VDR-Server - ITX-MB mit N100 und CineS2+DuoFlexS2 mit MLD 6.5

    Intel-VDR H110 ITX-MB mit i3-7300 (UHD630) mit CineS2 - MLD 6.5

    Intel-VDR J5040 ITX-MB (UHD605) mit CineS2 - MLD 6.5

    Intel-VDR Asus N4020 MiniPC (UHD600) SatIP Client - MLD 6.5

    nVidia-VDR Asrock J4025 mATX-MB mit nVidia GT1030 und CineS2 - MLD 6.5

    Raspberry PI 3 und 4 als Streamdev bzw. SatIP Clients mit MLD 6.5

    + weitere MLD 6.5 Test-Systeme mit Intel CPUs der CoreI Generationen 3 bis 11 ...

  • habt Ihr das Radio-Plugin aktiv, und wenn ja mit Pes- oder Stillpicture-Funktion?

    Die Ausgabedevices reagieren z.T. empfindlich auf Audio-only. Mit softhdodroid kann ich unter vdr-2.8.1 Radioaufnahmen auch ohne radio-Plugin abspielen. Und auch Spulen und Springen ist möglich. Wir haben da aber schon vor längerer Zeit die Funktion GetSTC so angepasst, dass bei fehlenden Videodaten die PTS nicht vom Video, sondern vom Audio abgefragt wird.

    Das macht softhddevice z.B. nicht:

    Code
    int64_t GetSTC(void)
    {
       if (MyVideoStream->HwDecoder) {
        return VideoGetClock(MyVideoStream->HwDecoder);
       }
       // could happen during dettached
       Debug(3,"softhddev: %s called without hw decoder\n", __FUNCTION__);
       return AV_NOPTS_VALUE;
    }

    Bei dem Plugin von rell gibt es einen guten Ansatz

    der aber m.E. in der Praxis bei Radioaufnahmen wirkungslos bleibt, denn vdr spielt diese m.E. mit dem normalen Playmode pmAudioVideo ab. Spezielle Playmodes wie

    pmAudioOnly,      // audio only from player, video from decoder

    waren für Plugins wie mp3 gedacht.

    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

  • der aber m.E. in der Praxis bei Radioaufnahmen wirkungslos bleibt, denn vdr spielt diese m.E. mit dem normalen Playmode pmAudioVideo ab. Spezielle Playmodes wie

    pmAudioOnly,      // audio only from player, video from decoder

    waren für Plugins wie mp3 gedacht.

    NONE, AUDIO_AND_VIDEO, VIDEO_ONLY und AUDIO_ONLY werden durch das Plugin gesetzt und haben erstmal nichts mit dem playmode von VDR zu tun.

    Die Logik dahinter ist: Sobald PlayVideo() aufgerufen wurde, werden Video-Daten erkannt und bei PlayAudio() eben Audio. Dadurch ergeben sich dann die o.g. Modi.
    Bei Radio sollte der VDR nur PlayAudio() aufrufen, weshalb im Ergebnis dann AUDIO_ONLY gesetzt wird.

    Edit: Bzw. genauer gesagt, die o.g. (internen) Modi hängen davon ab, ob seit Streamstart jeweils ein Video- und/oder Audio-PTS aufgetreten ist.

  • was ist, wenn zuerst PlayAudio vom vdr kommt und danach PlayVideo? Wird dann kurzzeitig die Audio-PTS genommen, oder gibt es eine Wartezeit mit Erkennung im Sinne von "wenn bis jetzt kein PlayVideo kam, dann kommt es auch nicht mehr und es muss audio_only sein"?

    Früher bei mpeg2 konnte man sich glaube ich darauf verlassen, dass es radio ist, wenn das erste Paket ein Audiopaket war. Aber das ist heute ja nicht mehr so.

    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

  • was ist, wenn zuerst PlayAudio vom vdr kommt und danach PlayVideo?

    Das spielt keine Rolle, da der interne PlaybackMode erst gesetzt wird, wenn Audio- und Video synchronisiert werden kann bzw. wenn innerhalb des Threshold (450ms) nur Video oder Audio über PlayVideo()/PlayAudio() gesendet wurden und damit der Stream als audio- oder video-only erkannt wird. Diese 450ms hat man quasi Zeit zu entscheiden, ob der Stream audio und/oder video hat. Dafür muss man voraussetzen können, dass von VDR im Regelfall innerhalb dieser Zeit bei Audio+Video für beide Arten via Play*() ein PES Paket kommt.

    Hier ist die Logik dahinter: https://github.com/rellla/vdr-plu…evice.cpp#L1353

  • Für softhddevice gibt es eine einfache Lösung analog zu #4

    Übrigens funktioniert bei mir die Fortschrittssanzeige bei Radioaufnahmen auch in vaapivideo nicht

    vdr-2.8.2

    softhddevice, vaapivideo, dbus2vdr, dvd, epgsearch, femon, graphtftng, web, menuorg,
    osdteletext, radio, recsearch, satip, tvguide, vnsiserver
    ubuntu focal, yavdr-ansible, linux-7.0.0, AsRock J4105, CIne CT-V7 DVB-C

  • Schaue ich mir Mal an.

    System 1: Hardware : MSI PRO B760M-B, Intel Core i3-13100, DVBSky S952 V3, 1x 2TB NVMe, Gehäuse Antec Remote Fusion Black, 16 GB DDR4 RAM.
    Software : Fedora 44, vdr 2.8.2, vaapivideo 1.8.2, Kernel 7.1.8
    System 2: Hardware : Intel NUC10i5FNK, Intel Core i5-10210U (Comet Lake), DVB TechnoTrend TT-connect S2-4600 USB, 1x 1TB NVMe, 32 GB DDR4 RAM.
    Software : Fedora 44, vdr 2.8.2, vaapivideo 1.8.2, Kernel 7.1.8

  • Ich hole mal lnj dazu, damit er das übernehmen kann. Und auch zorkkann vielleicht etwas ähnliches einbauen

    vaapivideo ist gefixt.

    System 1: Hardware : MSI PRO B760M-B, Intel Core i3-13100, DVBSky S952 V3, 1x 2TB NVMe, Gehäuse Antec Remote Fusion Black, 16 GB DDR4 RAM.
    Software : Fedora 44, vdr 2.8.2, vaapivideo 1.8.2, Kernel 7.1.8
    System 2: Hardware : Intel NUC10i5FNK, Intel Core i5-10210U (Comet Lake), DVB TechnoTrend TT-connect S2-4600 USB, 1x 1TB NVMe, 32 GB DDR4 RAM.
    Software : Fedora 44, vdr 2.8.2, vaapivideo 1.8.2, Kernel 7.1.8

  • Has anyone tested radio playback with these updates?

    I recorded a minute and a half of DVD-T radio.
    Yes, the radio recording plays. But with softhddevice about half a minute before the end, the progress bar stops and doesn't go to the end. Once the sound is finished, digital noise comes from the buffer, and playback doesn't stop until I press the stop button. I have the same problem with vaapivideo: although the progress bar shows correctly, playback doesn't stop until I press stop.

    The plugin-radio was disabled.

    How does this happen with softhdodroid?

    I need to understand whether this is a problem with the output plugin or with the VDR core.

  • Has anyone tested radio playback with these updates?

    I recorded a minute and a half of DVD-T radio.
    Yes, the radio recording plays. But with softhddevice about half a minute before the end, the progress bar stops and doesn't go to the end. Once the sound is finished, digital noise comes from the buffer, and playback doesn't stop until I press the stop button. I have the same problem with vaapivideo: although the progress bar shows correctly, playback doesn't stop until I press stop.

    You are right! VDR decides a recording is finished when the playback clock stops moving, but for radio vaapivideo kept re-decoding the last frame VDR repeats at EOF, so the audio clock never went quiet. my fix: on replay, vaapivideo now recognises that repeated tail packet and drops it, so the clock stalls and VDR stops the recording by itself.

    Here is my commit message: github - vaapivideo

    System 1: Hardware : MSI PRO B760M-B, Intel Core i3-13100, DVBSky S952 V3, 1x 2TB NVMe, Gehäuse Antec Remote Fusion Black, 16 GB DDR4 RAM.
    Software : Fedora 44, vdr 2.8.2, vaapivideo 1.8.2, Kernel 7.1.8
    System 2: Hardware : Intel NUC10i5FNK, Intel Core i5-10210U (Comet Lake), DVB TechnoTrend TT-connect S2-4600 USB, 1x 1TB NVMe, 32 GB DDR4 RAM.
    Software : Fedora 44, vdr 2.8.2, vaapivideo 1.8.2, Kernel 7.1.8

  • Has anyone tested radio playback with these updates?

    I recorded a minute and a half of DVD-T radio.
    Yes, the radio recording plays. But with softhddevice about half a minute before the end, the progress bar stops and doesn't go to the end. Once the sound is finished, digital noise comes from the buffer, and playback doesn't stop until I press the stop button. I have the same problem with vaapivideo: although the progress bar shows correctly, playback doesn't stop until I press stop.

    The plugin-radio was disabled.

    How does this happen with softhdodroid?

    same behavior :(

    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

  • Ist zu lösen, einfach bei mir abgucken. Offensichtlich nutzt kein Mensch Radioaufnahmen, wenn das seit 15 Jahren keiner reportet hat.

    System 1: Hardware : MSI PRO B760M-B, Intel Core i3-13100, DVBSky S952 V3, 1x 2TB NVMe, Gehäuse Antec Remote Fusion Black, 16 GB DDR4 RAM.
    Software : Fedora 44, vdr 2.8.2, vaapivideo 1.8.2, Kernel 7.1.8
    System 2: Hardware : Intel NUC10i5FNK, Intel Core i5-10210U (Comet Lake), DVB TechnoTrend TT-connect S2-4600 USB, 1x 1TB NVMe, 32 GB DDR4 RAM.
    Software : Fedora 44, vdr 2.8.2, vaapivideo 1.8.2, Kernel 7.1.8

Participate now!

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