When I play with my hardwaresetup (see below) videos, no sound comes. The Gui Sounds works and I can play music files without problems.
- LibreELEC Alpha 7.90.009 (LibreELEC-RPi2.arm-7.90.009)
- Raspberry Pi 3 Modell B
- GPU Broadcom Dual Core VideoCore IV, OpenGL-ES 1.1/2.0, Full HD 1080p30
- HiFiBerry Amp+ Class-D power amplifier
With LibreELEC 7.0.2 (LibreELEC-RPi2.arm-7.0.2) and the same hardwaresetup it works fine.
Steps:
- Add the Device Tree Overlay to config.txt: dtoverlay=hifiberry-amp
- Set Audio output device to "ALSA: Default (snd_rpi_hifiberry_amp_Analog)"
I have found that it is exclusively audio streams, which have a higher samplerate than 44100 Hz. Audio tracks in videos with a sampling rate lower than 48000 Hz are output via the HiFiBerry.
More details are available in the Kodi debuglogfile (kodi.log.7z).
Video files examples ("ffmpeg -i videofile"):
Don't work:
Code
vconv version 9.20-6:9.20-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
built on Dec 7 2016 21:22:31 with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
Input #0, matroska,webm, from 'drei_amigos-remastered.mkv':
Duration: 01:43:09.02, start: 0.000000, bitrate: N/A
Chapter #0.0: start 0.000000, end 194.194000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 194.194000, end 678.595000
Metadata:
title : 00:03:14.194
Chapter #0.2: start 678.595000, end 1109.817000
Metadata:
title : 00:11:18.595
Chapter #0.3: start 1109.817000, end 1549.214000
Metadata:
title : 00:18:29.817
Chapter #0.4: start 1549.214000, end 1882.798000
Metadata:
title : 00:25:49.214
Chapter #0.5: start 1882.798000, end 2450.657000
Metadata:
title : 00:31:22.798
Chapter #0.6: start 2450.657000, end 2989.904000
Metadata:
title : 00:40:50.657
Chapter #0.7: start 2989.904000, end 3500.247000
Metadata:
title : 00:49:49.904
Chapter #0.8: start 3500.247000, end 3754.960000
Metadata:
title : 00:58:20.247
Chapter #0.9: start 3754.960000, end 4109.522000
Metadata:
title : 01:02:34.960
Chapter #0.10: start 4109.522000, end 4671.876000
Metadata:
title : 01:08:29.522
Chapter #0.11: start 4671.876000, end 5046.708000
Metadata:
title : 01:17:51.876
Chapter #0.12: start 5046.708000, end 5316.853000
Metadata:
title : 01:24:06.708
Chapter #0.13: start 5316.853000, end 5527.689000
Metadata:
title : 01:28:36.853
Chapter #0.14: start 5527.689000, end 5961.247000
Metadata:
title : 01:32:07.689
Chapter #0.15: start 5961.247000, end 6189.024000
Metadata:
title : 01:39:21.247
Stream #0.0: Video: h264 (High), yuv420p, 720x388, PAR 1:1 DAR 180:97, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
BPS : 1802830
BPS-eng : 1802830
DURATION : 01:43:09.016000000
DURATION-eng : 01:43:09.016000000
NUMBER_OF_FRAMES: 148388
NUMBER_OF_FRAMES-eng: 148388
NUMBER_OF_BYTES : 1394718584
NUMBER_OF_BYTES-eng: 1394718584
_STATISTICS_WRITING_APP: mkvmerge v9.0.1 ('Obstacles') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.0.1 ('Obstacles') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-11-25 09:59:07
_STATISTICS_WRITING_DATE_UTC-eng: 2016-11-25 09:59:07
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0.1(ger): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
BPS : 192000
BPS-eng : 192000
DURATION : 01:43:09.024000000
DURATION-eng : 01:43:09.024000000
NUMBER_OF_FRAMES: 193407
NUMBER_OF_FRAMES-eng: 193407
NUMBER_OF_BYTES : 148536576
NUMBER_OF_BYTES-eng: 148536576
_STATISTICS_WRITING_APP: mkvmerge v9.0.1 ('Obstacles') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.0.1 ('Obstacles') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-11-25 09:59:07
_STATISTICS_WRITING_DATE_UTC-eng: 2016-11-25 09:59:07
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
At least one output file must be specified
Display More
Work:
Code
avconv version 9.20-6:9.20-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
built on Dec 7 2016 21:22:31 with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
Input #0, matroska,webm, from 'piratenkoenigin-1951.mkv':
Metadata:
title : Die Piratenkönigin
CREATION_TIME : 2016-11-25T16:29:35Z
ENCODER : Lavf55.12.0
Duration: 01:17:57.24, start: 0.000000, bitrate: N/A
Stream #0.0: Video: h264 (High), yuv420p, 988x720, PAR 1:1 DAR 247:180, 25 fps, 25 tbr, 1k tbn, 180k tbc (default)
Stream #0.1: Audio: aac, 44100 Hz, stereo, fltp (default)
Metadata:
title : Stereo
At least one output file must be specified
Display More
dmesg output (dmesg | egrep hifi):
Code
[ 4.493188] snd-hifiberry-amp soc:sound: ASoC: CODEC DAI tas5713-hifi not registered
[ 4.493199] snd-hifiberry-amp soc:sound: snd_soc_register_card() failed: -517
[ 5.564869] snd-hifiberry-amp soc:sound: tas5713-hifi <-> 3f203000.i2s mapping ok
More details are available in the full dmesg output file (dmesg_raspberrypi3.txt).
Thanks for your help.
With friendly greetings from Germany,
toam