Convert OGG to M4A with looping?

Is there any tool I could use for RPG Maker MV to batch convert all the OGG files in the project into M4A files?


I normally use LameXP to do this, but it seems that the music loops from the beginning of the song for M4A files when using this, and some of the files in the project folder fail to convert even though they are playable in RPG Maker MV.


Also, the thing about LameXP is that it converts to MP4 and seems to make duplicates of certain files, so I made a Windows batch script to rename the extensions to M4A so I don't have to do it manually.
have you tried to change the file name replacing the mp4a with ogg?

for some reason it worked for me
Okay first, I'd like to stress that I don't know if it retains the looping, but I have used fre:ac in the past. I THINK ogg files converted from MP3 did... I never checked in a contest project I did, and nobody that played it complained, so I can only assume... Of note, fre:ac will also result in mp4 files, I believe. Renaming to m4a in that case is fine - I'm pretty sure the file format is the same, only the extension is different.


However, what @kovak suggests will not work. Period. Simply changing a file's extension does not change what type it is.
Just use Audacity, it's free.


When you export it, add the LOOPSTART and LOOPLENGTH labels with their respective numbers.

Original thread: https://forums.rpgmakerweb.com/threads/convert-ogg-to-m4a-with-looping.62010/