MLD-5.x > Raspberry PI

[MLD-5.5 testing] RPI4 frame drop and audio stuttering

(1/4) > >>

chaseadam:
tldr; Live TV displays, heavy frame dropping and occasional blanks. Audio from headphones is "low" (e.g. playing slow) and crackly and only out of one channel.

Excited to have just discovered VDR and then this project shortly after. Originally I thought it was rpi3 only (because stable does not include rpi4 yet). I got everything set up on rpi3 just to realize I need the mpeg2 license to play my ATSC (United States) channels. Shortly after I looked at the testing channel and saw a rpi4 option and happy to help with the testing process!

Burned and installed (only VDR) from SD card: `dd if=MLD-5.5_netinstall_2021.09.25-182.2+1617_armhf-rpi4.img bs=1M of=/dev/sdi`

Ran w_scan to generate the channels file in /etc/vdr/channels/ (thanks for including w-scan in in the package repository)

I had to switch sound settings to get vdr to start due to an error (because my monitor doesn't offer an audio channel?)

```
AlsaOpenPCM: playback open 'plug:iec958' error: No such file or directory
```

Live TV displays now, but heavy frame dropping and occasional blanks. Audio from headphones is "low" (e.g. playing slow) and crackly and only out of one channel.
From my previous experience, my hypothesis is there is an audio issue causing this behavior. Any debugging guidance is appreciated.
 
Possibly useful information: Recordings in `/data/tv/` are good and play without issue with VLC on desktop. Download speeds were not great (6-8MB/sec) but may be SD card limited?

MLD> uptime
 16:52:40 up 28 min,  load average: 4.63, 3.85, 2.94

I have heat sinks and a fan
MLD> vcgencmd measure_temp
temp=48.2'C

MLD> free
             total       used       free     shared    buffers     cached
Mem:       1666912    1587268      79644        588       2076    1297956
-/+ buffers/cache:     287236    1379676
Swap:            0          0          0
MLD> tvservice -s
state 0x120009 [HDMI CEA (16) RGB lim 4:3], 1920x1080 @ 60.00Hz, progressive

gr4vity:
Hi,

Welcome to the forum  :)
Which DVB stick, power adapter you're using?
Are you able to use satip and see if you still experience the same issue?

Best Regards.

chaseadam:
Thanks for the warm welcome!

Tuner card is WinTV-HVR-950Q USB based (tried plugged into USB3 and USB2 ports).

[   65.376483] au0828: Enabled Source: Xceive XC5000->Auvitek AU8522 QAM/8VSB Frontend->Auvitek AU8522 QAM/8VSB Frontend Ret 0
[   68.494484] xc5000: Firmware dvb-fe-xc5000-1.6.114.fw loaded and running.
[   68.495792] au0828: Disabled Source: Xceive XC5000->Auvitek AU8522 QAM/8VSB Frontend->Auvitek AU8522 QAM/8VSB Frontend Ret 0

Using rpi official OEM adapter (and there is solid red light)

Installed satip plugin with `apt install vdr-plugin-satip` but didn't see anything pop up on the network. Any other steps needed?

After install I rebooted and got smooth playback and normal audio output but only from one channel.  This is not reliably reproducible, but happened more than once.

When it was smooth/working, I changed channels (one up and back) and no video plays with the following in /var/log/messages (last one repeated a large number of times:

```
Nov 17 18:41:49 MLD-rpi4 user.err vdr: audio/alsa: set params error: File descriptor in bad state
Nov 17 18:41:50 MLD-rpi4 user.err vdr: audio: snd_pcm_drop(): Input/output error
Nov 17 18:41:50 MLD-rpi4 user.err vdr: audio: snd_pcm_prepare(): Input/output error
Nov 17 18:41:52 MLD-rpi4 user.err vdr: audio: snd_pcm_drop(): Input/output error
Nov 17 18:41:52 MLD-rpi4 user.err vdr: audio: snd_pcm_prepare(): Input/output error
Nov 17 18:41:52 MLD-rpi4 user.err vdr: audio/alsa: set params error: File descriptor in bad state
Nov 17 18:41:53 MLD-rpi4 user.err vdr: audio/alsa: snd_pcm_avail_update(): Input/output error
Nov 17 18:41:53 MLD-rpi4 user.err vdr: audio/alsa: snd_pcm_avail_update(): Input/output error
Nov 17 18:41:53 MLD-rpi4 user.err vdr: audio/alsa: snd_pcm_avail_update(): Input/output error
Nov 17 18:41:53 MLD-rpi4 user.err vdr: audio/alsa: snd_pcm_avail_update(): Input/output error
Nov 17 18:41:53 MLD-rpi4 user.err vdr: audio/alsa: snd_pcm_avail_update(): Input/output error
...
```

gr4vity:
Hi,

In order for satip to work you need to have a satip server that runs either under Windows/Linux.
The idea is you will connect your DVB stick to your pc and watch channels on your Rpi.

By the way, i think vdr-plugin-softhddevice-drm ​is still in the experiemental phase, i experience such issues from time to time as well.

Best Regards.

chaseadam:

--- Quote from: gr4vity on November 17, 2021, 19:08:08 ---By the way, i think vdr-plugin-softhddevice-drm ​is still in the experiemental phase, i experience such issues from time to time as well.

--- End quote ---

Can you clarify with the "such issues"? I presume it is the audio and excessive frame dropping.

Does stable (5.4) use vdr-plugin-softhddevice-drm as well?

Can you confirm that 5.5 defaults to vdr-plugin-softhddevice-drm? Is there a way to use 5.5 (testing) without vdr-plugin-softhddevice-drm?

Navigation

[0] Message Index

[#] Next page

Go to full version