[1] 2 >>> MLD-5.x / Systems / Raspberry PI / kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
 

Offline sturmmoewe

  • Newbie
  • *
  • Posts: 7
    • View Profile
Hi Leute

Ich versuche auf einem RPi4 die MLD 5.5 Testing zusammen mit Telekom Magenta-TV (IPTV) an meinem DSL Anschluss zum Laufen zu bringen.
Wer hat mit dieser Kombination schon Erfahrungen gesammelt? Bei mir ist selbst mit SD Kanälen kein flüssigen Bild zu erreichen. Bei HD sieht es noch schlechter aus.
Bei SD gibt es für ca 2 Sekunden ein Bewegtbild, dann stockt es für ca. 5-10 Sekunden und wiederholt sich danach. Die CPU Last liegt bei ca. 85-95%. Das meiste geht dabei auf den vlc Prozess zur Konvertierung des IPTV.

Im /var/log/vdr sehe ich dabei nach einem Restart des VDR folgendes:
Code: [Select]
VDR exits at Mi Dez  8 18:23:41 CET 2021
Home directory not accessible: Permission denied
[02429370] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[024381f8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[024381f8] main interface error: no suitable interface module
[023cbf68] main libvlc error: interface "dbus,none" initialization failed
[0244f890] main interface error: no suitable interface module
[023cbf68] main libvlc error: interface "globalhotkeys,none" initialization failed
[0244f890] dummy interface: using the dummy interface module...
[b3202e58] main decoder error: buffer deadlock prevented
[afb014e8] x264 encoder: using cpu capabilities: ARMv6 NEON

[afb014e8] x264 encoder: profile High, level 3.0

[afb014e8] x264 encoder: final ratefactor: 17.33

[h264 @ 0xafb59580] mmco: unref short failure
[h264 @ 0xafb59580] mmco: unref short failure
[h264 @ 0xafb59580] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[afb014e8] x264 encoder: using SAR=16/11

[afb014e8] x264 encoder: using cpu capabilities: ARMv6 NEON

[afb014e8] x264 encoder: profile High, level 3.0

[h264 @ 0xafb40dc0] mmco: unref short failure
[h264 @ 0xafb40dc0] mmco: unref short failure
[h264 @ 0xafb71d00] mmco: unref short failure
[h264 @ 0xafb71d00] mmco: unref short failure
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty
AlsaPlayer: ring buffer empty

Ist der Rpi4 mit Softhddevice eventuell zu schwach, dass IPTV flüssig anzeigen zu können? Oder welche Tricks gibt es eventuell noch zum Ausprobieren?

Viele Grüße
Ulf

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #1 on: December 08, 2021, 19:10:29 »
Hi,

Welcome :)

I think pulseaudio package for RPI4 is broken,
I had to repack pulseaudio debian package to make it work.

Have you tried alsa instead?

I dunno about libvlc error, you have vlc installed?

Best Regards
« Last Edit: December 08, 2021, 19:13:04 by gr4vity »

Offline sturmmoewe

  • Newbie
  • *
  • Posts: 7
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #2 on: December 08, 2021, 19:48:29 »
Hi gr4vity

Thanks for your warm welcome and your quick reply.

Yes, vlc is installed. Searching for the given packages shows
Code: [Select]
MLD> dpkg -l |grep -i vlc
ii  libvlc5                         3.0.12-~1                    armhf        multimedia player and streamer library
ii  libvlccore9                     3.0.12-~1                    armhf        base library for VLC and its modules
ii  vlc                             3.0.12-18                    armhf        VLC Media Player ist ein Wiedergabe-Programm für Multimedia-Inhalte. Es werden DVDs, Video-CDs, MP3s, MOV- und FLV-Dateien oder DivX unterstützt.
MLD> dpkg -l |grep -i pulse
ii  libp8-platform2                 2.1.0.1-~1                   armhf        Pulse-Eight's platform support library
ii  libpulse0                       12.2-~3                      armhf        PulseAudio client libraries
MLD> dpkg -l |grep -i alsa
ii  alsa:armhf-rpi4                 1.1.8-46.2+5.12.6            armhf-rpi4   Soundkarten-Treiber
ii  libasound2                      1.1.8-~1                     armhf        shared library for ALSA applications

