Hi!
I have a Raspberry Pi with Hifiberry Digi Module running latest OSMC. It works very well and It can play perfectly almost all video files I have. But I have problems with some video files that have an audio track sampled at 24 KHz.
Those files are played smoothly using HDMI audio. The problem arises when using Hifiberry Digi output. Using Hifiberry Digi I can play smoothly only if I disable Hardware acceleration, but then I can't play HD files.
Before upgrade to OSMC, I was running latest Raspbmc, and the behavior was different. It worked well when I had a fixed frequency in Audio hardware settings. If I had choose "Optimized" then the file also plays smoothly but at a "fast forward" speed and with high pitched sound (very noticeably)
According to /proc/asound/card0/pcm0p/sub0/hw_params the device is using 32KHz when playing back these files. Same with old raspbmc and new OSMC.
The files itself are 560x400, XVID, 25fps for video and 24KHz, 56Kb/s MP3 for audio. I never had problem with these files in the past. The played well on every device I tryed to with.
The kodi log generated when playing this files is at: http://paste.osmc.io/oqovupuzov
I tryed almost all possible combinations at settings screen, but could not find a solucion.
Any idea?
Thank you and regards.
Date
Votes
8 comments
-
HiFiBerry team HI,
the Digi does not support 24kHz natively. Therefore resampling to a higher sampling frequency is needed. I guess, this is not working with hardware acceleration.
Best regards
Daniel -
El Santo Sure.
But indeed it worked with same settings in previous version (raspbmc).
I guess this is some kind of regression with kernel 3.18.13-1-osmc
Regards. -
HiFiBerry team Hi,
while it comes from the same developer, OSMC is quite different from Raspbmc. You can contact the OSMC developers and check with him if he can do something about this. Their forum is located at: https://discourse.osmc.tv/
Best regards
Daniel -
El Santo Thanks, Daniel.
I did it (https://discourse.osmc.tv/t/jerky-video-with-digiberryi-digi/6080). But I think that, since it works well with hdmi output, and not too many users there have digiberry digi, I got no answer.
I'm still testing, but i'm think it has to do with alsa module and it is not kodi/osmc problem.
Regards. -
HiFiBerry team Hi,
the ALSA module just plays back PCM samples that are being sent from the application. However, ALSA support in Kodi for the Raspberry Pi is relatively new and there might still be some issues with it. Sound output on HDMI and ALSA in handled completely different in Kodi. But we can't do anything about it, as we are not the Kodi or OSMC developers. You can also try other Kodi-based distributions like OpenElec.
Best regards
Daniel -
El Santo I'm trying OpenElec 5.0.8 (latest stable) and follow directions from https://www.hifiberry.com/guides/configuring-the-sound-card-in-openelec-with-device-tree-overlays/
But the digi is not recognized. I dont appear it in kodi settings. Neither in aplay -l
vcdbg log msg dont report nothing related (I think)
I have to manually load the kernel through ssh
modprobe snd-soc-hifiberry-digi
any idea? -
HiFiBerry team Please post the output ofvcdbg log msg
If you use OpenElec with the old Raspberry Pi, you need to configure it like OpenElec 4 as the RPI1 version does not support device tree overlays.
Best regards
Daniel -
El Santo I create a /etc/modules-load.d/HifiberryDigi.conf file with:
snd-soc-hifiberry-digi
And now i can choose the digi.
As for playing those videos, the behavoiur is the same that with raspbmc. The file plays fast-forward and hi-pitched unless i set a fixed samplerate in audio settings.
openelec is using kernel 3.17.8
regards.
Please sign in to leave a comment.