Sound problem pitch is too low
#1
I am using a Dynex card via optical out. At first I thought it was working but when you listen to people talk their pitch is too low or maybe slightly slowed down. The lip sync is perfect.

Is there anything I can tune to get the pitch / speed correct?
Kodi: Shield Pro 2019
Storage: Synology DS2415+, DS1815+
HT: LG 65C9 OLED, Pioneer VSX-LX503
Speakers: ProAc Super Towers/front, ProAc EBT's/rear, Polk S35/center, SVS PB-2000 Subwoofer
Reply
#2
You probably have the opposite of this problem:

http://forum.xbmc.org/showthread.php?tid...music+fast

I think you rtied to listen 48khz content on a 44khz soundcard. Try this:

nano .xbmc/userdata/advancedsettings.xml

and insert:

<advancedsettings>
<audio>
<resample>44100</resample>
</audio>
</advancedsettings>

restart xbmc
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
I tried those steps and no change in the sound. I changed the number to something more extreme just to see if it makes any sound change and it does not. Is that PAPplayer for video or music that uses those settings? I am trying to play a video.

I looked up the specs on the card, it is 48kHz. It provides 96kHz sampling rate audio to an external decoder.
Kodi: Shield Pro 2019
Storage: Synology DS2415+, DS1815+
HT: LG 65C9 OLED, Pioneer VSX-LX503
Speakers: ProAc Super Towers/front, ProAc EBT's/rear, Polk S35/center, SVS PB-2000 Subwoofer
Reply
#4
Those settings only apply to the papplayer, which is the default player for audio files.
Video files are played with DVDPlayer.

Your soundcard may not be the problem here, but maybe the device it is connected to (TV, receiver or whatever). If that device can't handle 48KHz audio, it will give you problems.

You could test if this is the case by creating a .asoundrc file which will resample the audio to 44.1KHz:
Code:
pcm.dmixer {
type dmix
   ipc_key 1024
   ipc_key_add_uid false
   ipc_perm 0660
   slave {
      pcm "hw:0,1"
      rate 44100
      channels 2
#     format S32_LE
      period_time 0
      period_size 1024
      buffer_time 0
      buffer_size 4096
   }
}

pcm.!default {
   type plug
   slave.pcm "dmixer"
}

