title
Products            Buy            Support Forum            Professional            About            Codec Central
 

example of reading/writing xml metadata?

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

    • Jan 2011
    • 39

    example of reading/writing xml metadata?

    I was wondering if there are any examples of using the "write metadata file" and "read metadata file" DSP options.

    Perhaps some detailed information on how they work, what tags the "read" option looks for, etc.

    Thanks
    Gary
  • Spoon
    Administrator
    • Apr 2002
    • 44506

    #2
    Re: example of reading/writing xml metadata?

    If you specify no xml definition file, all the tags are written and all tags are read in the format it expects.
    Spoon
    www.dbpoweramp.com

    Comment

    • chipchadryan

      • Sep 2014
      • 3

      #3
      Re: example of reading/writing xml metadata?

      Originally posted by Spoon
      If you specify no xml definition file, all the tags are written and all tags are read in the format it expects.
      Where do you specify an XML definition file? "Read metadata file" only allows for an XSLT file selection.

      (Apologies if this is a dumb question -- I'm just starting out with dbpoweramp. Some examples would be really helpful.)

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44506

        #4
        Re: example of reading/writing xml metadata?

        Yes the XSLT file specifies which fields are written to the XML and the layout.
        Spoon
        www.dbpoweramp.com

        Comment

        • chipchadryan

          • Sep 2014
          • 3

          #5
          Re: example of reading/writing xml metadata?

          What about reading from an XML file? How do I assign a source XML?

          Comment

          • Spoon
            Administrator
            • Apr 2002
            • 44506

            #6
            Re: example of reading/writing xml metadata?

            Try using the write xml effect, then use the read xml to read the same xml. This will show the default format required.
            Spoon
            www.dbpoweramp.com

            Comment

            • chipchadryan

              • Sep 2014
              • 3

              #7
              Re: example of reading/writing xml metadata?

              Originally posted by Spoon
              Try using the write xml effect, then use the read xml to read the same xml. This will show the default format required.
              Maybe I'm misunderstanding what these effects are used for. Do they always have to be used together, in series? Is "Read metadata file" only able to translate/transform the output of "Write metadata file"?

              Comment

              • paultaylor

                • Oct 2016
                • 16

                #8
                Re: example of reading/writing xml metadata?

                I think the idea is you use the writexml to export the metadata from each audio file as it is read, then you can use readxml to read the metadata into the converted file.
                But between the write and read you can use an xlst file to make necessary adjustments to the xml before it is read into the new file.

                For example, ID3 metadata (e.g wav/mp3/aif) often uses TXXX fields for custom data it allows you to store name and value, when dbpoweramp converts to VorbisComments (e.g ogg/flac) it creates a field for each TXXX frame with the same name as the name. But sometimes there a conversion is needed such TXXX:MusicBrainz Album Id in ID3 should be MUSICBRAINZ_ARTISTID in VorbisComments. DbPoweramp doesnt do this by default but you can use xslt to change MusicBrainz Album Id to MUSICBRAINZ_ARTISTID in the xml, so then it is read correctly into the Flac/Ogg file.

                My question is, are there any example XLST files available to get us started ?

                Comment

                • Silentdrum

                  • Jan 2017
                  • 4

                  #9
                  Re: example of reading/writing xml metadata?

                  Where do you put the xml files so they can be read before ripping/converting?

                  Comment

                  Working...

                  ]]>