Comments (16)
My headphones were disconnecting with the same error every few minutes too. I toyed with the settings and switching to CBR with aac_bitrate_mode=0
seems to avoid the issue.
pulseaudio-modules-bt-git r141.3ecf1d7-1
bluez 5.50
libfdk-aac 2.0.0
pulseaudio 12.2
from pulseaudio-modules-bt.
Please build from https://github.com/EHfive/pulseaudio-modules-bt/tree/aac_fix_dev .
If issue not fixed, show me the AAC error log
from pulseaudio-modules-bt.
Thanks for the quick response and attempt at a fix! Unfortunately the error hit again, but I see you've added additional debugging output which will hopefully help:
pulseaudio[13772]: E: [bluetooth] a2dp_aac.c: AAC encoding error, 0x60; frame_count:0, in_bufSizes:4096, out_bufSizes 1332, to_read:4096, to_write:1332, encoded:0
from pulseaudio-modules-bt.
I'm not sure if this will tell you anything, but I tested a few more times and the error is identical every time:
Feb 13 17:15:34 hostname pulseaudio[13772]: E: [bluetooth] a2dp_aac.c: AAC encoding error, 0x60; frame_count:0, in_bufSizes:4096, out_bufSizes 1332, to_read:4096, to_write:1332, encoded:0
Feb 13 17:19:42 hostname pulseaudio[13772]: E: [bluetooth] a2dp_aac.c: AAC encoding error, 0x60; frame_count:0, in_bufSizes:4096, out_bufSizes 1332, to_read:4096, to_write:1332, encoded:0
Feb 13 17:23:53 hostname pulseaudio[13772]: E: [bluetooth] a2dp_aac.c: AAC encoding error, 0x60; frame_count:0, in_bufSizes:4096, out_bufSizes 1332, to_read:4096, to_write:1332, encoded:0
from pulseaudio-modules-bt.
pulseaudio[13772]: E: [bluetooth] a2dp_aac.c: AAC encoding error, 0x60; frame_count:0, in_bufSizes:4096, out_bufSizes 1332, to_read:4096, to_write:1332, encoded:0
The log shows nothing wrong in buffers.
It probably is a AAC encoder's issue.
I pushed a commit to aac_fix_dev which make it initializes necessary AAC encoder modules only.
Also, you might consider upgrading you fdk-aac library.
from pulseaudio-modules-bt.
It seems like I'm running the latest version of fdk-aac (2.0.0), but I'll try git master after giving your update to aac_fix_dev a shot.
from pulseaudio-modules-bt.
I tested your update and still got the error. I then updated to the master branch of fdk-aac and got the error again. Downgrading to v0.1.6 of fdk-aac however seems to have resolved the issue (it's been running successfully for an hour now).
If newer versions of fdk-aac (2.0.0 and above so far) are going to break pulseaudio-modules-bt, would it be worth statically compiling v0.1.6 until things are resolved upstream so other people don't have this issue as well?
Either way, thank you for your help!
from pulseaudio-modules-bt.
If newer versions of fdk-aac (2.0.0 and above so far) are going to break pulseaudio-modules-bt, would it be worth statically compiling v0.1.6 until things are resolved upstream so other people don't have this issue as well?
Actually, I'm OK with fdk-aac 2.0.0.
from pulseaudio-modules-bt.
Still OK with fdk-aac git latest (2.0.0.r100.g95858d7)
pulseaudio v12.2 s16le 2ch 48000Hz
bluez git latest (5.50.r264.g750a26cd9)
from pulseaudio-modules-bt.
Strange, maybe there's something unique about my setup-- I suppose if others have the same configuration quirks and run into this problem they can read this issue and see that they need to downgrade.
Thanks again for your help and this project!
from pulseaudio-modules-bt.
Just noticed your other comment-- for comparison, I'm running:
pulseaudio v12.2 s16le 2ch 48000Hz
bluez 5.50
from pulseaudio-modules-bt.
With fix applied still E: [bluetooth] a2dp_aac.c: AAC encoding error, 0x60; frame_count:0, in_bufSizes:4096, out_bufSizes 1332, to_read:4096, to_write:1332, encoded:0
Now recompiled with downgraded libfdk-aac v0.2.6, also bluez 5.50, pulseaudio 12.2-2
So far no aac encoding errors.
from pulseaudio-modules-bt.
I was having the same issue with libfdk-aac v2.0.0. Downgrading to v0.1.6 seems to have resolved the issue.
pulseaudio v12.2
bluez-git v5.50.r470.g79bf51dbb-1
from pulseaudio-modules-bt.
from pulseaudio-modules-bt.
Hmm, I'm not sure this issue should be closed. It's definitely constantly happening with pulseaudio-modules-bt
, whereas it never happened with upstream bluetooth
module implementation.
In my case, this error seems to consistently trigger within 30 min of Spotify playtime:
dets 11 15:42:42 papaya pulseaudio[89657]: [bluetooth] a2dp_aac.c: AAC encoding error, 0x60; frame_count:0, in_bufSizes:4096, out_bufSizes 1778, to_read:4096, to_write:1778, encoded:0
pulseaudio-13.0
bluez-5.51
fdk-aac-2.0.0
I have bluez-5.52 and fdk-aac-2.0.1 available in unstable, I guess I could try those out.
from pulseaudio-modules-bt.
Hello, I'm also affected by this issue
pulseaudio[2057]: E: [bluetooth] a2dp_aac.c: AAC encoding error, 0x60; frame_count:0, in_bufSizes:4096, out_bufSizes 1332, to_read:4096, to_write:1332, encoded:0
My system is Arch linux, pulseaudio 13.0-3, pulseaudio-modules-bt 1.3-6, bluez 5.54-1, libfdk-aac 2.0.1-1
from pulseaudio-modules-bt.
Related Issues (20)
- ffmpeg_libs.c: Cannot open libavcodec library: libavcodec.so.58. /lib/i386-linux-gnu/libxvidcore.so.4: cannot make segment writable for relocation: Operation not permitted HOT 3
- Support for 2 SBC profiles HOT 2
- [Question] How to change LDAC bit rate or force highest abrQualityModeID HOT 2
- [BUG] bluetooth HSP/HFP does not work with autodetect_mtu=1 HOT 3
- [BUG] Can't build with libpulse/pulseaudio v13.99.3 HOT 2
- Module settings ignored? Cannot connect Bose 700 in Dual Channel SBC HD/XQ mode. HOT 4
- Incompatible with pulseaudio 14.0 release HOT 2
- Packaging issue? Cannot install on Fedora Silverblue 33 using RPM Fusion 33? HOT 2
- [BUG] Only SBC Available on WH-1000xm3 HOT 1
- unsupported codecs on QCC3020 device HOT 5
- [BUG] unable to create file src/modules/alsa/mixer/samples/USB Device 0x46d:0x9a4--USB Mixer: Invalid argument HOT 2
- Get it into official repositories HOT 4
- Pipewire coming to Fedora HOT 10
- Donations HOT 1
- Support for changing AAC frequency cutoff HOT 1
- Errors when trying to use SBC HOT 1
- [BUG] HOT 1
- [BUG] error: pathspec 'v14.0' did not match any file(s) known to git HOT 2
- [BUG] Can no longer switch from HFP/HSP to any other profile HOT 1
- Deprecation Announcement HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulseaudio-modules-bt.