rodio icon indicating copy to clipboard operation
rodio copied to clipboard

Audio file always resampled to 41000hz on pipewire

Open LMFuture-Me opened this issue 3 years ago • 7 comments

LMFuture-Me avatar May 15 '22 14:05 LMFuture-Me

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

Plutomobubak avatar Sep 17 '24 17:09 Plutomobubak

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

yara-blue avatar Sep 17 '24 20:09 yara-blue

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

Plutomobubak avatar Sep 18 '24 13:09 Plutomobubak

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

yara-blue avatar Sep 18 '24 14:09 yara-blue

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

Plutomobubak avatar Sep 18 '24 15:09 Plutomobubak

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.

Plutomobubak avatar Sep 18 '24 18:09 Plutomobubak

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.

yara-blue avatar Sep 20 '24 10:09 yara-blue