mbucari / aaxclean Goto Github PK
View Code? Open in Web Editor NEWDecrypt Audible aax and aaxc files.
License: GNU General Public License v3.0
Decrypt Audible aax and aaxc files.
License: GNU General Public License v3.0
In this ticket, Error decoding AAC frame. Code BEBBB1B7
was thrown by AAXClean.
In Libation v11.2 I upgraded to .net8. Too many Mac users were getting weird errors so I deleted 11.2. This bug in question is neither Mac nor 11.2 so I'm considering it a legitimate bug.
I love the idea behind your program. But I don't understand the "ReadMe" documentation.
Like I'm able to install something like youtube-dl that doesn't have a GUI and runs off command line.
But I've never seen anything like the style of commands that's shown in the readme.
Any chance we could get a more newb friendly release of your program?
Details here: rmcrackan/Libation#854 (comment)
As in title, I've been looking for a way to remove certain tags from my audiobook files, but with this tool I only managed to make them empty. I want to remove the whole field, not just set it to an empty value.
Hi!
Really impressed with the decryption / writing speed of this project, started using it instead of ffmpeg as it seems to be able to decrypt and write files in seconds :}
I was wondering if you could take a look at this issue? When writing the M4B, the chapters seem to get mixed up in order. This only happened to 1 .aax so far, the others are all in order.
Here is the original aax layout aax MediaInfo
And here is the finished M4B layout m4b MediaInfo
I'm not intercepting or modifying the file in any way myself, using only aaxcFile.ConvertToMp4a(File.Open($"{file}.{ext}", FileMode.OpenOrCreate, FileAccess.ReadWrite));
Decrypting with ffmpeg has the output file with ordered chapters. Is there any method to reorganize the chapter order to force them in order of increments (eg, if AAXClean reads them in the order of, 06, 01, 02, 07.., it would force them to 01, 02, 03..)
@Mbucari Respect to your work.
Is it possible to create a CLI binary of AAXClean
which I can bundle with my audible-cli
package?
Best regards
hello Dear
can you please make windows Gui for me ?
i dont know about programming but i want to use that to convert in mp3
thank you so much
Happens for me with this audiobook: https://www.audible.de/pd/Alle-diese-Welten-Hoerbuch/3837146618
Playing it with vlc works seemlessly, but when opening with ffmpeg, it echos out this errors:
Converting the file with ffmpeg results in the first error not appearing.
This error makes it impossible to use the audiobook with AudioBookShelf. Streaming atleast, because it encodes it with hls while streaming with this command:
ffmpeg -seek_timestamp 1 -f concat -safe 0 -i audiobook.m4b -y -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename out/output-%d.ts out/final-output.m3u8
After many weeks of more or less intensive development, I released a first version of my own Audible client a week ago. I called it Book Lib Connect. Originally I wanted to integrate download functionality into AAX Audio Converter right from the beginning, but then decided against it and to publish the downloader as a stand-alone app first.
Among a number of reported issues with the new app, one appears to be targeting AAXClean.
It seems that AAXClean might muddle the embedded chapter data. Book Lib Connect uses AAXClean in "no-frills" mode, Single aaxc in, Single m4b out, No external chapter arguments. embedded chapters only.
In audiamus/BookLibConnect#3 a user reported - after solving the original issue of hierarchical chapter data in the Audible server json response - that the book did not convert to MP3 in full, using AAX Audio Converter. It has 78 chapters but was cut short after 66. AAX Audio Converter delegates conversion to FFmpeg as I mentioned before. To track it down, I substituted FFmpeg with the latest release and the problem was gone. So, for the moment, we have a workaround. However, I became curious that the real course might be something different. I asked the user to inspect both the .aaxc (as downloaded) and the .m4b file (as decrypted by AAXClean) with MediaInfo. And there is a big difference: the chapter order. In the m4b file it is incorrect, starting near the end of the book and continuing with the earlier chapters further down, and chapter time offsets all wrong for that range.
I attach the user's MediaInfo findings:
Mediainfo.Todesreigen.AAXC.plus.m4b.zip
This sounds like a most interesting project.
I am currently using FFmpeg throughout in my project AAX Audio Converter.
Besides copy/decrypt operations for AAX to MP4 (M4A/M4B), conversion to MP3 is crucial as well. And due to some apparent flaws in the metadata structure for some AAX files, pure AAC stream extraction is also being used.
However, an essential feature of AAX Audio Converter are the file splitting options. These are not only most important for me and an important reason to create this converter in the first place, but many app users also turned to like them.
Proper file splitting first requires silence detection in the audio stream, governed by parameters level and duration. The output of FFmpeg is somewhat limited here, as it is all text and the field width is too small for long books. But there are ways around that.
From the detected silences I build some sort of cue sheet and then split the input or an intermediate file. If chapters are to play a role in this splitting operation, I adjust the chapter marks to silence positions, particularly necessary with the "named chapters" json info, as those chapter marks are usually inaccurate.
So, to be able to replace FFmpeg in my project with your lib some time in the future, silence detection and time-based splitting would be needed. It would be great if you can give this a thought. The advantage of an integrated solution versus extra processes is obvious.
This seems to be the only issue at the moment, so I'm making it a new issue. @audiamus
Hi! I was rewriting my old project, and updated AaxClean to 0.5.12, but am facing issues with this new version.
I've ensured the activation bytes are correct. All it does is write a blank file, not throwing any exceptions.
I'm not sure if I should include any other information, please let me know if so.
Attached is the written file, renamed to .log, along with the example code tried.
outFile.mb4.log
AaxFile encryptedFile = new AaxFile(File.OpenRead(@"cmage.aax"));
encryptedFile.SetDecryptionKey("1613711c");
_=encryptedFile.ConvertToMp4aAsync(File.OpenWrite(@"outFile.m4b"));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.