+ Reply to Thread
Results 1 to 19 of 19

MP3 File Info Details

  1. #1
    Registered User
    Join Date
    09-29-2014
    Location
    New Zealand
    MS-Off Ver
    Office 365
    Posts
    16

    MP3 File Info Details

    I need some help with trying to extract details from MP3 files that I use for work purposes.

    I have a library of over 900 MP3 tracks and I found the attached excel file that runs a macro which reads a music folder and extracts details of the MP3 tracks. There is one parameter that I need to extract but I'm unsure what string I need to use. I need to extract the composer details. The file has the following code that extracts the other details I require.


    Please Login or Register  to view this content.
    I've tried every number between 1 and 100 after 'filename' but none extract the composer details. I know the composer details exist in the metadata of the file as it lists the composers when I view the MP3 file properties in windows explorer. I tried to attach a short MP3 to this post, but got invalid file.

    If anybody can assist me with this then that would be much appreciated.

    The original author of the xls file requests on their webpage for no contact for help with their files, but states he is happy for people to freely use the file.

    Cheers
    Harry
    Attached Files Attached Files
    Last edited by JBeaucaire; 10-02-2014 at 12:19 PM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: MP3 File Info Details

    Hi,

    It's rather difficult to comment unless we have at least one of the files that contains the data. Please upload that too.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    09-29-2014
    Location
    New Zealand
    MS-Off Ver
    Office 365
    Posts
    16

    Re: MP3 File Info Details

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    It's rather difficult to comment unless we have at least one of the files that contains the data. Please upload that too.
    The data is the actual MP3 files (over 900 of them). The macro in the original post attachment opens up an explorer window and I navigate to the folder containing the MP3 files.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: MP3 File Info Details

    Hi,

    I understand that but without having one of the files we aren't able to step through the macro in order to work out what needs changing in order to extract the composer details.

  5. #5
    Registered User
    Join Date
    09-29-2014
    Location
    New Zealand
    MS-Off Ver
    Office 365
    Posts
    16

    Re: MP3 File Info Details

    Ok. I did try and upload a mp3 file but the uploader wouldn't show any of my mp3 files even though all file types was selected. Tried the basic uploader and got invalid file type.

    In theory the macro should work on any folder containing MP3 tracks. Obviously you'd need to check that the test file contained metadata with composer information.

    If you want I can upload sample mp3 files to dropbox and paste download link here.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: MP3 File Info Details

    Hello kiwi_harry,

    This macro will list all the MP3 with the information you have listed. It creates a header row in row 1 and then lists the files from row 2 down.

    Be sure to change the fodler path to where your files are located. It is highlighted in blue font in the macro.
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 10-01-2014 at 10:43 PM.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  7. #7
    Registered User
    Join Date
    09-29-2014
    Location
    New Zealand
    MS-Off Ver
    Office 365
    Posts
    16

    Re: MP3 File Info Details

    Hi Leith.

    That code didn't seem to extract the composer details.

    Here is a link to a dropbox folder that contains 2 short MP3 files.
    https://www.dropbox.com/sh/tlq390k8u...I0V62ZHOa?dl=0

    A snip of the file properties shows the composer information
    Track 60 GOML.JPG
    Track 208 FD01.JPG

    Regards
    Harry

    Quote Originally Posted by Leith Ross View Post
    Hello kiwi_harry,

    This macro will list all the MP3 with the information you have listed. It creates a header row in row 1 and then lists the files from row 2 down.

    Be sure to change the fodler path to where your files are located. It is highlighted in blue font in the macro.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: MP3 File Info Details

    Hi,

    The composer is embedded in the file name string. Try this small adapation of Leith's code which adds the composer as the last column.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-29-2014
    Location
    New Zealand
    MS-Off Ver
    Office 365
    Posts
    16

    Re: MP3 File Info Details

    Thanks Richard.

    That works, but as you indicated the composers name is a string in the filename.

    A new music library that I am starting to use doesn't have the composer name in the filename. I've removed the composer names from the files I uploaded to emulate how the new library I'm using presents its tracks.

    I don't have an actual sample file from the new library as the portable hard drive is at one of my workplaces. I'm working there on Sunday evening, so can grab a file then to upload if required.

  10. #10
    Registered User
    Join Date
    09-29-2014
    Location
    New Zealand
    MS-Off Ver
    Office 365
    Posts
    16

    Re: MP3 File Info Details

    Hi Richard and Leith.

    I have found the relevant string I need. It was Item, 232.

    It works on all of my MP3 files that has composer metadata including commercially available MP3's.

    Here is the code.

    Please Login or Register  to view this content.
    Thanks to both of you for your assistance.

    Regards
    Harry

  11. #11
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: MP3 File Info Details

    Hello Harry,

    Here is a utility macro I created to list the index numbers and file details. They have changed from time to time depending on which version of Windows your are running.
    Please Login or Register  to view this content.

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: MP3 File Info Details

    @Kiwi - I see you are now using the CODE tags correctly, thanks for that. I've added the missing ones to post #1. Carry on...
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  13. #13
    Registered User
    Join Date
    09-29-2014
    Location
    New Zealand
    MS-Off Ver
    Office 365
    Posts
    16

    Re: MP3 File Info Details

    Thanks Jerry. Apologies for not tagging.

    Have my file working and outputting exactly as I want it now.

    Cheers

  14. #14
    Registered User
    Join Date
    09-29-2014
    Location
    New Zealand
    MS-Off Ver
    Office 365
    Posts
    16

    Re: MP3 File Info Details

    Today when I went to update my music file data, found composer information was not being extracted.

    Last week I had updated the OS on my PC from Windows 8.1 to Windows 10, so looks like file information has changed between OS versions. After sequentially running through the different item numbers found the new value is now 236.

    Updated code is:
    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    04-12-2021
    Location
    Piraeus, Greece
    MS-Off Ver
    2019
    Posts
    3

    Re: MP3 File Info Details

    Quote Originally Posted by kiwi_harry View Post
    Today when I went to update my music file data, found composer information was not being extracted.

    Last week I had updated the OS on my PC from Windows 8.1 to Windows 10, so looks like file information has changed between OS versions. After sequentially running through the different item numbers found the new value is now 236.

    Updated code is:
    Please Login or Register  to view this content.
    Hi! Great work! It's very helpful! How can I find each attribute's number e.g. composer is number 236 so that I can add or remove info at will? Could you send a list? Thanks in advance!

  16. #16
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: MP3 File Info Details

    See: https://www.msofficeforums.com/159836-post3.html. In addition to outputting all possible attributes, the code there outputs the attribute headers.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  17. #17
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: MP3 File Info Details

    Hi Dimitris and welcome to the forum.

    Good to see you've used the Search functionality and found this 7 year old file, not many do.

    We like people to start their own threads rather than picking up on existing threads, that can just cause confusion in the middle of a series of questions and answers, particularly where circumstances and data may be slightly different.
    In addition those who were parties to the original thread may not be here anymore.

    Admittedly neither of those apply in your case, nevertheless can I suggest you start a new thread and include a link to this thread for reference.

  18. #18
    Registered User
    Join Date
    04-12-2021
    Location
    Piraeus, Greece
    MS-Off Ver
    2019
    Posts
    3

    Re: MP3 File Info Details

    Also something else. Is there a way to get excel to let me choose the file via message box instead of giving it a set folder path?

  19. #19
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: MP3 File Info Details

    Quote Originally Posted by dimitris152 View Post
    Also something else. Is there a way to get excel to let me choose the file via message box instead of giving it a set folder path?
    As I said. Create your own new thread.

    Your 'also something else' demonstrates the point that hijacking a thread with your own special requirement gets confusing and is contrary to our rules.

    I don't expect to see any more responses here which address your special variation. Please note.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 02-10-2014, 11:52 AM
  2. Create folder, excel file, pdf file, clear details macro
    By cemartinho in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2013, 08:52 AM
  3. Replies: 0
    Last Post: 08-21-2012, 01:19 AM
  4. How to add Time & Date details in file name using VBA
    By Alan Stuart in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-08-2010, 11:42 AM
  5. List file details into a worksheet, is it possible?
    By JoshS in forum Excel General
    Replies: 1
    Last Post: 12-15-2008, 11:51 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1