Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Problems with interpreting certain AAC/M4B files
« previous next »
  • Print
Pages: [1]

Author Topic: Problems with interpreting certain AAC/M4B files  (Read 2535 times)

Offline Kassius

  • Member
  • *
  • Posts: 7
Problems with interpreting certain AAC/M4B files
« on: December 17, 2023, 08:42:24 AM »
Hi all

I have been using Rockbox on my iPod for audiobook for some time now and it works great with various codecs, including AAC.

I get most of the audiobook from Audible, and Rockbox plays the high resolution 125kbps/44100Hz M4Bs just fine, but with the lower resolutions 62k/22050Hz, the screen starts to freeze and the codec and sample rate shown is wrong. All the are AACs are low complexity, but according to Rockbox the 62k/22050Hz are AAC high efficiency and have a sample rate of 44100 hertz.

I have the same problem with the 32k/22050 though they are playable (due to the lower resolution I assume).

Any suggestions to what might be causing the problem and how to fix it?

For now I convert them to flac (to retain audio quality and because it transcodes faster than opus for instance)

Thank you in advance
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9376
Re: Problems with interpreting certain AAC/M4B files
« Reply #1 on: December 17, 2023, 04:50:10 PM »
The older iPods are too slow to play AAC-HE files. We didn't disable decoding the HE part like Apple does since for a while it looked like it might be possible to decode with more optimization although maybe we should.

If there's an option for regular AAC, just use that.
« Last Edit: December 17, 2023, 04:54:43 PM by saratoga »
Logged

Offline bahus

  • Member
  • *
  • Posts: 221
Re: Problems with interpreting certain AAC/M4B files
« Reply #2 on: December 18, 2023, 01:34:37 PM »
Quote from: Kassius on December 17, 2023, 08:42:24 AM
codec and sample rate shown is wrong

Is it reproducible on latest  daily build?

https://gerrit.rockbox.org/r/c/rockbox/+/5335 can either be the fix or the cause of this issue.
Logged

Offline Kassius

  • Member
  • *
  • Posts: 7
Re: Problems with interpreting certain AAC/M4B files
« Reply #3 on: December 21, 2023, 03:32:26 AM »
Yes, it is the latest daily build and the files are not HE despite what Rockbox thinks.
Logged

Offline Kassius

  • Member
  • *
  • Posts: 7
Re: Problems with interpreting certain AAC/M4B files
« Reply #4 on: December 21, 2023, 03:41:33 AM »
I tried the stable build that does not include the https://gerrit.rockbox.org/r/c/rockbox/+/5335 as far as I can see, but the issue seemed to be the same.
Logged

Offline bahus

  • Member
  • *
  • Posts: 221
Re: Problems with interpreting certain AAC/M4B files
« Reply #5 on: December 21, 2023, 06:45:49 AM »
I might look into it if you can share problematic file.
Logged

Offline Kassius

  • Member
  • *
  • Posts: 7
Re: Problems with interpreting certain AAC/M4B files
« Reply #6 on: December 21, 2023, 01:21:34 PM »
The problem is the same with every 22kHz AAC from Audible I have tried, but not the files I encoded myself with ffmpeg (same settings). How do I share an audio file here? No audio file extensions are allowed..
Logged

Offline Kassius

  • Member
  • *
  • Posts: 7
Re: Problems with interpreting certain AAC/M4B files
« Reply #7 on: December 22, 2023, 03:38:14 AM »
Here is a sample, just rename it to M4B after downloading and it should be alright (probably should have zipped it before uploading). https://drive.google.com/file/d/1Dx95hxXadl8BaBmpBoX7SQlwoIKr2D9d/view?usp=drive_link Thank you for taking the time to look at it
Logged

Offline bahus

  • Member
  • *
  • Posts: 221
Re: Problems with interpreting certain AAC/M4B files
« Reply #8 on: December 22, 2023, 05:33:33 AM »
This file works properly on my device (Sansa Clip Zip). From what I see file contains implicit SBR signaling which means it's AAC-HE file that's backward compatible with AAC-LC format (can be played both as hi quality 44100 HZ and lower quality 22050 HZ)
SBR decoding is enabled on your device (seems enabled for all devices) but your device is not powerful enough.

SBR decoding (see SBR_DEC) should be disabled for not capable devices. It should fix the issue with backward compatible files.
Logged

Offline bahus

  • Member
  • *
  • Posts: 221
Re: Problems with interpreting certain AAC/M4B files
« Reply #9 on: December 22, 2023, 08:43:35 AM »
I prepared test Ipod Video build with SBR decoding disabled. Can you test it?

Ipod Video build:
https://mega.nz/file/9HQklTzB#KnvWhI-6swZe-I6XaaqQTXJWRjnqFUiBtW4RZkKB5Lc

Sources: https://github.com/bahusoid/rockbox/tree/ipodVideoDisableSBR_DEC
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9376
Re: Problems with interpreting certain AAC/M4B files
« Reply #10 on: December 22, 2023, 11:04:02 AM »
Not sure about audible, but there's usually an option to select download format. Since your device can't decode AAC-HE files, it would make sense to download a supported format like regular AAC or MP3. Disabling SBR decoding will enable decoding, but at lower quality since the SBR part of the file will be ignored
Logged

Offline Kassius

  • Member
  • *
  • Posts: 7
Re: Problems with interpreting certain AAC/M4B files
« Reply #11 on: December 23, 2023, 11:03:45 AM »
Thank you very much. The custom build works and the iPod 5G is now playing my audiobook without throttling! As for sound quality I don't hear a difference and even if there is any it not going to be a big problem for speech.

You wouldn't happen to have a script or something to make the building easier when I want a new update?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9376
Re: Problems with interpreting certain AAC/M4B files
« Reply #12 on: December 23, 2023, 01:42:46 PM »
Quote from: bahus on December 22, 2023, 08:43:35 AM
I prepared test Ipod Video build with SBR decoding disabled. Can you test it?

Ipod Video build:
https://mega.nz/file/9HQklTzB#KnvWhI-6swZe-I6XaaqQTXJWRjnqFUiBtW4RZkKB5Lc

Sources: https://github.com/bahusoid/rockbox/tree/ipodVideoDisableSBR_DEC

I think this could be committed although it should check for CPU_PP, not just the faster PP models, since it they don't work the slower ones won't either.
Logged

Offline bahus

  • Member
  • *
  • Posts: 221
Re: Problems with interpreting certain AAC/M4B files
« Reply #13 on: December 23, 2023, 01:53:53 PM »
Quote from: saratoga on December 23, 2023, 01:42:46 PM
I think this could be committed although it should check for CPU_PP

What about PP6100. It looks powerful enough looking at Sansa View CPU frequency (250000000 for sansa vs 11289600 for ipod video). PP6100 seems a dead port but anyway I excluded only PP5002 - PP5022.

Change request: https://gerrit.rockbox.org/r/c/rockbox/+/5548
« Last Edit: December 23, 2023, 03:03:08 PM by bahus »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9376
Re: Problems with interpreting certain AAC/M4B files
« Reply #14 on: December 23, 2023, 03:27:09 PM »
If there's ever a PP6100 device that can play music they can test and see if SBR runs in relatively time.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Problems with interpreting certain AAC/M4B files
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.102 seconds with 21 queries.