How do I switch from PulseAudio to Alsa (using the MLD web config)? Within the MLD sound configuration I can't see any selection for Alsa or PulseAudio. Can you please point me to the right config steps to give it a try? Thanks.

Regards
Ulf

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #3 on: December 08, 2021, 20:05:18 »
Hello sturmmoewe,

From command line, do as follows:
apt update
apt remove pulseaudio
apt install alsa

Then see if it works, if not then you can wait for Claus to fix pulseaudio package.

Best Regards.

Offline sturmmoewe

  • Newbie
  • *
  • Posts: 7
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #4 on: December 08, 2021, 20:11:48 »
Gr4vity,

Thanks again. PulseAudio is not installed, only libpulse0. And on the other side Alsa is already installed.
Code: [Select]
MLD> apt update
Get:1 http://www.minidvblinux.de/download/5.5/files testing InRelease [2.425 B]
Fetched 2.425 B in 1s (2.693 B/s)   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
MLD> apt remove pulseaudio
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'pulseaudio:armhf-rpi4' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
MLD> apt install alsa
Reading package lists... Done
Building dependency tree       
Reading state information... Done
alsa:armhf-rpi4 is already the newest version (1.1.8-46.2+5.12.6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So the recommended remove and install commands have no effect.
If I try to remove libpulse0 I get the following dependencies that will also be removed. And this seems not ok for me, so I didn't try it.  ;)
Code: [Select]
MLD> apt remove libpulse0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  liba52-0.7.4 libaa1 libaom0 libaribb24-0 libass9 libasyncns0 libavahi-client3 libavahi-common3 libavc1394-0 libavcodec58 libavformat58 libavutil56 libbasicusageenvironment1 libbluray2 libcaca0 libcddb2 libchromaprint1
  libcodec2-0.8.1 libcroco3 libcups2 libdc1394-22 libdca0 libdouble-conversion1 libdvbpsi10 libdvdnav4 libdvdread4 libebml4v5 libfaad2 libflac8 libgme0 libgomp1 libgpm2 libgroupsock8 libgsm1 libixml10 libjbig0 libkate1
  liblcms2-2 libldb1 liblivemedia64 liblua5.2-0 libmad0 libmatroska6v5 libmp3lame0 libmpcdec6 libmpeg2-4 libmtp9 libmysofa0 libnfs12 libogg0 libopenmpt-modplug1 libopenmpt0 libopus0 libpcre2-16-0 libplacebo7 libpostproc55
  libprotobuf-lite17 libqt5core5a libqt5gui5 libqt5svg5 libqt5widgets5 libqt5x11extras5 libraw1394-11 libresid-builder0c2a librsvg2-2 libsamplerate0 libshine3 libshout3 libsidplay2 libslang2 libsmbclient libsndfile1
  libsndio7.0 libsoxr0 libspatialaudio0 libspeex1 libspeexdsp1 libssh-gcrypt-4 libswresample3 libswscale5 libtag1v5-vanilla libtalloc2 libtdb1 libtevent0 libtheora0 libtiff5 libtwolame0 libupnp13 libusageenvironment3
  libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvlc5 libvlccore9 libvorbis0a libvorbisenc2 libvorbisfile3 libvpx5 libvulkan1 libwavpack1 libwbclient0 libwebpmux3 libwrap0 libx264-155 libxcb-keysyms1 libxcb-randr0
  libxcb-xv0 libxvidcore4 libzvbi0 samba-libs
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libpulse0 libsdl-image1.2 libsdl1.2debian vdr-plugin-iptv vlc
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 14,7 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20456
    • View Profile
    • ClausMuus.de
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #5 on: December 08, 2021, 20:19:56 »
Wir benutzen bei der MLD kein Pulsaudio. Da dran kann es also nicht liegen.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #6 on: December 08, 2021, 20:31:22 »
Hi sturmmoewe,

According to the following line, i see that your system is trying to use pulseaudio.
vlcpulse audio output error: PulseAudio server connection failure: Connection refused.

After reading your 1st post again.
This scenario is strange to me.
You use vlc to convert iptv channels then use Softhddevice to watch it?

It's not possible to use kodi simple iptv client instead?
I don't have much experience with vdr iptv plugins though.

It should be some other direct way to watch iptv channels without using 90% CPU consumption.
That will surely cause your problem.

Best Regards.
« Last Edit: December 08, 2021, 20:36:19 by gr4vity »

Offline sturmmoewe

  • Newbie
  • *
  • Posts: 7
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #7 on: December 08, 2021, 20:35:47 »
Hi gr4vity

Quote
You use vlc to convert iptv channels then use Softhddevice to watch it?

Not intentionally. I just installed the MLD 5.5 Testing for rpi4 with the selection IPTV and EPGdata and the rest was a "default" installation from MLD. I did not select to install Kodi. Maybe this cloud be the error?

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #8 on: December 08, 2021, 20:43:47 »
Hi sturmmoewe,

Well, i'm really sorry i have never tested MLD IPTV installation.
I dunno which vdr plugin plugin you are using.
However, vlc should not be involved in such scenario.
Please wait for someone else who have experience with IPTV MLD installation.

Kodi simple iptv client is another option if you want to try it later.

Best Regards.

Offline sturmmoewe

  • Newbie
  • *
  • Posts: 7
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #9 on: December 08, 2021, 20:45:57 »
Hi gr4vity

Thanks for your support. At the moment I started another MLD installation where I also install kodi.
We'll see.  ;)

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #10 on: December 11, 2021, 17:16:49 »
Hi sturmmoewe,

I noticed that you haven't posted any feedback,
According to this thread by mldnonexpert, Kodi doesn't work either.
https://www.minidvblinux.de/forum/index.php?topic=10274.msg81702#msg81702
You said we'll see but apparently you didn't see anything ... right?  :D

Best Regards.

Offline sturmmoewe

  • Newbie
  • *
  • Posts: 7
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #11 on: December 13, 2021, 18:05:35 »
Hi gr4vity

Sorry for coming back so late due to lack of testing time caused by my job  8)

