getmusicbee.com

Support => Bug Reports => Topic started by: Bee-liever on February 03, 2019, 03:05:15 AM

Title: Aiff format conversion no longer works
Post by: Bee-liever on February 03, 2019, 03:05:15 AM
MB 3.3.6965
with reference to here: https://getmusicbee.com/forum/index.php?topic=27870.0 (https://getmusicbee.com/forum/index.php?topic=27870.0)
The "native" configuration no longer can find the "Encoder" for Aiff encoding.
Title: Re: Aiff format conversion no longer works
Post by: Steven on February 03, 2019, 09:29:47 AM
it doesnt look like it was ever implemented

https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: Aiff format conversion no longer works
Post by: Bee-liever on February 03, 2019, 10:17:57 AM
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.
Title: Re: Aiff format conversion no longer works
Post by: Steven on February 03, 2019, 10:46:22 AM
i have now added big-endian encoding
Title: Re: Aiff format conversion no longer works
Post by: Bee-liever on February 03, 2019, 10:59:24 PM
MB 3.3.6973.29056
still producing little endian mis-named wav file

(https://i.imgur.com/YTITq1i.jpg)
Title: Re: Aiff format conversion no longer works
Post by: Bee-liever on February 04, 2019, 06:04:19 AM
Just for comparison, the same file converted with FFmpeg:

(https://i.imgur.com/1vPuMkX.jpg)
Title: Re: Aiff format conversion no longer works
Post by: Steven on February 04, 2019, 07:07:49 AM
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
Title: Re: Aiff format conversion no longer works
Post by: Bee-liever on February 04, 2019, 07:44:04 AM
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  ;)
Title: Re: Aiff format conversion no longer works
Post by: Steven on February 04, 2019, 08:27:09 AM
i dont know why you are seeing WAVE headers, its working fine for me and produces AIFF headers. I will leave this unsolved
Title: Re: Aiff format conversion no longer works
Post by: Bee-liever on February 04, 2019, 10:43:34 AM
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?
Title: Re: Aiff format conversion no longer works
Post by: Steven on February 04, 2019, 06:09:40 PM
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
Title: Re: Aiff format conversion no longer works
Post by: sveakul on February 04, 2019, 07:57:05 PM
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%)
Title: Re: Aiff format conversion no longer works
Post by: Bee-liever on February 04, 2019, 10:57:17 PM
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
Title: Re: Aiff format conversion no longer works
Post by: sveakul on February 05, 2019, 12:27:32 AM
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 (http://www.un4seen.com/download.php?bassenc24) .

Why not try that one and see what happens??
Title: Re: Aiff format conversion no longer works
Post by: Bee-liever on February 05, 2019, 01:58:07 AM
Thanks sveakul. :)

Updated bassenc.dll to version 2.4.14.0 and now working perfectly

Not too much of a "long shot" after all!
Title: Re: Aiff format conversion no longer works
Post by: sveakul on February 05, 2019, 03:29:29 AM
Hey, that's great!!  Nice to know that my idiosyncrasies pay off once in a while  ;D

Steven, if you're still checking this thread, it would be a good idea to add the latest bassenc.dll to the forthcoming MusicBee33_Patched.zip updates so everyone can take advantage of this--thanks!
Title: Re: Aiff format conversion no longer works
Post by: Steven on February 05, 2019, 07:29:31 AM
Steven, if you're still checking this thread, it would be a good idea to add the latest bassenc.dll to the forthcoming MusicBee33_Patched.zip updates so everyone can take advantage of this--thanks!
thanks for figuring this out and will do
Title: Re: Aiff format conversion no longer works
Post by: Leroy Bad on March 06, 2019, 09:11:09 PM
I'm using version 3.3.7003
And I tried the patch Steven posted, but I still can't rip to AIFF. I'm getting "encoding failed: specified method is not supported"
Title: Re: Aiff format conversion no longer works
Post by: Steven on March 07, 2019, 06:31:25 PM
yes that is the case and is fixed for the next v3.3 update