Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropouts due to CPU meter? #10

Closed
andimik opened this issue Feb 12, 2017 · 25 comments
Closed

Dropouts due to CPU meter? #10

andimik opened this issue Feb 12, 2017 · 25 comments

Comments

@andimik
Copy link
Contributor

andimik commented Feb 12, 2017

It seems never versions produce drop-out after inserting the CPU meter.

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Feb 12, 2017 via email

@andimik
Copy link
Contributor Author

andimik commented Feb 13, 2017

I've tested it again. Seems playback from an sdr file caused that strange dropout. I can reproduce them (older version no dropout, newer with)

You could try to load an sdr file, probably with the samples I sent you from Slovenia.

Very funny, there are absolutely no dropouts when I press the "audio" button, write a wav-file and listen to that.

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Feb 13, 2017 via email

@zygmund2000
Copy link

I can it confirm too, sound dropouts occurs randomly qt-dab, old sdr-j works without dropouts.

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Feb 15, 2017 via email

@zygmund2000
Copy link

zygmund2000 commented Feb 15, 2017

CPU load is low all time, this droputs are not related to CPU load, looks like audio speed don't match to soundcard speed or something like this, because sound doesn't stop but changes/skips time.

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Feb 16, 2017 via email

@zygmund2000
Copy link

zygmund2000 commented Feb 16, 2017 via email

@andimik
Copy link
Contributor Author

andimik commented Feb 16, 2017

Yes, with this parameter the dropouts are more, less or even gone (for some seconds), depending on the entry. I'm alway replaying the same sdr-file, so I know when the dropouts appear.

When dropouts occur, there is sometimes this message in the command window:

ALSA lib pcm.c:7963:(snd_pcm_recover) underrun occurred

The SDR-J had

Suggested size for outputbuffer = 5120

qt-dab has

Suggested size for outputbuffer = 15360

Even when I move the mouse or the mouse scroll bar (when I was editing that page) I could produce dropouts ...

CPU load depends on the latency parameter is between 40% and 55%

@zygmund2000
Copy link

zygmund2000 commented Feb 17, 2017 via email

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Feb 17, 2017 via email

@zygmund2000
Copy link

zygmund2000 commented Feb 17, 2017

Suggested size for outputbuffer = 1280

we have now DAB+
frameErrors = 0, missed samples for audio 44800
frameErrors = 0, missed samples for audio 640
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 640
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
but now is more 0 even always 0

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Feb 17, 2017 via email

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Feb 17, 2017 via email

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Feb 17, 2017 via email

@zygmund2000
Copy link

still no errors, I have pulseaudio 10 and 48khz default sample rate, now in non realtime mode for tests.

@andimik
Copy link
Contributor Author

andimik commented Feb 18, 2017

Now the dropouts disappeared as long as I don't use the scroll wheel on my mouse ...

frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
End of file, restarting # sdr-file restart from beginning
frameErrors = 59, missed samples for audio 69312 # there are always errors in the first 2-3 sec.
frameErrors = 0, missed samples for audio 1088
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 128
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 192 # moved the mouse wheel
frameErrors = 0, missed samples for audio 5504 # moved the mouse wheel
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 2496 # moved the mouse wheel
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0
frameErrors = 0, missed samples for audio 0<

@HawkingJan
Copy link

On my 'Rasberry Pi 2 Model B I also have problems with hearable dropouts

 frameErrors = 4, missed samples for audio 215040
 frameErrors = 0, missed samples for audio 0
 frameErrors = 0, missed samples for audio 0
 frameErrors = 0, missed samples for audio 76416
 frameErrors = 0, missed samples for audio 73728
 frameErrors = 0, missed samples for audio 55296
 frameErrors = 0, missed samples for audio 1341440
 frameErrors = 0, missed samples for audio 361344
 frameErrors = 0, missed samples for audio 0
 frameErrors = 0, missed samples for audio 709824
 frameErrors = 0, missed samples for audio 476800
 frameErrors = 0, missed samples for audio 229376
 frameErrors = 0, missed samples for audio 0
 frameErrors = 0, missed samples for audio 0
 frameErrors = 0, missed samples for audio 5248
 frameErrors = 0, missed samples for audio 79872
 frameErrors = 0, missed samples for audio 87040
 frameErrors = 0, missed samples for audio 968704

I tried latency=0, latency=2, latency=4 and latency=8.

In the "technical data" window a CPU usage between 45 and 55 (%?) is shown and the four bars at the bottom are all at 100%. Does anybody have some ideas how to solve this problem?

@andimik
Copy link
Contributor Author

andimik commented Mar 30, 2017

It seems the dropouts disappeared with newer versions. But I will check again.

@HawkingJan
Copy link

I compiled the latest version (0.999) and still have mayn of dropouts :-/ (using a dabstick on my Raspberry Pi)

 frameErrors = 3, missed samples for audio 0
 frameErrors = 0, missed samples for audio 0
 frameErrors = 0, missed samples for audio 5151
 frameErrors = 5, missed samples for audio 390
 frameErrors = 4, missed samples for audio 5286
 frameErrors = 1830, missed samples for audio 6387344
 frameErrors = 75, missed samples for audio 95910

@JvanKatwijk can you comment on the meaning of these numbers and on the indicator "MOT decoding" (shown in the technical details)?

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented May 21, 2017 via email

@HawkingJan
Copy link

Thanks for your quick reply.
I only used "dabstick" as a device in the qt-dab.pro. I now additionally commented out "spectrum", " TECHNICAL_DATA", " MOT_DATA" (not sure what it is about?) and "MSC_DATA__" (it said that one does not want it, why is it then not commented out by default?) and "__QUALITY" (just to be sure) and recompiled. Still lots of dropouts :-/

@HawkingJan
Copy link

I now compiled the latest version and removed "spectrum" (but kept the other entries listed in my previous post, maybe you can comment on MOT_DATA and MSC_DATA_)?
I'm running my Pi as a headless device over ssh. I assume that the CPU usage value shown in the technical details is in percent? Then I'm using between 40-52%. Which latency value do you use/recommend?

I'm still not sure about the numbers printed using the -T option. Is the following interpretation correct?

frameErrors = 0, missed samples for audio 0 <-- everything OK
frameErrors = 5, missed samples for audio 0 <-- there were errors in the frame that could be corrected, audio signal should be OK.
frameErrors = 20, missed samples for audio 55564 <--- there were errors in the frame that could be corrected but audio signal still has issues (why?)
frameErrors = 0, missed samples for audio 5757 <-- ???
CRC failure with dab+ frame 2 (3) <-- there were errors in the frame that could not be corrected (this error happens rarely)

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented May 24, 2017 via email

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented May 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants