kodi-rpi 19.1-4 crackling audio

Problems with packages? Post here, using [tags] of the package name.

kodi-rpi 19.1-4 crackling audio

Postby unformatted » Sun May 16, 2021 11:48 am

There is now an issue with the analog audio output which wasn't there a while ago. I'm on RPi4 with latest kodi-rpi 19.1-4. When I play movies the analog audio output is crackling and speech is very distorted. This does not happen with live TV and radio. When I select "Only allow acceleration for HEVC" the movie is software decoded and the sound is ok. So there still is a problem with hardware acceleration regarding the analog audio output.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: kodi-rpi 19.1-4 crackling audio

Postby graysky » Sun May 16, 2021 12:10 pm

Mod note - split out into own thread
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: kodi-rpi 19.1-4 crackling audio

Postby graysky » Sun May 16, 2021 12:20 pm

$this->bbcode_second_pass_quote('unformatted', 'T')here is now an issue with the analog audio output which wasn't there a while ago. I'm on RPi4 with latest kodi-rpi 19.1-4. When I play movies the analog audio output is crackling and speech is very distorted.


Are you sure the source file is not the problem? What format is the audio (use mediainfo to find out)? Does the problematic file play fine under the previous 19.0 release of kodi-rpi?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: kodi-rpi 19.1-4 crackling audio

Postby unformatted » Sun May 16, 2021 12:54 pm

Kodi 19.0 was fine. I have this problem with all my movies so far. For example Avatar 2009.mp4 (ripped from DVD):
$this->bbcode_second_pass_code('', '
Video decoder: ff-h264_v4l2m2m-drm_prime (HW)
Audio stream: FL, FR, ff-aac, 32 bits, 48,000 Hz')
has distorted sound and crackling when there is sound (if quit then no crackling).

When I turn off HW decoding:
$this->bbcode_second_pass_code('', '
Video decoder: ff-h264-drm_prime (SW)
Audio stream: FL, FR, ff-aac, 32 bits, 48,000 Hz')
and sound is ok.

So far I tested over a dozen various movies, with some the problem is less obvious but still there. When there is low sound in the movie it seems ok but as soon as there is speech the distortion happens. But when I play my test movie sintel-1080-cfg02.mkv the sound is ok:
$this->bbcode_second_pass_code('', '
Video decoder: ff-hevc-drm_prime (HW)
Audio stream: FL, FR, FC, LFE, BL, BR, ff-aac, 32 bits, 48,000 Hz')

I have quite a collection of movies which I ripped from DVD to my NAS and they all have this problem which did not occur until at least kodi 19.0.

I'm on a fresh RPI4 armv7l install with fresh kodi, no customizations. Here's my config.txt:
$this->bbcode_second_pass_code('', '
dtoverlay=vc4-kms-v3d,cma-512
dtoverlay=rpivid-v4l2
disable_overscan=1
disable_fw_kms_setup=1
initramfs initramfs-linux.img followkernel
')
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: kodi-rpi 19.1-4 crackling audio

Postby graysky » Sun May 16, 2021 1:06 pm

In order to report upstream or for me to test on my own box, you'll need to verify the behavior using a copyright free source. Here is an example clip you can try:
$this->bbcode_second_pass_code('', 'wget http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4')

Video is h264 and audio is AAC. Does it playback for you with accel correctly?
$this->bbcode_second_pass_code('', '
Video decoder: ff-h264_v4l2m2m-drm_prime (HW)
Audio stream: FL, FR, ff-aac, 32 bits, 44,100 Hz
')
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: kodi-rpi 19.1-4 crackling audio

Postby unformatted » Sun May 16, 2021 1:18 pm

With HW decoding it crackles, with SW decoding it's ok.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: kodi-rpi 19.1-4 crackling audio

Postby graysky » Sun May 16, 2021 1:21 pm

So it plays fine on my setup... can you try a quick experiment:

1) stop kodi
2) make a fresh profile*
3) start kodi and verify it's still an issue

* this should work:
$this->bbcode_second_pass_code('', '
mv /var/lib/kodi /var/lib/kodi-backup
mkdir /var/lib/kodi
chown kodi:kodi /var/lib/kodi')
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: kodi-rpi 19.1-4 crackling audio

Postby unformatted » Sun May 16, 2021 1:29 pm

I already had a fresh profile, it was a fresh install including arch arm. I followed your steps but same issue. Does it play ok for you on the jack output or are you on hdmi?
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: kodi-rpi 19.1-4 crackling audio

Postby graysky » Sun May 16, 2021 3:10 pm

$this->bbcode_second_pass_code('', 'System>Audio>Audio output device = vc4-hdmi-0 (vc4hdmi0), MAI PCM vc4-hdmi-hifi0')

Do you have any special setup? Unique hardware? External receiver? Using pulseaudio?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: kodi-rpi 19.1-4 crackling audio

Postby unformatted » Mon May 17, 2021 5:58 am

I'm affraid there's a misunderstanding here. I stated in my first post that I'm on the analog audio output, meaning the 3.5mm jack connector. Can you test on this output instead of hdmi? The hdmi sound is fine, it's the analog output which is craclking.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Next

Return to Packages

Who is online

Users browsing this forum: No registered users and 7 guests