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

Audio file always resampled to 41000hz on pipewire #426

Open
LMFuture-Me opened this issue May 15, 2022 · 7 comments
Open

Audio file always resampled to 41000hz on pipewire #426

LMFuture-Me opened this issue May 15, 2022 · 7 comments

Comments

@LMFuture-Me
Copy link

No description provided.

@Plutomobubak
Copy link

Still does. You have to resample played audio file to 41100 Hz

@dvdsk
Copy link
Collaborator

dvdsk commented Sep 17, 2024

I do not really understand this issue. What is the expected behavior and why is the current behavior wrong?

@Plutomobubak
Copy link

I do not really understand this issue. What is the expected behavior and why is the current behavior wrong?

  • have 16000 Hz sample rate .wav file => try to play it => just noise
  • use ffmpeg to resample to 44100Hz => play => works fine

@dvdsk
Copy link
Collaborator

dvdsk commented Sep 18, 2024

strange, rodio should resample the file on the go. Can you share the file or is it copyrighted?

@Plutomobubak
Copy link

audio.tar.gz
Both written using hound wav writer. The one with re is then resampled using ffmpeg and works fine.

@Plutomobubak
Copy link

I think it can be related to #584 and another closed issue with low quality audio that mentions this issue. Even though the wav specs of both files (checked with media info) are almost same their stream size differs a lot - 15.5 KiB vs 227 KiB.

It also has something to do with hound WavWriter resampling of audio (I'm resampling it to 44100Hz, the original is about 16000Hz), that doesn't change the size of buffer but only the sampling rate. This is playable for system audio player but appareantly not for rodio.

@dvdsk
Copy link
Collaborator

dvdsk commented Sep 20, 2024

I took a look at the current resampler in rodio. Instead of trying to improve it the plan is to first see what switching to rubato does. That is going to take while unfortunately.

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

3 participants