forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reverse engineering AT3 file format

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Zak



Joined: 16 Aug 2005
Posts: 3

PostPosted: Wed Aug 17, 2005 8:25 am    Post subject: Reverse engineering AT3 file format Reply with quote

Hi there,
as far as I can tell nobody has figured out yet how to create AT3 files with atrac3+ inside.
Is it off-limits to discuss the file structure of those files here?
I've made some observations and only need a little help but if AT3 reverse engineering isn't wanted here I'll respect that.
Back to top
View user's profile Send private message
Thanhda



Joined: 09 Apr 2005
Posts: 331
Location: Canada

PostPosted: Wed Aug 17, 2005 1:12 pm    Post subject: Reply with quote

what do you mean? you want to create at3 files. or convert at3 files to playable audio on the pc? creating it has been done already. you just need sound forge and the at3 codec.

http://forums.ps2dev.org/viewtopic.php?t=2178&highlight=at3
_________________
There are 10 types of people in the world: Those who understand binary, and those who don't...
Back to top
View user's profile Send private message Visit poster's website
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Thu Aug 18, 2005 1:36 am    Post subject: Reply with quote

Sony ATRAC3 music play includes two parts,

The ATRAC3/ATRAC3Plus audio codec. This is ok to talk about. There are limited technical resources that can be found on the net. Also the PC codec which can be used to decode and create .AT3 files.
Apparently AT3 format files needed by some games are not so easy to convert.

----
The other part of "ATRAC" is the Sony DRM for copy protected songs.
Talking about how to use Sonic Stage to copy the DRM protected files is ok [although not a developer question - so don't ask here ;-]
Talk about the file format details and how the DRM works is not ok.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Zak



Joined: 16 Aug 2005
Posts: 3

PostPosted: Thu Aug 18, 2005 11:06 am    Post subject: Reply with quote

There is no atrac3+ codec available. What Thanhda refered me to is the atrac3 codec which has a much lower quality.

I'll let you know what I know about AT3 files (with atrac3+):
They have the usual WAV-header (Riff, fact, ...) and they come in two different versions: on has the SMPL chunk, the other doesn't.
What's interesting is that - unlike any other codec embedded in WAV - they use a FACT chunk of 8 bytes instead of 4. This chunk can be used for codec specific information, in this case it's apparently a code for the number of samples that were in the original file.

I managed to play a few files by injecting their data section into an OMA file created with SonicStage. There is also a converter that renders them to normal WAV files.

I believe it would be interesting to figure out how to play them on PSP without libatrac3plus. And how to make those files. Don't forget that they are the PSP's native format like SID is for C64. However given that the only sample files we have are from the ripped games or the sample disk, I guess discussing it further is against the rules of this forum.

If anyone could point me to a place where I can find help on this matter, please let me know.
Back to top
View user's profile Send private message
zabbyh



Joined: 15 Jul 2005
Posts: 13

PostPosted: Fri Aug 19, 2005 10:06 am    Post subject: Reply with quote

i used a program called goldwave to convert any mp3/wma i had to wav and encoded using the Atrac3 codec, then renamed to.at3 and put it into a game to test it and it worked. I uploaded the tutorial on www.alucard.cc i think. Check it out if you want
Back to top
View user's profile Send private message
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Sat Aug 20, 2005 1:21 am    Post subject: Reply with quote

> Don't forget that they are the PSP's native format like SID is for C64
Hopefully regular ATRAC3 (not plus) is good enough for the game previews and other things that require .AT3 files.
For cases where you want higher quality (like listening to music), the PSP does play back MP3 files.

My general advice for people exploring ATRAC3 for their music is that the hassles aren't worth it (dealing with DRM, SonicStage, stick incompatibilities etc). Encode a slightly larger MP3 will get you similar audio quality for listening.
----
If interested in the details of the ATRAC3/ATRAC3Plus codecs, quality of the compression etc, that's getting beyond the scope of this BBS
http://www.minidisc.org, http://www.minidisc.org/aes_atrac.html

Because of the narrow focus (a Sony proprietary file format), and the fact there is a free codec (ATRAC3 not plus) I don't believe anybody has bothered to go any further to reverse engineer the format. If you want to continue down that path, you may be the first.
BTW: I've seen some comparisons of audio quality in testing, and ATRAC3/Plus is certainly better bit-for-bit than MP3, but not as good as OGG and other more recent codecs. Take it with a grain of salt, like any of these tests
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Stellar



Joined: 12 Dec 2005
Posts: 48

PostPosted: Sat Jan 14, 2006 1:28 pm    Post subject: Reply with quote

i dunno if this has been posted somewhere else on these forums, but i had a hard time finding it. I just wanted custom splash music and found the second post from this page. i built it into my eboot and it works. converted an mp3 to atrac3 :D. tho i wouldnt use that format in a game, its good to make it look polished.
_________________
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Mon Sep 08, 2008 4:14 am    Post subject: Reply with quote

Reviving an OLD topic but...
Can't you extract the Atrac3Plus data from a file that has been made using SonicStage?

There is an OMA/OMG source filter installed which allows other applications to open these files. The data is then decoded to PCM by a filter called OMG TRANSFER.

You can use SonicStage to create AT3+ OMA files, and dump the data from the OMA and put it in a WAV-AT3.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group