JvanKatwijk / qt-dab

Qt-DAB, a general software DAB (DAB+) decoder with a (slight) focus on showing the signal
http://www.sdr-j.tk
GNU General Public License v2.0
300 stars 62 forks source link

Stuttering audio on linux 24-04-01 LTS #332

Closed evertverduin closed 1 month ago

evertverduin commented 1 month ago

Hi Jan,

I upgraded to 24-04-01 LTS and experienced stuttering and half bandwidth audio which is very specific to certain settings: ( On windows ( which i do not like to use, no issues ).

When stutter: ( mux 12C Zoetermeer ).

When half bandwidth: ( mux 12C Zoetermeer ).

When normal: ( mux 12C national ).

These problems started from ubuntui release 22-04-01. on 20-04-01 there were no issues. THis is the compiled RC candidate, fresh pull from yesterday.

LOG

root@evert-System-Product-Name:/home/evert/qt-dab/qt-dab-RC/linux-bin# ./qt-dab-6.X QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' main: Detected system language "en_US" main: Set language "en_US" main: Error while loading language specifics "en_US" use English "en_GB" instead Socket createdI am now accepting connections ... Socket createdI am now accepting connections ... ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_a52.c:1001:(_snd_pcm_a52_open) a52 is only for playback ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card' ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card' Hostapis: 2

Api 0 is ALSA

Api 1 is OSS

Investigating Device 0

(output):item 1 wordt stream 0 (HDA Intel PCH: ALC887-VD Analog (hw:0,0))

Investigating Device 1

(output):item 2 wordt stream 1 (HDA Intel PCH: ALC887-VD Digital (hw:0,1))

Investigating Device 2

Investigating Device 3

(output):item 3 wordt stream 3 (HDA NVidia: HDMI 0 (hw:1,3))

Investigating Device 4

(output):item 4 wordt stream 4 (HDA NVidia: HDMI 1 (hw:1,7))

Investigating Device 5

(output):item 5 wordt stream 5 (HDA NVidia: HDMI 2 (hw:1,8))

Investigating Device 6

(output):item 6 wordt stream 6 (HDA NVidia: HDMI 3 (hw:1,9))

Investigating Device 7

Investigating Device 8

(output):item 7 wordt stream 8 (Turtle Beach P11 Headset: USB Audio (hw:3,0))

Investigating Device 9

(output):item 8 wordt stream 9 (Babyface (23250239): USB Audio (hw:4,0))

Investigating Device 10

(output):item 9 wordt stream 10 (sysdefault)

Investigating Device 11

(output):item 10 wordt stream 11 (front)

Investigating Device 12

(output):item 11 wordt stream 12 (surround40)

Investigating Device 13

(output):item 12 wordt stream 13 (surround51)

Investigating Device 14

(output):item 13 wordt stream 14 (surround71)

Investigating Device 15

(output):item 14 wordt stream 15 (iec958)

Investigating Device 16

(output):item 15 wordt stream 16 (spdif)

Investigating Device 17

(output):item 16 wordt stream 17 (lavrate)

Investigating Device 18

(output):item 17 wordt stream 18 (samplerate)

Investigating Device 19

(output):item 18 wordt stream 19 (speexrate)

Investigating Device 20

(output):item 19 wordt stream 20 (a52)

Expression 'parameters->channelCount <= maxChans' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1514 Expression 'ValidateParameters( outputParameters, hostApi, StreamDirection_Out )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1846 Investigating Device 21

Investigating Device 22

(output):item 20 wordt stream 22 (upmix)

Investigating Device 23

(output):item 21 wordt stream 23 (vdownmix)

Investigating Device 24

(output):item 22 wordt stream 24 (default)

Investigating Device 25

(output):item 23 wordt stream 25 (dmix)

HDA Intel PCH: ALC887-VD Analog (hw:0,0) HDA Intel PCH: ALC887-VD Digital (hw:0,1) HDA NVidia: HDMI 0 (hw:1,3) HDA NVidia: HDMI 1 (hw:1,7) HDA NVidia: HDMI 2 (hw:1,8) HDA NVidia: HDMI 3 (hw:1,9) Turtle Beach P11 Headset: USB Audio (hw:3,0) Babyface (23250239): USB Audio (hw:4,0) sysdefault front surround40 surround51 surround71 iec958 spdif lavrate samplerate speexrate a52 upmix vdownmix default dmix Suggested size for outputbuffer = 0 stream opened stream started OK, functions seem to be loaded Found Rafael Micro R820T tuner [R82XX] PLL not locked! Supported gain values (29): 49,6 48,0 44,5 43,9 43,4 42,1 40,2 38,6 37,2 36,4 33,8 32,8 29,7 28,0 25,4 22,9 20,7 19,7 16,6 15,7 14,4 12,5 8,7 7,7 3,7 2,7 1,4 0,9 0,0 [R82XX] PLL not locked! Generic RTL2832U 77771111153705700 Got a signal for setting to 1 Got a signal for setting to 1 worker handler started channel reset: all services will be stopped workerhandler stopped channel reset: all services will be stopped going to open Impact Radio
we have now 1 backends running workerhandler stopped stopping subchannel 2 channel reset: all services will be stopped going to open NPO Klassiek
we have now 1 backends running stopping subchannel 3 going to open NPO Radio 1
we have now 1 backends running stopping subchannel 0 going to open NPO SterrenNL
we have now 1 backends running workerhandler stopped stopping subchannel 8 channel reset: all services will be stopped going to open 972
we have now 1 backends running stopping subchannel 11 going to open Impact Radio
we have now 1 backends running stopping subchannel 2 going to open Radio Excellent we have now 1 backends running stopping subchannel 6 going to open ZFM Zoetermeer
we have now 1 backends running stopping subchannel 1 going to open Radio Excellent we have now 1 backends running stopping subchannel 6 going to open ZFM Zoetermeer
we have now 1 backends running workerhandler stopped stopping subchannel 1 channel reset: all services will be stopped going to open NPO FunX
we have now 1 backends running stopping subchannel 6 going to open NPO SterrenNL
we have now 1 backends running workerhandler stopped stopping subchannel 8 channel reset: all services will be stopped going to open Impact Radio
we have now 1 backends running

ENDLOG

BR

Evert

JvanKatwijk commented 1 month ago

Stuttering can have many causes, so I need more information a. does the technical window shows any stuttering in the quality indicators b. does it happen on all relevant audio channels c. does it happen for both audio subsystems (i.e. portaudio and qtaudio) d. does the stuttering happens immediately or after some time e. is the stuttering continuous f. what does control widget say about the cpu load g. is the EPG handler running in the background

As a test I just ran the appimage on U24 running in a VM (only 4 cores) on samples with 48, 72, 144 bits data and listening for a few minutes I do not hear stuttering

Op za 5 okt 2024 om 16:01 schreef Evert @.***>:

Hi Jan,

I upgraded to 24-04-01 LTS and experienced stuttering and half bandwidth audio which is very specific to certain settings:

When stutter: ( mux 12C Zoetermeer ).

  • If audio channel in mux is 72KBit/s 48000khz, PS-SBR. Looks/sounds like a sampling issue.

When half bandwidth: ( mux 12C Zoetermeer ).

  • If audio channel in mux is 72KBit/s, 32000khz, SBR only. Sounds like 8 KHz audio. Looks like sampling rate issue.

When normal: ( mux 12C national ).

  • If audio channel in mux is 112KBit/s, 48000khz. SBR only. Sounds problemless

These problems started from ubuntui release 22-04-01. on 20-04-01 there were no issues. THis is the compiled RC candidate, fresh pull from yesterday.

BR

Evert

— Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/qt-dab/issues/332, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCPHQFBBZDPREPFWLUIJWDZZ7WNFAVCNFSM6AAAAABPNL47JOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3DQMBZGAYDIOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Jan van Katwijk

evertverduin commented 1 month ago

After using the AppImage, the stuttering is gone. So, i suggest when someone runs into issues, use the appimage.