Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Has anyone created custom tracks for PSP on Linux?


Miles Edgeworth
 Share

Recommended Posts

Miles Edgeworth

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

  • 2 weeks later...
Miles Edgeworth

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

  • 5 months later...
Vice City criminal

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.