Giter Site home page Giter Site logo

Comments (16)

Schlaefer avatar Schlaefer commented on July 24, 2024 1

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.

EHfive avatar EHfive commented on July 24, 2024

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.

prurigro avatar prurigro commented on July 24, 2024

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.

prurigro avatar prurigro commented on July 24, 2024

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.

EHfive avatar EHfive commented on July 24, 2024

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.

prurigro avatar prurigro commented on July 24, 2024

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.

prurigro avatar prurigro commented on July 24, 2024

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.

EHfive avatar EHfive commented on July 24, 2024

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.

EHfive avatar EHfive commented on July 24, 2024

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.

prurigro avatar prurigro commented on July 24, 2024

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.

prurigro avatar prurigro commented on July 24, 2024

Just noticed your other comment-- for comparison, I'm running:

pulseaudio v12.2 s16le 2ch 48000Hz
bluez 5.50

from pulseaudio-modules-bt.

tobiolo avatar tobiolo commented on July 24, 2024

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.

Neurognostic avatar Neurognostic commented on July 24, 2024

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.

tobiolo avatar tobiolo commented on July 24, 2024

from pulseaudio-modules-bt.

lkraav avatar lkraav commented on July 24, 2024

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.

xhpohanka avatar xhpohanka commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.