polewcw.blogg.se

Ffmpeg convert m4a to mp3
Ffmpeg convert m4a to mp3




Convert the combined mp3 into an m4a using afconvert (AFAIK mac-only) to reduce the amount of filesize increase from converting the mp3's to an m4a by utilizing the itunes plus commands ( stackexchange topic apple docs) (my attempts at using ffmpeg for this part resulted in huge file size bloat or long processing times).

ffmpeg convert m4a to mp3

  • Combine the separate mp3s into a single mp3.
  • I still use the python script to generate chapters.txt to be used with m4b-tool's merge script.Īfter a lot of research, I found a CLI solution and wanted to share my findings here (if you're looking for an app to handle this for you, I've had really good luck with Audiobook Binder, which can merge mp3s, m4as, and m4bs into a single m4b with very high efficiency).

    ffmpeg convert m4a to mp3 ffmpeg convert m4a to mp3

    I'm going to be switching over to use their solution instead of my custom ffmpeg/afconvert. ".EDIT: Whelp, looks like m4b-tool is a great CLI tool for just this. I configured the "Quick Action" like this in Automator: I created a new document in Automator, chose the "Quick Action" document type and the "AppleScript" action with the actual script. However, I not know how to work with "audio file in Finder" as input, thanks so much if have your reply Thanks for the modified code. Thanks, I change the code with "Get Selected Files in Finder" as input to support multi files (on my laptop, MacOS Monterey version 12.5 ) Set convert to do shell script "/usr/local/bin/ffmpeg ' " & theOutputFilePath & ".mp3 " & "' -i ' " & theInputFilePath & "' -codec:a libmp3lame -qscale:a 1 " set theOutput to theOutputFilePath & ".mp3 " end repeat end tell return theOutput Set theOutputFilePath to text item 1 of theInputFilePath Set theInputFilePath to POSIX path of fileAlias

    ffmpeg convert m4a to mp3

    " set title to text 1 thru text item -2 of fileName Set AppleScript's text item delimiters to ". Set fileExtension to name extension of fileAlias Set fileAlias to fileitem as alias set fileName to name of fileAlias Tell application "Finder " repeat with fileitem in input






    Ffmpeg convert m4a to mp3