customizetalk.com Forum Index customizetalk.com
Customizing Google Talk
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trick to make Google Talk read your mp3s tags correctly

 
Post new topic   Reply to topic    customizetalk.com Forum Index -> Tips & Tricks
View previous topic :: View next topic  
Author Message
bramp
Talk n00bie


Joined: 21 Oct 2006
Posts: 2

PostPosted: Sat Oct 21, 2006 10:30 pm    Post subject: Trick to make Google Talk read your mp3s tags correctly Reply with quote

Hey,
So I'm using the lastest version of Google Talk, and a "customised" version of winamp. Because I have changed how winamp displays the title/artist of the current song gtalk incorrect reads my current music track.

What gtalk seems to do is read the artist and track from winamp's caption, and then open the mp3 file and read its ID3 tag for the album name. However I feel it should read everything from the ID3 tag (because it would always incorrect read my artist/track). So to acheive this I have hex edited google talk a little to read nothing from my winamp's caption, and then read everything from the ID3 tag.

I thought others may find this little hack useful, so if you are using version 1.0.0.96 or 1.0.0.98 you can change the following bytes (with a hex editor) in the main googletalk.exe:
Quote:
Google Talk version 1.0.0.96
Address : New Old
000ED113: C7 68
000ED114: 85 00
000ED115: E8 02
000ED116: FB 00
000ED117: FF 00
000ED118: FF 8D
000ED119: 00 85
000ED11A: 00 E8
000ED11B: 00 FB
000ED11C: 00 FF
000ED11D: 90 FF
000ED11E: 90 50
000ED11F: 90 FF
000ED120: 90 75
000ED121: 90 08
000ED122: 90 FF
000ED123: 90 15
000ED124: 90 94
000ED125: 90 D6
000ED126: 90 57
000ED127: 90 00

Google Talk version 1.0.0.98
Address : New Old
000F2755: C7 68
000F2756: 85 00
000F2757: EB 02
000F2758: FB 00
000F2759: FF 00
000F275A: FF 8D
000F275B: 00 85
000F275C: 00 E8
000F275D: 00 FB
000F275E: 00 FF
000F275F: 90 FF
000F2760: 90 50
000F2761: 90 FF
000F2762: 90 75
000F2763: 90 08
000F2764: 90 FF
000F2765: 90 15
000F2766: 90 A4
000F2767: 90 36
000F2768: 90 58
000F2769: 90 00


Hope this little hack is useful to someone
bramp

P.S I was also thinking of writing a little app that pretended to be winamp but was actually a proxy between it and any other music playing device. That way google talk would query it and actually receive the data from another unsupported player (ie foobar, etc). Any comments/suggestions?
Back to top
View user's profile Send private message  
Your Ad Here
vikke
Moderator
Moderator


Joined: 14 Sep 2005
Posts: 867

PostPosted: Sun Oct 22, 2006 12:28 pm    Post subject: Reply with quote

Wow, a cracker! Looks nice.

Can you give me more information on how Google Talk reads the MP3, I'm trying to fake it. Smile
Back to top
View user's profile Send private message   MSN Messenger Google Talk
bramp
Talk n00bie


Joined: 21 Oct 2006
Posts: 2

PostPosted: Sun Oct 22, 2006 4:32 pm    Post subject: Reply with quote

What exactly are you looking for? So far I've only looked in depth at winamp, but here is the order of events:

FindWindow( "Winamp v1.x" ) // Finds the winamp window
SendMessage( IPC_ISPLAYING ) // Finds if winamp is currently playing
SendMessage ( IPC_WRITEPLAYLIST ) // Tells winamp to write out its entire playlist to winamp's directory in a file called winamp.m3u.

// GTalk now queries the registry to find where your winamp path is
RegOpenKey( HKEY_CURRENT_USER \ Software \ Winamp )

//Now using the path it read from the registry it opens this file
Open ( <winamp path> \ winamp.m3u )

// It then parses that file, find the current mp3 you are playing

GetWindowText () // This line now reads the caption in winamp's window to infer as much info as possible.

ReadID3Tags ( mp3file ) // Now it opens the mp3 file and reads any remaining information.

When it reads the ID3 tag, I think it reads the ID3v1 tag first, then reads all the ID3v2 fields.

Also the very first FindWindow is done with some other window names as well, for example microsoft media player, and yahoo's player. I think this is a very simple test to determine which player you are using.

It was a few weeks ago when I did this and my memory is a little rusty, and I only recently posted this because I was hoping google would notice and require me not to have to do this little hack Wink

If you need any more specific information I'll be happy to help.

bramp
Back to top
View user's profile Send private message  
vikke
Moderator
Moderator


Joined: 14 Sep 2005
Posts: 867

PostPosted: Sun Oct 22, 2006 4:54 pm    Post subject: Reply with quote

Hi again Bramp!
Thanks a lot for this useful information.

Could we talk? You can chat with me at vikke93 )A( gmail.com
Back to top
View user's profile Send private message   MSN Messenger Google Talk
Display posts from previous:   
Post new topic   Reply to topic    customizetalk.com Forum Index -> Tips & Tricks All times are GMT
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group