Author Topic: Aiff format conversion no longer works  (Read 3754 times)

Bee-liever

  • Member
  • Sr. Member
  • *****
  • Posts: 3833
  • MB Version: 3.6.8849 P
MB 3.3.6965
with reference to here: https://getmusicbee.com/forum/index.php?topic=27870.0
The "native" configuration no longer can find the "Encoder" for Aiff encoding.
MusicBee and my library - Making bee-utiful music together


Bee-liever

  • Member
  • Sr. Member
  • *****
  • Posts: 3833
  • MB Version: 3.6.8849 P
Thank you.
It's converting now, but if you have a look at a produced file with MediaInfo, it's not actually an .aif file.

It's a signed 16-bit PCM little-endian .wav file with an .aif extension.

It needs to be big-endian to be an .aif/.aiff file.

little-endian would need to compressed with sowt to make it an .aif/.aifc file.
MusicBee and my library - Making bee-utiful music together

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34346

Bee-liever

  • Member
  • Sr. Member
  • *****
  • Posts: 3833
  • MB Version: 3.6.8849 P
MB 3.3.6973.29056
still producing little endian mis-named wav file

MusicBee and my library - Making bee-utiful music together

Bee-liever

  • Member
  • Sr. Member
  • *****
  • Posts: 3833
  • MB Version: 3.6.8849 P
Just for comparison, the same file converted with FFmpeg:

MusicBee and my library - Making bee-utiful music together

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34346
If you edit the file with a editor such as notepad ++ you can see it has an AIFF header. The content is PCM but according to wikipedia that is expected.
The files play fine in any player i tried

Bee-liever

  • Member
  • Sr. Member
  • *****
  • Posts: 3833
  • MB Version: 3.6.8849 P
I just tried converting another FLAC file to AIFF.
In Notepad++ the produced file still has a RIFF/WAVE format header
Code
RIFFl9ÙWAVEfmt      D¬  ±   dataH9Ù                                  

The files play fine in any player i tried
The files play fine because they are wave files.

The files I normally convert with FFmpeg have the proper FORM/AIFF header
Code
FORMb_\AIFFNAME   Intruder (Radio Edit) COMM     ˜—Ä @¬D      SSNDb_                   


it doesnt look like it was ever implemented
Maybe this is why it wasn't implemented  ;)
MusicBee and my library - Making bee-utiful music together

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34346
i dont know why you are seeing WAVE headers, its working fine for me and produces AIFF headers. I will leave this unsolved

Bee-liever

  • Member
  • Sr. Member
  • *****
  • Posts: 3833
  • MB Version: 3.6.8849 P
Maybe it's because I have FFmpeg installed and the "Native" encoder that the config file points to is no longer a valid path for my machine.
Do you know which Windows 10 codec it should be referring to?
MusicBee and my library - Making bee-utiful music together

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34346
i am afraid i have no idea why you get this behavior. AIF and WAVE output are handled natively by the bass library, and there is no dependency on any external encoder

sveakul

  • Sr. Member
  • ****
  • Posts: 2460
Bee-liever:  using MB 3.3.6973, I tried a file conversion from FLAC to AIFF using the built-in Format Converter;  it did indeed produce a proper Apple/SGI AIFF format file with 16-bit PCM and Big endian.  I use Windows 7 SP1 32-bit.  From MediaInfo:

General
Complete name                            : (path) Prelude - After The Goldrush.aif
Format                                   : AIFF
Format/Info                              : Apple/SGI
File size                                : 21.6 MiB
Duration                                 : 2 min 8 s
Overall bit rate mode                    : Constant
Overall bit rate                         : 1 411 kb/s

Audio
Format                                   : PCM
Format settings                          : Big
Duration                                 : 2 min 8 s
Bit rate mode                            : Constant
Bit rate                                 : 1 411.2 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 kHz
Bit depth                                : 16 bits
Stream size                              : 21.6 MiB (100%)

Bee-liever

  • Member
  • Sr. Member
  • *****
  • Posts: 3833
  • MB Version: 3.6.8849 P
Yep. Seriously weird!  :o
Tried on two other machines (all have been portable MB) and still got .wav files  ::)

Must be a southern hemisphere thing  ;D
MusicBee and my library - Making bee-utiful music together

sveakul

  • Sr. Member
  • ****
  • Posts: 2460
Bee-liever:  This is a "long shot", but what version of bassenc.dll are you using?  The description of this library over at un4seen reads:

"An extension that allows BASS channels to be encoded using command-line encoders with STDIN support (LAME/OGGENC/etc), or ACM codecs (on Windows) or CoreAudio codecs (on OSX/iOS), or user-provided encoders. Also features streaming of encoded data to clients directly or via Shoutcast and Icecast servers, and PCM WAV/AIFF file writing. C/C++, Delphi, and Visual Basic APIs are included."

AFAIK, the last version of bassenc.dll supplied by MusicBee is 2.4.9.1 from way back in March 2012;  being one of those "update freaks", I have been using the 2.4.14.0 version (yep same number as the latest bass.dll) from July 2018, available here:  http://www.un4seen.com/download.php?bassenc24 .

Why not try that one and see what happens??
Last Edit: February 05, 2019, 12:32:04 AM by sveakul

Bee-liever

  • Member
  • Sr. Member
  • *****
  • Posts: 3833
  • MB Version: 3.6.8849 P
Thanks sveakul. :)

Updated bassenc.dll to version 2.4.14.0 and now working perfectly

Not too much of a "long shot" after all!
MusicBee and my library - Making bee-utiful music together