argumentum Posted July 18, 2018 Posted July 18, 2018 (edited) ..so I upgraded to Win10 and a script I use to rename mp3's didn't work. Looked around, and looked around, so I said f** it. So I open the file and see a bunch of null terminated data, so I made an array and got what I wanted. Func mp3RawRead_Comment($f) If Not FileGetSize($f) Then Return "" Local $a, $s, $h = FileOpen($f, 16) Local $b = FileRead($h, 4096) FileClose($h) $s = BinaryToString($b) $a = StringSplit($s, Chr(0)) If UBound($a) < 73 Then Return "" Return $a[71] _ArrayDisplay($a) EndFunc ;==>mp3RawRead_Comment So what is my burning question ?, ...I can't find a "proper" definition that explains why / how / ??, that is there. All I find, is just not congruent to what I see in the file. So no hurry, no big need. Just curious. If you know, let me know Edited July 19, 2018 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
FrancescoDiMuro Posted July 18, 2018 Posted July 18, 2018 Hey @argumentum When you say "rename", you mean the name of the file ( that you can manage even with FileMove() or FileCopy() ), isn't it? Best Regards. Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
careca Posted July 18, 2018 Posted July 18, 2018 Nop, i think he means the id3 tag Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
argumentum Posted July 18, 2018 Author Posted July 18, 2018 5 minutes ago, FrancescoDiMuro said: you say "rename", you mean the name of the file 4 minutes ago, careca said: Nop, i think he means the id3 tag Yep, get the tag data. If you read the code snippet, you'll see that is the data. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
argumentum Posted July 18, 2018 Author Posted July 18, 2018 (edited) ...there should be a list of "entry order", where it tells what data goes in what order on the mp3 header. ( other than the XML part ) Edited July 18, 2018 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
careca Posted July 18, 2018 Posted July 18, 2018 I did an mp3 picture extractor, maybe i can tweak it to read the tags too, but it's tricky, there are a couple of versions of those tags. argumentum 1 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
argumentum Posted July 18, 2018 Author Posted July 18, 2018 Just now, careca said: there are a couple of versions of those tags 3 I believe Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
argumentum Posted July 18, 2018 Author Posted July 18, 2018 2 minutes ago, careca said: maybe i can tweak it to read the tags too the snippet shows I've got the data. What I don't know is the field name =/ Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
careca Posted July 18, 2018 Posted July 18, 2018 I think one option would be to get an mp3 tag editor like mp3tag, and change any mp3 file, with it, changing each field to an unique string, so that you can later identify in the file. Let's say the title could be renamed to titlemp3 the artist to artistmp3 you get the idea. Then you open the file and there you go, everything identified. argumentum 1 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Danyfirex Posted July 19, 2018 Posted July 19, 2018 Hello. Maybe this UDF helps. https://www.autoitscript.com/forum/topic/43950-id3-udf-id3v1-id3v2-mp3-tags/ Saludos argumentum 1 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
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