Audio/Video Duration

vbimport

#1

Hi There,

I have a problem about CD-Size before burning. I want to allow my user to know free space of CD when adding Audio/Video files to it (Like nero itself), But There is no method or property to get Audio/Video duration or estimate its size after conversation ( MP3 to AudioTrack, or Avi to VideoCDTrack ). My problem is more about Audio files.

Is there a way to get Audio file duration before burning CD?


#2

Is there a way to get Audio file duration before burning CD?

NeroAPI does not currently offer such a functionality. If you somehow get
the information how long in seconds a audio file is, you can use the
following calculation: 1 second is 75 blocks. To know how many blocks
are available you can use NeroGetCDInfo and in the returned struct check
the member ncdiFreeCapacityInBlocks.