I'm using BaseEncoder.EncodeFile & EncoderWinampAACplus and I want encode an MP3 file (or mp3 stream) to .m4a file. (pref from the file)
my code
encWinampAAC = New EncoderWinampAACplus(0)
encWinampAAC.InputFile = "test1.mp3"
encWinampAAC.OutputFile = "test.m4a"
encWinampAAC.AACPlus_Bitrate = EncoderWinampAACplus.BITRATE.kbps_128
encWinampAAC.AACPlus_UseMp4Output = True
'MsgBox(encWinampAAC.EncoderCommandLine.ToString)
Dim encResult = BaseEncoder.EncodeFile(encWinampAAC, Nothing, True, False)
This causes windows to dump on the file "enc_aacPlus.exe"
If I change the extension of the output file to ".aac" an aac file is created from the mp3 file as expected.
The EncoderWinampAACplus Class remarks:
The extension of the OutputFile can be either .acc to write an aac bitstream output file or .m4a/.mp4 to box the output to a MP4 container (note, that using m4a/mp4 requires "libmp4v2.dll" to be present).
The EncoderCommandLine reads:
enc_aacPlus.exe "test1.mp3" "test.m4a" --br 128000
But shouldnt it have "--mp4box" in there?
I've search the forum and found an example that seems to show that there is an "AACPlus_Mp4Box" field, but that option is not available under EncoderWinampAACplus for me?
So I guess I'm doing something wrong, any ideas?
In the same folder as my vb.net app I have:
bass.dll
bass.net.dll
bassenc.dll
test1.mp3
enc_aacplus.dll
enc_aacPlus.exe (downloaded via bass.net API help link enc_aacPlus.zip.)
nscrt.dll
MP4Box.exe
libmp4v2.dll (I've tried two versions of "libmp4v2.dll" one is 211KB the other 208KB)
BTW, the windows dump file has this:
*** WARNING: Unable to verify checksum for enc_aacplus.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for enc_aacplus.dll -
WARNING: Stack unwind information not available. Following frames may be wrong.
*** ERROR: Module load completed but symbols could not be loaded for enc_aacPlus.exe
thanks
Mark