How to programmatically merge two aac files into one?

I am looking catfor aac music files (that uses iTunes).

Use case: my father-in-law will not touch computers, except for audio books that he downloads to his iPod. I taught him the basics of iTunes (Windows), but his library is a mess. Turns out iTunes is optimized for listening to podcasts and random songs from your library, not audiobooks.

I would like to write a script (preferably python, but convenient with other things) to import its audiobooks in a compact way, combining the tracks of each CD into your favorite aac file (.m4b?) And then adding this to iTunes so that it appears in the audiobooks section.

I found out how to talk with iTunes (there is a COM interface in Windows, look for the iTunes SDK). Using this interface, I can use iTunes to rip CDs to aac format. This is the actual concatenation of the aac files I'm having problems with. Unable to find the desired material on the network ...

+3
source share
4 answers

I created a free program called "Chapter and Verse" to combine m4a (AAC) files into a single m4b audiobook file with section tags and metadata.

- AAC itunes (, , ), . . www.lodensoftware.com

SlideShow Assembler, QT SDK , MP4v2. MP4v2.

, iPod. . Apple .

.

+5

Python , , Python Audio Tools. CLI, , , , , , , . . python, , , , CLI. , , cat . ( FAAC/FAAD2 AAC, , )

+1

I did not see the aac codec library for python, but you could use wav files as an intermediate format.

You can extract the tracks from the CD as wav files, and then use the wave module to combine them into one large file, which can then be converted by itunes to aac. This can significantly increase processing time due to the size of the data, but it will be quite simple, and you do not need external libraries.

0
source

Source: https://habr.com/ru/post/1707901/


All Articles