Opus decoding to BT (Android)
-
- Posts: 22
- Joined: Tue Nov 27, 2018 9:59 am
Opus decoding to BT (Android)
Hi!
Just want to know is there some explicit downsampling at the case described below.
Opus@200kbps file is played to BT AAC@256kbps. On main window I see for input:
32-bit 48 kHz <variable>kbps OPUS
, and for output:
32-bit 48 kHz STEREO PCM
Hardware shows Bits 64 (out: 32 int), Frequency 48000.
Android "For developers" show 44100 Hz and 16 bit for BT.
So, I see two opportunities:
1. On Opus decoding output rate is set to 44100 (BTW source FLAC was 44100)
2. Somewhere in the chain 48000 to 44100 downsampling takes place
Whin one does take place in reality?
Just want to know is there some explicit downsampling at the case described below.
Opus@200kbps file is played to BT AAC@256kbps. On main window I see for input:
32-bit 48 kHz <variable>kbps OPUS
, and for output:
32-bit 48 kHz STEREO PCM
Hardware shows Bits 64 (out: 32 int), Frequency 48000.
Android "For developers" show 44100 Hz and 16 bit for BT.
So, I see two opportunities:
1. On Opus decoding output rate is set to 44100 (BTW source FLAC was 44100)
2. Somewhere in the chain 48000 to 44100 downsampling takes place
Whin one does take place in reality?
Re: Opus decoding to BT (Android)
It is rather unlikely that the decoder changes the sampling rate. From the messages you see I would think that everything works with 48 kHz including the delivery to the DAC. What do you mean with "Android For developers" ? The Android Developer Options ?
-
- Posts: 22
- Joined: Tue Nov 27, 2018 9:59 am
Re: Opus decoding to BT (Android)
Yes, you are right. It was my literal back translation
Re: Opus decoding to BT (Android)
So everything says 48 kHz ... and the Developer Options do mean what ? I'm not sure what that means, perhaps nothing.
-
- Posts: 22
- Joined: Tue Nov 27, 2018 9:59 am
Re: Opus decoding to BT (Android)
I mean these system settings BT-related options.
- Attachments
-
- 2.1.jpg (107.56 KiB) Viewed 2084 times
-
- 1.1.jpg (139.41 KiB) Viewed 2084 times
Re: Opus decoding to BT (Android)
Okay ... so the preferred sampling rate for BT is 44.1 kHz ... so what do you think that means ? Do you think this implies that this sampling rate is forced rather than preferred ? ... and whatever you think, do you know rather than guess ? I suggest you ask in an android/google/samsung forum, they might know more. Or perhaps the developer here knows something, I don't.
-
- Posts: 22
- Joined: Tue Nov 27, 2018 9:59 am
Re: Opus decoding to BT (Android)
Exactly! The thing is it's the only possible sampling rate in the list. So, I'd prefer NMP to downsample as having more accurate DSP. But output params still shows 48kHz, and I guess it results in using of system DSP to downsample.
The problem is, OPUS hasn't got 44100 sampling frequency.
Re: Opus decoding to BT (Android)
So you think that because you cannot change the value ( that's what you mean by "only possible sampling rate" ? ) then sampling rate will be changed to 44.1 kHz by the os or the bt device after nmp delivered its output with 48 kHz . That would imply that Neutron doesn't succeed in finding out that only 44.1 kHz is valid. And you want neutron to downsample so that the os or the bt device don't have to.student975 wrote: ↑Fri Jan 10, 2020 8:13 pmExactly! The thing is it's the only possible sampling rate in the list. So, I'd prefer NMP to downsample as having more accurate DSP. But output params still shows 48kHz, and I guess it results in using of system DSP to downsample.
The problem is, OPUS hasn't got 44100 sampling frequency.
Okay, as to the immediate action : set the sampling rate in the Audio Hardware Settings to 44.1 kHz.
And as to your suspicion about neutrons inability to correctly checking your device, you might tell us what that device and operating system is.
Re: Opus decoding to BT (Android)
Another thing you could do : change the bt-codec if it is possible on your devices, e.g. ldac can provide higher sampling rates.
-
- Posts: 22
- Joined: Tue Nov 27, 2018 9:59 am
Re: Opus decoding to BT (Android)
Yes!blaubär wrote: ↑Fri Jan 10, 2020 8:37 pmSo you think that because you cannot change the value ( that's what you mean by "only possible sampling rate" ? ) then sampling rate will be changed to 44.1 kHz by the os or the bt device after nmp delivered its output with 48 kHz . That would imply that Neutron doesn't succeed in finding out that only 44.1 kHz is valid. And you want neutron to downsample so that the os or the bt device don't have to.
Unfortunately, there are 48, 98, 192 and 384 only.
It's Huawei MediaPad M6 running Android 9. Intersection of earphones (DALI IO-4) and tablet BT codecs sets results in SBC and AAC only (it's relatively new Huawei device already under licensing limits).
Now I start to guess it is more appropriate to avoid demand from NPM too much and to re-encode files to m4a/aac instead of opus - the last one hasn't got 44100 sample rate by design (48kHz only).
Who is online
Users browsing this forum: No registered users and 32 guests