And set the Audio Output Device in XBMC to default (if it's not already), otherwise it will not use the .asoundrc file.
Reply
#5
ronie Wrote:Those settings only apply to the papplayer, which is the default player for audio files.
Video files are played with DVDPlayer.

Your soundcard may not be the problem here, but maybe the device it is connected to (TV, receiver or whatever). If that device can't handle 48KHz audio, it will give you problems.

You could test if this is the case by creating a .asoundrc file which will resample the audio to 44.1KHz:
Code:
pcm.dmixer {
type dmix
   ipc_key 1024
   ipc_key_add_uid false
   ipc_perm 0660
   slave {
      pcm "hw:0,1"
      rate 44100
      channels 2
#     format S32_LE
      period_time 0
      period_size 1024
      buffer_time 0
      buffer_size 4096
   }
}

pcm.!default {
   type plug
   slave.pcm "dmixer"
}

And set the Audio Output Device in XBMC to default (if it's not already), otherwise it will not use the .asoundrc file.
I can't set the Audio Output device to default, no sound will come out. It's set to plugConfusedpdif. The sound card is connected to a Yamaha HTR-5790 receiver.

I looked at the debug log, it seems to be at 48000:

18:50:29 T:2911284112 M:2948087808 INFO: ffmpeg: Input #0, matroska, from '/h
ome/gary/movies/file.s05e05.720p.hdtv.x264-ctu.mkv':
18:50:29 T:2911284112 M:2948087808 INFO: ffmpeg: Duration: 00:41:46.33, sta
rt: 0.000000, bitrate: N/A
18:50:29 T:2911284112 M:2948087808 INFO: ffmpeg: Stream #0.0: Audio: ac3,
48000 Hz, 5:1
18:50:29 T:2911284112 M:2948087808 INFO: ffmpeg: Stream #0.1(eng): Video:
h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 23.98 tb®
.
.
19:45:28 T:2756692880 M:2827214848 NOTICE: Creating audio device with codec id:
86020, channels: 2, sample rate: 48000, pass-through
19:45:28 T:2756692880 M:2827214848 DEBUG: CALSADirectSound::CALSADirectSound -
opening alsa device
Kodi: Shield Pro 2019
Storage: Synology DS2415+, DS1815+
HT: LG 65C9 OLED, Pioneer VSX-LX503
Speakers: ProAc Super Towers/front, ProAc EBT's/rear, Polk S35/center, SVS PB-2000 Subwoofer
Reply
#6
Still can't figure out why the sound is slightly too slow / low pitch. It sounds like slow motion sound.

I also see these messages in the debug log:

22:16:37 T:2869484432 M:2952679424 DEBUG: CDVDPlayerAudio:: Discontinuty - was
:616490.090973, should be:601363.211682, error:-15126.879292
22:16:37 T:2869484432 M:2952531968 DEBUG: CDVDPlayerAudio:: Discontinuty - was
:786445.322682, should be:771361.234753, error:-15084.087929
22:16:37 T:2869484432 M:2952531968 DEBUG: CDVDPlayerAudio:: Discontinuty - was
:957900.614753, should be:942818.152024, error:-15082.462729
22:16:37 T:2869484432 M:2952531968 DEBUG: CDVDPlayerAudio:: Discontinuty - was
:1128428.124024, should be:1113406.016876, error:-15022.107148
22:16:38 T:2869484432 M:2952601600 DEBUG: CDVDPlayerAudio:: Discontinuty - was
:1299009.682876, should be:1283916.018046, error:-15093.664830
22:16:38 T:2869484432 M:2952601600 DEBUG: CDVDPlayerAudio:: Discontinuty - was
:1469297.814046, should be:1454242.616973, error:-15055.197073
22:16:38 T:2869484432 M:2952601600 DEBUG: CDVDPlayerAudio:: Discontinuty - was
:1640549.108973, should be:1625391.900146, error:-15157.208828
22:16:38 T:2869484432 M:2952396800 DEBUG: CDVDPlayerAudio:: Discontinuty - was
:1811007.948146, should be:1795951.589534, error:-15056.358611
Kodi: Shield Pro 2019
Storage: Synology DS2415+, DS1815+
HT: LG 65C9 OLED, Pioneer VSX-LX503
Speakers: ProAc Super Towers/front, ProAc EBT's/rear, Polk S35/center, SVS PB-2000 Subwoofer
Reply
#7
Please don´t truncate log, provide a full debug log on pastebin.com instead.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#8
It's fixed. The bad part is I am not 100% certain what fixed it. I turned on Multi track internal clock and saw it was set to 44,000. I changed it to 48000 and XBMC locked up when I tried to play a movie. I rebooted and noticed the 48000 was back to 44000. Changed it again and XBMC locked up again. So I did the cycle one more time and but booted after I changed it to 48,000. XBMC still locked up. Another reboot.

I then ran the alsamixer from the character mode. I changed it there to 48000 and it worked. XBMC did not lock up and the audio is good, no slow/deep pitch voices.

On to the next adventure. My panel res is off need to learn how to get the exact res in the X11 setup. This is better than any adventure game!
Kodi: Shield Pro 2019
Storage: Synology DS2415+, DS1815+
HT: LG 65C9 OLED, Pioneer VSX-LX503
Speakers: ProAc Super Towers/front, ProAc EBT's/rear, Polk S35/center, SVS PB-2000 Subwoofer
Reply
#9
I've got the same problem Sad

What did he do? I didn't understand the "multi track internal clock" thing..
I've got that problem with a few .MKVs. The video files aren't the problem. On my iMac is the Sound very nice.
Reply
#10
I'm having the same problem on a MacBook Pro.

Can some Kodi guru help us out? I'm not sure I understood gquiring's fix.

Thanks! Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Sound problem pitch is too low0