Miles Edgeworth Posted July 1, 2019 Share Posted July 1, 2019 GTA:LCS didn't support simply MP3s or OGGs. Instead, R* released a tool to convert Audio CD to the custom format recognizable by the game. However, a much more convenient way (just using MP3s or WAVs) was made by Codemasters and available online as Codemasters_EACSetup.zip. The result is a WAV container with ATRAC3 proprietary audio codec: General Complete name : Running in the 90s (Initial D).gta Format : Wave File size : 4.49 MiB Duration : 4 min 44 s Overall bit rate : 132 kb/s FileExtension_Invalid : act at9 wav Audio Format : Atrac3 Format/Info : Adaptive Transform Acoustic Coding 3 Codec ID : 270 Codec ID/Hint : Sony Duration : 4 min 44 s Bit rate : 132 kb/s Channel(s) : 2 channels Sampling rate : 44.1 kHz Compression mode : Lossy Stream size : 4.49 MiB (100%) Now, what's the problem? This encoder is Windows-only and using Wine isn't exactly a solution. That's why I tried to make a Bash script to do the job: #!/bin/bash # parameters: "video link" "name" mkdir /tmp/gtamusic path="$PWD" cd /tmp/gtamusic || exit youtube-dl "$1" -x -o "1.out" # download an audio file if [ "$(mediainfo --Output='Audio;%SamplingRate%' "1.*")" != "44100" ]; then # ATRAC3 doesn't support 48 kHz, so we need to convert if necessary for i in 1.*; do # youtube-dl keeps changing extension of YouTube audio, often to OPUS, so we guess ffmpeg -i "$i" -ar 44100 "2.wav" # WAV is the safest option done atracdenc -e atrac3 -i "2.wav" -o "3.at3" # convert to ATRAC3 else atracdenc -e atrac3 -i "1.*" -o "3.at3" # convert to ATRAC3 fi cd "$path" || exit ffmpeg -i "/tmp/gtamusic/3.at3" -f wav -acodec copy -bitexact "$2.gta" # pack in WAV container rm -rf /tmp/gtamusic Obviously, since I'm making this topic, this doesn't work, GTA just skips the song. I looked at the headers and one thing that caught my eye was that func block is 8 bytes long in working files and contain 00 04 00 00 as the last four bytes. Files created by this script have this block 4 bytes long, adding 00 04 00 00 and changing sizes of segments didn't make it work. According to some random site about RIFF, this part contains info about number of samples, so I assume it depends on song length. I suspect the culprit here is the encoder with its "WARNING: ATRAC3 is uncompleted, result will be not good )))" string, but since the console will be 15 this year, GTA: LCS - 14, I wonder - was someone better than me and managed to create a working file? Link to comment Share on other sites More sharing options...
Helegad Posted July 3, 2019 Share Posted July 3, 2019 Try this guide. Use a Windows XP VM. Link to comment Share on other sites More sharing options...
Miles Edgeworth Posted July 12, 2019 Author Share Posted July 12, 2019 That's exactly what I'm doing right now, but with much less steps (this tutorial is really bad if you ask me, very technical where it shouldn't be in the first place), as stated in my 1st paragraph. Link to comment Share on other sites More sharing options...
Vice City criminal Posted December 29, 2019 Share Posted December 29, 2019 I did but for Windows. don't know how Different would it be for Linux, but what I did was just using an audio converter to convert my mp3 files to .WAV and THEN used EAC (Exact Audio Copy by codemasters). though I had to create a virtual hard drive with daemon tools lite so I could use EAC. then I just pressed on the EAC menu (top left corner) and then on the option "Convert MP3 music to Harddisk" and chose a recently converted .WAV file. the program then converts your file to .TOC after that you just change your .TOC file to .gta and paste it to your PSP (or PPSSPP) Custom Tracks folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now