Bug 21434 - mpg123 first plays mp3 as garbage noise and after a while plays correctly
Summary: mpg123 first plays mp3 as garbage noise and after a while plays correctly
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: José Jorge
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2017-08-02 00:30 CEST by Emmanuel Curis
Modified: 2020-04-23 09:53 CEST (History)
1 user (show)

See Also:
Source RPM: mpg123-1.24.0-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Emmanuel Curis 2017-08-02 00:30:12 CEST
Description of problem:
After upgrading from mageia 5 to mageia 6, playing a set of mp3 with mpg123 starts with a (variable) amount of garbage noise, and then the music starts but all the beginning is missing — as if the music was first played at a way too high frequency, until mpg123 synchronizes... The time to synchronize is higly variable and eventually it may takes 2 complete mp3 before the third one is played correctly.

]$ uname -a
Linux mistral.personnelle.fr 4.9.40-server-1.mga6 #1 SMP Fri Jul 28 01:16:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

]$ mpg123 --version
mpg123 1.24.0

Hardware : Dell Precision Tower 3620
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.9.40-server-1.mga6 root=UUID=e89351cc-1766-4136-9eea-9a71f3e32e8e ro nokmsboot splash quiet noiswmd resume=UUID=8ee4d468-27be-4d75-b375-3ba110e0ee9b

[    0.000000] efi: EFI v2.40 by American Megatrends
[    0.000000] efi:  ACPI=0xb6100000  ACPI 2.0=0xb6100000  SMBIOS=0xf0000  ESRT=0xb6aeb598 
[    0.000000] SMBIOS 2.8 present.
[    0.000000] DMI: Dell Inc. Precision Tower 3620/09WH54, BIOS 1.3.4 03/27/2016
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved

]# lsmod 
Module                  Size  Used by
[...]
snd_hda_codec_hdmi     45056  1
snd_hda_codec_realtek    90112  1
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
[...]
snd_hda_codec         126976  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           77824  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               118784  5 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd                    81920  23 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm


NVIDIA GF119 HDMI Audio Controller
PulseAudio activated, GlitchFree mode activated
Rémi Verschelde 2017-08-02 08:52:08 CEST

Assignee: bugsquad => lists.jjorge

Comment 1 José Jorge 2017-08-02 09:04:39 CEST
I just cannot reproduce here. Can you please try with another user, to ensure it is not a personal combination of settings?

Status: NEW => UNCONFIRMED
Ever confirmed: 1 => 0

Comment 2 Emmanuel Curis 2017-08-02 15:48:35 CEST
Same problem on a text virtual consol (Ctrl-Alt-F2) as root. But using mplayer to play the same mp3 does not present the problem (in both cases).
Any hint on the settings to try to change to help isolating the problem?
(Note that it worked perfectly under Mageia 5, and I did not made any change in the sound settings when I updated to Mageia 6 — so either these are the default Mageia 6 settings that superseded the old one, or the old Mageia 5 one that worked previously, that are in use now — I don't know what does the upgrade on this point).
Thanks for any help,
Comment 3 Emmanuel Curis 2017-08-02 15:54:35 CEST
Complement: The problem still exists when desactivating the « Glitch-Free mode ». However, it disappears when desactivating « PulseAudio ».
So it seems to be related to « Pulse Audio ».
As a user, the problem is for me solved, but is this normal that Pulse Audio has such a strange behavior with mpg123?
Comment 4 Emmanuel Curis 2017-08-03 18:36:41 CEST
Another complement: when deactivating PulseAudio, mpg123 plays correctly... But that prevent any other software to use the sound, and for instance mplayer hangs at the start of any video waiting for the sound to be available... So that does not solve the problem in a satisfactory way.

Since I did not experienced that with Mageia 5, I guess I used Pulse Audio on Mageia 5... So something seems to have been broken in the Mageia 6 PulseAudio/mpg123 coupling.

If there is any command I can run to help in diagnosing the problem, I'll be happy to execute them...
Comment 5 José Jorge 2017-08-03 19:15:17 CEST
(In reply to Emmanuel Curis from comment #4)
> Another complement: when deactivating PulseAudio, mpg123 plays correctly...
> But that prevent any other software to use the sound, and for instance
> mplayer hangs at the start of any video waiting for the sound to be
> available... So that does not solve the problem in a satisfactory way.

This is the normal limit of linux sound. Pulseaudio solves this problems nicely so mpg123 should work well with it. 

> 
> Since I did not experienced that with Mageia 5, I guess I used Pulse Audio
> on Mageia 5... So something seems to have been broken in the Mageia 6
> PulseAudio/mpg123 coupling.

It could also be something bogus in the upgrade, that we will never be able to reproduce. An interesting test would be to try to boot from a Mageia live media, and play directly an mp3 without installing it to the harddrive, just to ensure the bug still happens with your hardware.
Comment 6 José Jorge 2017-09-19 22:10:50 CEST
mpg123 was updated in MGA6 for a security fix. Did that fix your bug with pulseaudio?

Keywords: (none) => NEEDINFO

Comment 7 Emmanuel Curis 2017-10-01 20:43:42 CEST
Just made the test (it's not very practical on a production machine, since I have to log out and in to have the changes made). Did not solve the problem.

Note that without pulseaudio, everything works well and, despite what I said before, I can even have several music/video using sound at the same time. The only case when it does not work is when I just made the change from pulseaudio to linux sound, and until the next reboot.
Comment 8 Morgan Leijström 2020-04-23 09:53:00 CEST
Mga6, and last post is old.

Status: UNCONFIRMED => RESOLVED
CC: (none) => fri
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.