I tried setting up MLD 5.5 Testing with Kodi and also tried gstreamer instead of softhddevice.
But with no combination I got any working environment. All I got was a blank X screen with no application at all. Kodi did not work neither using softhddevice nor gstreamer and VDR also didn't come up when choosing gstreamer instead of softhddevice at installation. On the rpi4 I only the combination VDR with softhddevice at install works (with the discussed problems).
So I'm still searching for other other test cases to try out with MLD and rpi4 ro get Magenta IPTV working.
Or maybe the rpi4 really lacks resources for my special usecase.

Best Regards,

Offline BobW

  • Expert Member
  • *****
  • Posts: 652
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #12 on: December 13, 2021, 20:20:00 »
Hi sturmmoewe,

some 5 years ago I set up an IPTV-VDR using A1-Telekom's IPTV services (Austria). Contrary to the channels.conf offered by MLD I found that no ffmpeg was required and no additional scripts werde needed. Just vdr-plugin-iptv and a fitting channels.conf. Here is an example:
Code: [Select]
:-> IPTV ARD-ZDF HD
Das Erste HD;IPTV:110:S=0|P=0|F=UDP|U=239.35.10.1|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:10301:1:10301:0
ZDF HD;IPTV:120:S=0|P=0|F=UDP|U=239.35.10.2|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:11110:1:11110:0
zdf_neo HD;IPTV:1550:S=0|P=0|F=UDP|U=239.35.10.55|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:11130:1:11130:0
arte HD;IPTV:130:S=0|P=0|F=UDP|U=239.35.10.3|A=10000:I:0:256=27:257=deu@3,258=fra@3:259:0:10302:1:10302:0
3sat HD;IPTV:1470:S=0|P=0|F=UDP|U=239.35.10.47|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:11150:1:11150:0
KiKA HD;IPTV:1110:S=0|P=0|F=UDP|U=239.35.10.11|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:11160:1:11160:0
ZDFinfo HD;IPTV:1560:S=0|P=0|F=UDP|U=239.35.10.56|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:11170:1:11170:0
zdf.kultur HD;IPTV:1540:S=0|P=0|F=UDP|U=239.35.10.54|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:11140:1:11140:0
SWR BW HD;IPTV:1510:S=0|P=0|F=UDP|U=239.35.10.51|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:10303:1:10303:0
SWR RP HD;IPTV:1520:S=0|P=0|F=UDP|U=239.35.10.52|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:10304:1:10304:0
BR Süd HD;IPTV:1490:S=0|P=0|F=UDP|U=239.35.10.49|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:10325:1:10325:0
NDR FS NDS HD;IPTV:1500:S=0|P=0|F=UDP|U=239.35.10.50|A=10000:I:0:256=27:257=deu@3:259:0:10327:1:10327:0
WDR HD Köln;IPTV:1530:S=0|P=0|F=UDP|U=239.35.10.53|A=10000:I:0:256=27:257=deu@3:259:0:28111:1:28111:0
PHOENIX HD;IPTV:1480:S=0|P=0|F=UDP|U=239.35.10.48|A=10000:I:0:256=27:257=deu@3;258=AC3@106:259:0:10331:1:10331:0

The addresses needed I got from the Internet. The parameters for the channel entries were/are listed in the documentations.
In my case the only caveat was the missing EPG, none at all. That could be remedied with an external source.
This machine was running for more than a year without any problems

Maybe this can help you getting on with your project.

Kind regards
BobW

Offline gr4vity

  • Expert Member
  • *****
  • Posts: 604
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #13 on: December 13, 2021, 20:35:48 »
Hi sturmmoewe,
Thanks for the feedback,
I think you don't need to install a lot of combinations to make it work  :)
You only need Kodi with PVR IPTV simple client enabled.




As you can see in screenshot, you only need m3u playlist to make it work.

You can do the same thing with VLC.
The problem is you need to have hardware acceleration enabled to lower the CPU consumption.

I asked Claus to build Kodi with hardware acceleration but he didn't reply yet.

I have no idea if it's enabled in VLC or not.

Softhddevice will not work by itself, you need to enable an IPTV plugin to make it work.

Best Regards.
« Last Edit: December 13, 2021, 20:38:45 by gr4vity »

Offline sturmmoewe

  • Newbie
  • *
  • Posts: 7
    • View Profile
kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
« Reply #14 on: December 30, 2021, 18:24:01 »
Frohe Weihnachten nachträglich an alle.

Es gibt positive Neuigkeiten. Die Ruckler beim IPTV kommen durch die dazwischengeschaltete vlc2iptv Instanz. Wenn die IPTV Kanalliste per .m3u in eine channlens.conf konvertiert wird, sieht beispielsweise der Eintrag für "Das Erste HD" wie folgt aus:
Code: [Select]
(1) Das Erste HD;IPTV|T-Entertain_M3U:1:S=0|P=0|F=EXT|U=vlc2iptv|A=1:I:0:256=27:257=deu@4;258=AC3@106:2321:0:28106:0:0:0
Die .m3u Datei enthält die diesen Sender den Eintrag:
Code: [Select]
#EXTINF:-1,(1) Das Erste HD
rtp://87.141.215.251@232.0.20.35:10000

In einem älteren Backup habe ich eine Version einer (auf einem andere VDR System) in der Vergangenheit funktionierenden IPTV channels.conf gefunden. Dort sieht die Zeile für "Das Erste HD" dagegen wie folgt aus:
Code: [Select]
Das Erste HD;IPTV:23500:S=1|P=0|F=UDP|U=87.141.215.251@232.0.20.35|A=10000:I:0:256=27:258=deu@3;257=deu@106:259:1A:10301:1:10301:0
Hier wird kein vlc2iptv dazwischengeschaltet. Dieser Stream läuft auch auf dem RPi4 flüssig. Allerdings ist diese ältere channels.conf so alt, dass nicht mehr alle Streams gültig sind. Ich suche jetzt einen Weg, aus der (von der Fritzbox) ladbaren .m3u Senderliste eine funktionierende channels.conf ohne das vlc2iptv erzeugen zu können.
Falls hier jemand von euch Tipps hat freue ich mich.

Euch allen einen guten Rutsch.


[1] 2 >>> MLD-5.x / Systems / Raspberry PI / kein flüssiges Bild bei MLD 5.5 Testing rpi4 und Magenta-TV (IPTV)
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.