Announcement

Collapse
No announcement yet.

Does anyone know how to count, insert and export images in music files?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does anyone know how to count, insert and export images in music files?

    Does anyone know how to count, insert and export images in music files?
    I cant get AudioGenie to do it...

  • #2
    I'm using Mp3Tag to do work on my music collection. Though I never used it to count or insert images. All I do is to remove them, to downsize the file size.

    Comment


    • #3
      See if this code helps: Note this is for Mp3 files

      Code:
      #Compile Exe
      #Dim All
      #Include Once "win32api.inc"
      #Include Once "Audiogenie3.inc"
      
      Function PBMain() As Long
       Local File As WStringZ * %Max_Path
       Local Mime As WString  
       File = "C:\Music\MyTunes\Aerosmith\Aerosmith - The Other Side.mp3"    'some mp3 file
       Local R As Long
       R = AUDIOAnalyzeFileW(File)                                           'always first Call To Get tag info
       If (R <> %MPEG) Then
        MsgBox File & " Not regcognized As an Mp3 File", %MB_IconError
       Else
        If ID3V2GetFrameCountW(%ID3F_APIC) Then                              'does it have picture(s)
         Mime = Parse$( ID3V2GetPictureMimeW(1), "/", 2)                     'get the mime for #1. Mime = "image/jpeg", "image/bmp", etc
         ID3V2GetPictureFileW Exe.Path$ & "Picture." & Mime, 1               'write out the picture file
        End If
       End If
      End Function

      Comment


      • #4
        Also see https://forum.powerbasic.com/forum/u...016-mp3-tagger

        Comment


        • #5
          Hi Norm, what's the purpose of this tagging the mp3 ?

          Comment


          • #6
            Tim - an Mp3 Tag (ID3V2 tag) contains a world of information about the Mp3 File. Artist, Title, Album, Composer, Genre, Year, Track Number and many more.
            Also it contains Lyrics and Album Cover Art in the form of a jpeg, bmp, tif, gif, etc.
            All of these are demonstrated in the app I submitted. See Post #4 above.

            Comment


            • #7
              Thanks Norm but when I downloaded your code from
              https://forum.powerbasic.com/forum/u...016-mp3-tagger

              It can't be compile as Bass.inc is missing?

              Comment


              • #8
                Tim, I use Jose's includes which has the file bass.inc.
                It is used in Tools.inc in a class called cBass

                Comment


                • #9
                  Norm,
                  You must have downloaded that separately. Bass.inc and Tools.inc are not in J. Roca includes WINAPI_III_107.

                  Comment


                  • #10
                    ffmpeg is very handy! Google ffmpeg.

                    Comment


                    • #11
                      Originally posted by Jim Fritts View Post
                      Norm,
                      You must have downloaded that separately. Bass.inc and Tools.inc are not in J. Roca includes WINAPI_III_107.
                      Try the forum search. There's quite a few hits for "bass.inc", e.g. https://forum.powerbasic.com/forum/u...3-include-file

                      Comment


                      • #12
                        Yup,
                        Then you need Bass.dll.

                        Comment


                        • #13
                          bass.dll and bass.inc missing

                          Comment


                          • #14
                            Maybe this is the bass you need, it´s free for personal use https://www.un4seen.com

                            Comment


                            • #15
                              I found both bass.dll and bassinc.inc in Norm Cook's MP3Player posting here https://forum.powerbasic.com/forum/u...yer#post764647

                              With bassinc.inc renamed to bass.inc I was able to compile and run Norm Cook's MP3Tagger without any issues.

                              Seek and you shall find....

                              Comment

                              Working...
                              X