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

MP3 playback speed issue #943

Closed
Oleksiy-Yakovenko opened this issue Mar 12, 2015 · 10 comments
Closed

MP3 playback speed issue #943

Oleksiy-Yakovenko opened this issue Mar 12, 2015 · 10 comments
Labels

Comments

@Oleksiy-Yakovenko
Copy link
Member

Original issue 1041 created by Alexey-Yakovenko on 2014-01-25T12:50:02.000Z:

What steps will reproduce the problem?
Какие шаги приводят к воспроизведению
проблемы?

  1. Download this 38-second excerpt from here, 64 kbps, c. 300 kB:
    http://www42.zippyshare.com/v/4702727/file.html
    (It's not music, but from an audio book. This rip is 10 years old, so maybe that's why the issue described below happens.
  2. Play back the short sample in deadbeef.

(expected)
Should play back normally.

(actual)
Plays at insane speed like 'chipmunks' (incorrect sample rate).

(info)
deadbeef trunk linux lubuntu

Additional comments:
Very likely a core issue - file plays back perfectly on mplayer on console.
I cannot remember, but this might be a so-called MP3Pro file. It's an ancient encoder - but as I said, this vinyl rip IS 10 years old.

@Oleksiy-Yakovenko
Copy link
Member Author

Comment #1 originally posted by Alexey-Yakovenko on 2014-01-25T12:54:02.000Z:

<empty>

@Oleksiy-Yakovenko
Copy link
Member Author

Comment #2 originally posted by Alexey-Yakovenko on 2014-01-25T14:28:33.000Z:

Works for you? This is not good news.

Still got 'chipmunks' here with the file I provided - can't help it.

@Oleksiy-Yakovenko
Copy link
Member Author

Comment #3 originally posted by Alexey-Yakovenko on 2014-01-25T14:33:35.000Z:

doesn't that mean that your resampling setup is wrong?

@Oleksiy-Yakovenko
Copy link
Member Author

Comment #4 originally posted by Alexey-Yakovenko on 2014-01-25T14:35:24.000Z:

Tried to load in the file in foobar2000 (@wine) and did a 'Rebuild MP3 stream. Now the file also works in ddb.
Maybe I should upload the fixed file so you can look where the difference is?

p.s. Why fb2k if ddb is natively available? Well, although ddb provides many of the great features of its win32 counterpart, there is still no way to rebuild the MP3 stream in the Linux program.

@Oleksiy-Yakovenko
Copy link
Member Author

Comment #5 originally posted by Alexey-Yakovenko on 2014-01-25T14:39:27.000Z:

For a test, I turned off ALSA resampling in plugin settings, but no effect.

Where else can I go tweaking?

@Oleksiy-Yakovenko
Copy link
Member Author

Comment #6 originally posted by Alexey-Yakovenko on 2014-01-25T14:41:19.000Z:

the file plays correctly in deadbeef on my computer. i don't understand what should i look for. if it plays faster than it should -- check your setup. make sure resampler is in DSP chain, with automatic flag ON, or ALSA resampling is ON, or if you don't know/care about things like that -- just use pulseaudio, which would take care of these things for you.

@Oleksiy-Yakovenko
Copy link
Member Author

Comment #7 originally posted by Alexey-Yakovenko on 2014-01-25T14:45:03.000Z:

File plays in wrong speed with PulseAudio AND ALSA, but as you told in another comment before, with a full pulseaudio setup, the one will use some parts of the other.

@Oleksiy-Yakovenko
Copy link
Member Author

Comment #8 originally posted by Alexey-Yakovenko on 2014-01-25T14:46:15.000Z:

ps. There is no resampler configured AT ALL in DSP currently. Probably because I have never needed it up to now.

@Oleksiy-Yakovenko
Copy link
Member Author

Comment #9 originally posted by Alexey-Yakovenko on 2014-01-25T14:56:12.000Z:

WAIT a minute...

tmp2@my-lubuntubox:/linuxdev/d8$ ./configure --help | grep -- [^-]-src
--enable-src build libsamplerate (SRC) plugin (default: auto)


Default: AUTO.
Looks it actually did not build the DSP plugin, although libsamplerate0:i386 IS installed. I will just try rebuilding the app with explicitly --enable-src, overriding the (usually vague) 'auto'.

Thanks for your help and insights so far.

@Oleksiy-Yakovenko
Copy link
Member Author

Comment #10 originally posted by Alexey-Yakovenko on 2014-01-25T15:56:46.000Z:

PROBLEM SOLVED! Thanks again for the great support.

The culprit was not you, but -- in some way -- Ubuntu packagers.
They SHOULD, when you do a

$ dpkg -l samp

definitely tell you about an uninstalled package of libsamplerate0-dev !!
However, it only displayed libsamplerate0:i386 and left the user in obscurity about the fact that there IS also a developer package of lsr0 containing required includes and headers. (Unlike common belief, it does not always follow this scheme, by the way.)

$ sudo apt-get install libsamplerate0-dev

and the DSP resampling plugin eventually got built!

CASE CLOSED

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

No branches or pull requests

1 participant