title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Retrieving the length of a file encoded with different codecs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • touff-ray

    • Apr 2007
    • 36

    Retrieving the length of a file encoded with different codecs

    I would like to compare the length of a file A.wma that has been encoded to a file B.mp3 (for example). So, I will use the method called get_AudioProperties (C#) on those files.

    But I am wondering : how reliable is this method ? What is the error margin, depending on the codec ?
  • Spoon
    Administrator
    • Apr 2002
    • 44509

    #2
    Re: Retrieving the length of a file encoded with different codecs

    Depends on encoder used, mp3 can have varying lengths displayed if a VBR encoder is used and hte correct VBR header is not written to the file.
    Spoon
    www.dbpoweramp.com

    Comment

    • touff-ray

      • Apr 2007
      • 36

      #3
      Re: Retrieving the length of a file encoded with different codecs

      And if all the files I want to compare are converted using dBpoweramp ?

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 44509

        #4
        Re: Retrieving the length of a file encoded with different codecs

        Should be almost sample accurate (our mp3 Lame encoding and decoding is), not 100% of WMA, I think it is gapless, but as said not 100% as there are different codecs within WMA.
        Spoon
        www.dbpoweramp.com

        Comment

        • touff-ray

          • Apr 2007
          • 36

          #5
          Re: Retrieving the length of a file encoded with different codecs

          Thank you for all your answers
          And sorry for my weird questions

          Comment

          • touff-ray

            • Apr 2007
            • 36

            #6
            Re: Retrieving the length of a file encoded with different codecs

            Another question comes to my mind : is it possible to get a more precise duration than in seconds with the "get_AudioProperties" method ?

            Comment

            • Spoon
              Administrator
              • Apr 2002
              • 44509

              #7
              Re: Retrieving the length of a file encoded with different codecs

              Yes run dBpoweramp configuration and set the reference options for for length to one of the more accurate ones.
              Spoon
              www.dbpoweramp.com

              Comment

              • touff-ray

                • Apr 2007
                • 36

                #8
                Re: Retrieving the length of a file encoded with different codecs

                Thanks

                Comment

                Working...

                ]]>