I couldn't find a geeklet for getting the title and artist when playing music in VLC, so I made one.
The only way I found was to start the web interface and take the data there. Look here on how to start it: http://wiki.videolan.org/Documentation:Modules/http_intf
The output string is changed on row 15 in the script.
-- ### SETTINGS FOR THE OUTPUT STRING ###
set theOutputFormatString to theOutTitle & " - " & theOutArtist & " (" & theOutCurrentPlayingTime & "/" & theOutDuration & ")"
-- ### END SETTINGS ###
And that looks like: Forever This - Fries & Bridges (0:11/3:48)
If you need any other information from VLC, in the terminal do:
curl -s http://localhost:8081/requests/status.xml
And start coding!