Benutzer-Werkzeuge

Webseiten-Werkzeuge


en:howtos:aax2mp3_neu

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
en:howtos:aax2mp3_neu [2022/02/18 08:09] – Externe Bearbeitung 127.0.0.1en:howtos:aax2mp3_neu [2023/11/15 15:05] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
-===== Hörbücher ins MP3 Format bringen (ein eigener Weg) =====+===== Convert audiobooks to MP3 format (an own way) =====
  
-Es ist soweitich habe mich entschieden den Aufwand für die Audible Konvertierung zu minimierenDa ich schon seit längerem Pathon lernen wolltehabe ich mich entschlossen dies mit Python zu implementieren.\\+The time has comeI've decided to minimize the effort involved in Audible conversionSince I've wanted to learn Pathon for a long timeI decided to implement it with Python.\\
  
-Ich will hier beschreiben, wie das Audible Format nach MP3 konvertiert werden kann und wie ich dies implementiert habe.\\+I want to describe here how to convert Audible format to MP3 and how I implemented it.\\
  
-Eines vorwegIch bescheibe keinen Weg Audio Books von DRM Beschränkungen zu befreiensondern nur wie man selbst gekaufte Audible Inhalt ins MP3 Format bringt, um sie auf Geräten zu nutzen, die das AAX Format nicht unterstützen.\\+First of allI am not going to describe a way to free audio books from DRM restrictionsjust how to convert Audible content you have bought yourself into MP3 format for use on devices that do not support the AAX format.\\
  
