I really wanted to try and figure this out myself, but I'm so new to this, it's really hard for me to know where to begin. I have an unraid server and am looking to create a simple(?) bash script to take a downloaded .mp3 and convert it to .m4b (iTunes audiobook).
Ultimate goals would be:
1. rename downloaded file to input.mp3
2. convert input.mp3 to output .m4b using ffmpeg
3. rename output file to "book - then today's date" ie. "BOOK-February-2-2019.m4b"
That's it. Seems like it would be simple, right?
Any help will be very much appreciated.
Looking for script to convert mp3 to m4b
Re: Looking for script to convert mp3 to m4b
Do you have a program that could do that conversion?
Then we could help writing the script.
Then we could help writing the script.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Looking for script to convert mp3 to m4b
Yes, ffmpeg does the conversion. I've used it in Windows and this seems to work for me:
But since Unraid is Linux based, batch files won't work.
Code: Select all
ffmpeg.exe -i %%1 -vn -c:a aac -b:a 120k -f mp4 %%1.m4b
Re: Looking for script to convert mp3 to m4b
You could just change it to a script file (.sh) and then replace the % by $.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Looking for script to convert mp3 to m4b
well heck if it's that easy, i'll give it a shot. I'll be back with any issues.