-Seit Juli 2015 unterstützt das freiverfügbare Utiliy [[https://ffmpeg.org/|ffmpeg]] das Dekodieren von AAX. Der passende Parameter lautet "-activation_bytes xxxxxxxx"Dies funktioniert problemlos, sobald man den Wert für xxxxxxxx ermittelt hatdazu aber später. [[https://ffmpeg.org/|ffmpeg]] zu benutzen ist allerdings eine Wissenschaft für sich 8-) .\\+Since July 2015, the freely available utility [[https://ffmpeg.org/|ffmpeg]] supports AAX decodingThe matching parameter is "-activation_bytes xxxxxxxx"This works fine once you get the value for xxxxxxxx, but more on that laterUsing [[https://ffmpeg.org/|ffmpeg]] is a science in itself though 8-) .\\
  
-Ich bin faulwollte also eine möglichst elegante Methode entwickeln mit einem Doppelklick alles zu erledigen. Audible Dateien können mit den verschiedensten Programmen zusammenarbeitenhier musste ich die richtige Wahl treffenZur Auswahl stehen+I'm lazyso I wanted to come up with the most elegant way to do everything with a double click. Audible files can work with a wide variety of programsso I had to make the right choice hereYou can choose from
-  * Der Audible Manager - einstmals gedacht um am Laptop die Titel anzuhören +  * The Audible Manager - once intended to listen to titles on a laptop 
-  * Itunes - wird benötigt um .aax Files auf dem Iphone oder den, damals noch hergestellten Ipods, anzuhören +  * Itunes - is required to listen to .aax files on the iphone or the ipods that were still made at the time 
-  * Audible App - Der letzte Schreieine App um auf dem Handy oder dem PC, ohne Software von Drittanbietern, den Geschichten zu lauschen+  * Audible App - The latest crazean app to listen to stories on your phone or PC without third-party software
  
-Wie genau man an die Activation Bytes kommt findet ihr [[.:howtos:aax2mp3_neu:get_activation_bytes|hier]] als Step-by-Step Anleitung\\+You can find exactly how to get the activation bytes [[.:howtos:aax2mp3_neu:get_activation_bytes|here]] as a step-by-step guide\\
  
-Nachdem ich mit "ffmpeg -activation_bytes 7db19102 -i <hoerbuch.aax> <hoerbuch.mp3>" erfolgreich ein komplettes Hörbuch in ein einzelnes MP3 umgewandelt habegingen mir ein paar Punkte durch den Kopf und ich fand darauf folgende Antworten:\\ +After successfully converting a complete audiobook into a single MP3 with "ffmpeg -activation_bytes 7db19102 -i <hoerbuch.aax> <hoerbuch.mp3>", a few points went through my mind and I found the following answers:\\ 
-  * im MP3 Format fehlen die Kapitel +  * the chapters are missing in MP3 format 
-    * Das Hörbuch muss kapitelweise aufgeteilt werdendie ffmpeg Optionen "-ss" und "-to" sind geeignet +    * The audiobook must be divided into chaptersthe ffmpeg options "-ss" and "-to" are suitable 
-  * Kann ich die Qualtität der Ausgabe beeinflussen+  * Can I influence the quality of the output
-    * Natürlich bietet ein Encoder dazu Möglichkeiten, "-qscale:a 3" (der Wert entspricht einer variablen Bitrate von 150-195, siehe [[https://trac.ffmpeg.org/wiki/Encode/MP3|die ffmpeg Dokumentation]] +    * Of course, an encoder offers ways to do this, "-qscale:a 3" (the value corresponds to a variable bitrate of 150-195, see [[https://trac.ffmpeg.org/wiki/Encode/MP3|the ffmpeg documentation ]] 
-  * Wo sind die Metadatenwie Titel, Album etc, hin +  * Where did the metadata like titlealbum etc go 
-    * Man muss ffmpeg explizit anweisen diese mitzunehmen, "-map_metadata 0" kopiert die globalen Metadata  +    * You have to explicitly instruct ffmpeg to take this with you, "-map_metadata 0" copies the global metadata 
-  * Wenn ich das in Kapitel aufteile brauche ich pro Kapitel einen eigenen Titel und die Tracknummer +  * If I divide this into chapters, I need a separate title and track number for each chapter 
-    * Auch das geht - "-metadata title='Kaptitel 1' -metadata track='001'" +    * This works too - "-metadata title='Chapter 1' -metadata track='001'" 
-  * Das Ganze soll möglichst ohne manuelles Zutun geschehen +  * The whole thing should happen without manual intervention if possible 
-    * Ich will ja nicht immer mit der Maus ein Hörbuch auswählensondern alle neuen Hörbücher in einem Rutsch bearbeiten +    * I don't always want to select an audio book with the mousebut edit all new audio books in one go 
-      * Das Programm braucht ein Eingabe Verzeichnis und ein Ausgabe VerzeichnisAlle im Eingabeverzeichnis befindlichen Hörbücher werden konvertiert und danach als erledigt gekennzeichnet. Letzteres wird, nach erfolgreicher Bearbeitung, durch Verschieben in das Unterverzeichnis "converted" erledigtIm Ausgabeverzeichnis wird pro Hörbuch ein eigenes Unterverzeichnis angelegt (basierend auf dem Album Titel). +      * The program needs an input directory and an output directoryAll audio books in the input directory are converted and then marked as completed. The latter is done after successful processing by moving it to the "converted" subdirectoryA separate subdirectory is created for each audio book in the output directory (based on the album title). 
-  * Die Vorgaben zur Konvertierung müssen gespreichert werden können +  * It must be possible to save the conversion specifications 
-    * Ein zweites Programm zur Pflege der Einstellungen muss als GUI erstellt werden+    * A second program for maintaining the settings must be created as a GUI
  
-Nun frisch ans Werk und mit einer, mir bis dato nur rudimentär bekannten, Programmiersprache die Aufgabe lösenDrei Tage späternach heftiger Nutzung einer Suchmaschinenach Analysieren von bestehendem Code (siehe [[https://stackoverflow.com/questions/30305953/is-there-an-elegant-way-to-split-a-file-by-chapter-using-ffmpeg]]), viel Kleinarbeit und Optimierung der ffmpeg Optionen war es geschafftIch habe nun 2 Python Skripts und kann die von der Audible App heruntergeladen Hörbücher automatisch ins MP3 Format bringenIch stelle dies jedermann zur freien Verfügungbitte aber darum mir VerbesserungenFehlerbehebungen usw. mitzuteilenDie Email Adresse findet ihr im Impressum [[https://www.onkelhartwig.de/impressum.php|meiner Webseite]].\\+Now get to work and solve the task with a programming language that I only know rudimentarilyThree days laterafter heavy use of a search engineafter analyzing existing code (see [[https://stackoverflow.com/questions/30305953/is-there-an-elegant-way-to-split-a-file-by -chapter-using-ffmpeg]]), a lot of detail work and optimization of the ffmpeg options was doneI now have 2 Python scripts and can automatically convert the audiobooks downloaded from the Audible app to MP3 formatI'm making this freely available to everyonebut please let me know about any improvementsbug fixes, etcYou can find the email address in the imprint [[https://www.onkel-hartwig.de/impressum.php|my website]].\\
 \\ \\
-[[https://www.onkelhartwig.de/downloads/|Onkelhartwigs Download Verzeichnis]] +[[https://gitlab.com/onkelhartwig/bulk-aax-to-mp3-conversion|download directory at GitLab]]
- +
- +
  
en/howtos/aax2mp3_neu.1645171795.txt.gz · Zuletzt geändert: 2022/02/18 08:09 von 127.0.0.1