Helpful ReplyA serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio output...

Page: 123 > Showing page 1 of 3
Author
parco
Max Output Level: -89 dBFS
  • Total Posts : 92
  • Joined: 2013/06/01 05:49:24
  • Location: Hong Kong
  • Status: offline
2017/05/18 11:33:27 (permalink)

A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio output...

There are so many terrible crackle noises when I tried to dither and export a 64bit floating point processed master audio into 24bit and encoded into FLAC file from SONAR. I thought that's because my audio gears, so I'd tried to clean all of them, but nothing helps....
 
So I decided to look into that flac file then I found those crackle sounds inside:

 
 
 
 
But when I tried to dither into 16bit and encode into FLAC from SONAR, no any crackle problems.
 
And so next, I tried to export the dithered 24bit result into wav file, and then encoded into FLAC by my own FLAC 1.3.2 codec downloaded from FLAC official website, all things are alright and no more crackle sounds finally!!

 
 
So you guys can compare about the crackle sounds from waveforms above at the exactly same sample positions....
 
And I found those crackle sounds appear only when I encode a 24bit result with final master clippings into FLAC.
When I encode a 24bit result with absolutely no any clippings or even no samples are all 1, all things are alright and absolutely no more any crackle sounds from the FLAC output.
 
So let me make a simple conclusion here:
Dithering 64bit into 24bit FLAC with clippings in SONAR: so many terrible crackle sounds.
Dithering 64bit into 24bit FLAC with all sounds below 0dB in SONAR: no crackle sounds.
Dithering 64bit into 16bit FLAC with clippings in SONAR: no crackle sounds.
Dithering 64bit into 24bit wav file with clippings in SONAR, and then encoded into FLAC with my own FLAC 1.3.2 codec: no crackle sounds.
 
So...... would it be the time for SONAR to stop using its "libFLAC 1.0.26pre5 20141125" and upgrade its FLAC codec into the latest up-to-date verison 1.3.2? 
 
 
My config:
SONAR platinum 23.4.0.38
Magix (Sony) sound forge 11 build 345
Windows 10 pro 1703 x64
Echo AudioFire 4
Nectar Impact GX61
Intel 2600
#1
THambrecht
Max Output Level: -73 dBFS
  • Total Posts : 867
  • Joined: 2010/12/10 06:42:03
  • Location: Germany
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 13:21:20 (permalink) ☄ Helpfulby tlw 2017/05/18 13:31:40
Maybe my English is not enough and I understand something wrong.
Why is a "Master" clipped ?? We master for clients. The loudest peak is -0,2 dB.
No Master, no track, no bus maybe clipped or reach 0.
Therefore the FLAC-Converter must make nonsense if he had to convert clipped audio. That is no Bug. 

We digitize tapes, vinyl, dat, md ... in broadcast and studio quality for publishers, public institutions and individuals.
4 x Intel Quad-CPU, 4GHz Sonar Platinum (Windows 10 - 64Bit) and 14 computers for recording tapes, vinyl ...

4 x RME Fireface 800, 2 x Roland Octa Capture and 4 x Roland Quad Capture, Focusrite .... Studer A80, RP99, EMT948 ...

(Germany)  http://www.hambrecht.de
#2
tlw
Max Output Level: -49.5 dBFS
  • Total Posts : 2567
  • Joined: 2008/10/11 22:06:32
  • Location: West Midlands, UK
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 13:33:26 (permalink)
If the master bus is clipping then you are going to get crackling because the clipping gets converted/output along with everything else.

The master bus should never be allowed to go over 0dB.

Sonar Platinum 64bit, Windows 8.1 Pro 64bit, I7 3770K Ivybridge, 16GB Ram, Gigabyte Z77-D3H m/board,
ATI 7750 graphics+ 1GB RAM, 2xIntel 520 series 220GB SSDs, 1 TB Samsung F3 + 1 TB WD HDDs, Seasonic fanless 460W psu, RME Fireface UFX, Focusrite Octopre.
Assorted real synths, guitars, mandolins, diatonic accordions, percussion, fx and other stuff.
#3
parco
Max Output Level: -89 dBFS
  • Total Posts : 92
  • Joined: 2013/06/01 05:49:24
  • Location: Hong Kong
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 14:11:12 (permalink)
no internal track/bus/rendering/inter-plugins clipping i meant, i use 64bit FP from raw clips until the final down sampling, so clippings are only occurred when dithering down sample bit size.
 
I don't think there are any problems while clippings in the really final stage to CD, as well as the most popular music albums today globally let some of their drums clip a little bit, like linkin park, Michael Jackson 2000s collections, etc........ some of a little drums should clip a little bit in the final stage for me, which well in controlled.
 
So sorry but my 16bit version of the same clipping track does not contain any crackle sound inside, whatever by listening or searching inside its waveforms. there are no crackle sounds as well even in my 24bit wav file version and the 3rd-party FLAC 1.3.2 version, if you guys really know reading the waveforms i've shown above and read those crackle locations at the exactly same positions....
 
So common senses tell us those crackle sounds are not from my original clippings........ maybe you guys still have not read my post completely yet...........
 
Dithering 64bit into 24bit FLAC with clippings in SONAR: so many terrible crackle sounds.
Dithering 64bit into 24bit FLAC with all sounds below 0dB in SONAR: no crackle sounds.
Dithering 64bit into 16bit FLAC with clippings in SONAR: no crackle sounds.
Dithering 64bit into 24bit wav file with clippings in SONAR, and then encoded into FLAC with my own FLAC 1.3.2 codec: no crackle sounds.

#4
THambrecht
Max Output Level: -73 dBFS
  • Total Posts : 867
  • Joined: 2010/12/10 06:42:03
  • Location: Germany
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 15:38:06 (permalink)
There are a lot of problems if you do the final stage to CD with clipped audio.
In the second graphic there is a broken waveform by 01:22.170 and a distortion by 01:22.180
We have 15 years experience with digitazing tapes and vinyl. Also with mastering AudioCDs for a lot of clients.
OK - there is no crackle - but THIS waveforms will result as crackles by a lot of CD-players. You should also never reach 0 dB, because a lot of CD-Player crackle by reaching 0dB.
Our company has also ripped over 50.000 CDs to harddrive for a lot of consumers for example for the German National Library. We know the specifications. But I'm limited in writing and reading, because I must translate german into english.
 

We digitize tapes, vinyl, dat, md ... in broadcast and studio quality for publishers, public institutions and individuals.
4 x Intel Quad-CPU, 4GHz Sonar Platinum (Windows 10 - 64Bit) and 14 computers for recording tapes, vinyl ...

4 x RME Fireface 800, 2 x Roland Octa Capture and 4 x Roland Quad Capture, Focusrite .... Studer A80, RP99, EMT948 ...

(Germany)  http://www.hambrecht.de
#5
Anderton
Max Output Level: 0 dBFS
  • Total Posts : 14070
  • Joined: 2003/11/06 14:02:03
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 15:41:37 (permalink)
I think the "bug" is in your file handling, not the conversion process. I opened up the waveform and enlarged it. You say the waveforms aren't clipping yet even if the clipping is intentional, the waveform is hitting 0. Conversion processes sometimes need headroom.
 

 
Normalize your "masters" to -1 dB and see if the crackles still occur. Then if you want a higher level, normalize the converted file to -0.1. BTW if you submit a master that hits 0 for more than a certain number of samples, most CD duplication houses will reject the master because they assume that hitting 0 means that clipping has occurred.

The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
#6
Psychobillybob
Max Output Level: -73 dBFS
  • Total Posts : 882
  • Joined: 2003/11/13 20:52:44
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 15:42:10 (permalink)
The fact that you get unwanted artifacts ONLY when dithering from 24 bit into the same encoder seems to point to a code error...it is obviously a math issue because dithering the same clips 16 versus 24 gets different results...

My guess is you are correct and Sonar probably needs to pay more attention to FLAC than they have in the past, typically home studios do not really do the majority of their work in FLAC but it is becoming a defacto standard in future proof studio environments...24 bit lossless high Khz recordings are becoming standard sub genres in almost all the places I work with...so a little bit of code tweaking might be in order here.

Frankly it seems a little odd to me that you would get crackles at 24 and NOT 16, that seems backwards dithering at 16 bit give you LESS headroom than dithering at 24 bit...I am not convinced its a code issue unless you can replicate it on another project...anomalies happen.

By the way, there is absolutely no reason to have clipping in a DAW, its just bad form...Sonar (and about a hundred other vendors) offers a decent limiter...it's there for a reason...

I'm using SOnar Platinium on a 6 core Lynx Audio machine and a ton of vintage pre-amps/eq's/comps I build for fun and sometimes money, REDD.47/API/Neve I also use the UAD stuff, and also use a Macbook Logic 9 through Apogee...
#7
Noel Borthwick [Cakewalk]
Cakewalk Staff
  • Total Posts : 6475
  • Joined: 2003/11/03 17:22:50
  • Location: Boston, MA, USA
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 16:21:47 (permalink) ☄ Helpfulby glasser 2017/05/18 18:49:46
SONAR gets its FLAC implementation from LIBSNDFILE - we don't include FLAC directly. I see some updates for FLAC from LIBSNDFILE. Can you download the latest libsndfile DLL from their site and see if it fixes your issue?
You can download it here http://www.mega-nerd.com/libsndfile/#Download
The latest from there is Version 1.0.28. You should be able to replace the libsndfile-1.dll file in the Cakewalk programs folder with the newer one and test.

Noel Borthwick
Senior Manager Audio Core, BandLab
My Blog, Twitter, BandLab Profile
#8
parco
Max Output Level: -89 dBFS
  • Total Posts : 92
  • Joined: 2013/06/01 05:49:24
  • Location: Hong Kong
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 16:32:33 (permalink)

I thought every sound engineers should know how to read waveforms but it seems like I was wrong......... 
For clippings leading to other troubles than flac encoding, they are another matters. I will deal with but not now this stage. I can fade down the level of Izotope limiters, change the limiting rules or make them soft-clipping (round-angle clippings) or more and more other ways. So it's not necessary to worry about that for me, I know the Pope is Catholic and Paris is in France of course. 
 
Only Psychobillybob here is the smart one and really understand what's the problem I described. the same clipping track is completely alright when bouncing into 16bit flac or 24bit wav file, and encoding by FLAC 1.3.2 is completely alright as well. I can't imagine how complicated would the topic be.......
 
 
And I can't understand why today 2017 SONAR is still using the testing version "pre5" of FLAC (or something like beta/alpha versions) and not any stable versions of FLAC like 1.3.2, 1.3.1 or previous.........
I think v.1.0.26 of 25th Nov 2014 is an antique FLAC version.........
#9
parco
Max Output Level: -89 dBFS
  • Total Posts : 92
  • Joined: 2013/06/01 05:49:24
  • Location: Hong Kong
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 17:02:19 (permalink)
Noel Borthwick [Cakewalk]
SONAR gets its FLAC implementation from LIBSNDFILE - we don't include FLAC directly. I see some updates for FLAC from LIBSNDFILE. Can you download the latest libsndfile DLL from their site and see if it fixes your issue?
You can download it here http://www.mega-nerd.com/libsndfile/#Download
The latest from there is Version 1.0.28. You should be able to replace the libsndfile-1.dll file in the Cakewalk programs folder with the newer one and test.




 
just tried, replaced with the April 2017 1.0.28 one, and the FLAC tag shows "reference libFLAC 1.3.2 20170101" now, but nothing helps....... the same crackles are still existed......... 
Strange...... all things are going alright while I bounce 24bit wav file then encode into FLAC by myself......... 
#10
Anderton
Max Output Level: 0 dBFS
  • Total Posts : 14070
  • Joined: 2003/11/06 14:02:03
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 17:07:10 (permalink)
parco
For clippings leading to other troubles than flac encoding, they are another matters. I will deal with but not now this stage. 



I'm confused. You concluded in your first post:
 
Dithering 64bit into 24bit FLAC with clippings in SONAR: so many terrible crackle sounds.
Dithering 64bit into 24bit FLAC with all sounds below 0dB in SONAR: no crackle sounds.
 
Wouldn't that imply that clipping is the source of the crackle sounds? 
 
Anyway, try Noel's suggestion of downloading the latest encoder and see if that helps. I tried a FLAC export using the existing encoder of three 64-bit files (one with peaks at -0.1, one with peaks at 0, and another where after normalizing I applied 3 dB of gain to cause intentional clipping) with Pow-R 3 dithering and there are no crackles in any of the exports. I used signed 24-bit PCM as the Sub-Format. To investigate any further, I would need a more precise recipe to reproduce because I cannot obtain the results you obtain, except for no crackles with signals under 0.

The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
#11
parco
Max Output Level: -89 dBFS
  • Total Posts : 92
  • Joined: 2013/06/01 05:49:24
  • Location: Hong Kong
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 17:17:44 (permalink)
but
 
Dithering 64bit into 16bit FLAC with clippings in SONAR: no crackle sounds.
Dithering 64bit into 24bit wav file with clippings in SONAR, and then encoded into FLAC with my own FLAC 1.3.2 codec: no crackle sounds.

 
I use 250ms buffer for fast bounce. and pow-r 2 dither, 64bit engine turned on, but all other checkboxes are unchecked except the 64bit and fast bounce.
#12
mettelus
Max Output Level: -22 dBFS
  • Total Posts : 5321
  • Joined: 2005/08/05 03:19:25
  • Location: Maryland, USA
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 17:20:05 (permalink) ☄ Helpfulby pwalpwal 2017/05/18 17:37:37
You have 64 bit Double Precision Engine checked? Try unchecking that and see what happens.

ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
#13
THambrecht
Max Output Level: -73 dBFS
  • Total Posts : 867
  • Joined: 2010/12/10 06:42:03
  • Location: Germany
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 18:21:00 (permalink) ☄ Helpfulby mettelus 2017/05/19 03:38:25
Just testet with +12dB clipped.
With 64 Bit Double Precision I get a lot of artefacts in The FLAC-file.
Without 64 Bit Double Precision I see no difference between Source and FLAC.

We digitize tapes, vinyl, dat, md ... in broadcast and studio quality for publishers, public institutions and individuals.
4 x Intel Quad-CPU, 4GHz Sonar Platinum (Windows 10 - 64Bit) and 14 computers for recording tapes, vinyl ...

4 x RME Fireface 800, 2 x Roland Octa Capture and 4 x Roland Quad Capture, Focusrite .... Studer A80, RP99, EMT948 ...

(Germany)  http://www.hambrecht.de
#14
Noel Borthwick [Cakewalk]
Cakewalk Staff
  • Total Posts : 6475
  • Joined: 2003/11/03 17:22:50
  • Location: Boston, MA, USA
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 18:33:37 (permalink)
parco
but
 
Dithering 64bit into 16bit FLAC with clippings in SONAR: no crackle sounds.
Dithering 64bit into 24bit wav file with clippings in SONAR, and then encoded into FLAC with my own FLAC 1.3.2 codec: no crackle sounds.

 
I use 250ms buffer for fast bounce. and pow-r 2 dither, 64bit engine turned on, but all other checkboxes are unchecked except the 64bit and fast bounce.




If its still happening with the latest FLAC support in LIBSNDFILE its hard to say where the issue is.
You may need to provide a project file with the audio that exhibits this problem. Just upload it somewhere and provide a link.

Noel Borthwick
Senior Manager Audio Core, BandLab
My Blog, Twitter, BandLab Profile
#15
interpolated
Max Output Level: -74 dBFS
  • Total Posts : 830
  • Joined: 2015/03/26 17:34:58
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 18:42:04 (permalink) ☄ Helpfulby THambrecht 2017/05/18 18:53:59
"FLAC does not support floating point samples..." Source: https://xiph.org/flac/faq.html
 
Perhaps the floating point information is being replaced by anomalies because of that.
 I read somewhere that even the best converters will give you up to +/- 0.05dB  dBFS headroom between the quietest and maximum volume.
 

I have computer stuff.
 
https://soundcloud.com/sigmadelta
#16
THambrecht
Max Output Level: -73 dBFS
  • Total Posts : 867
  • Joined: 2010/12/10 06:42:03
  • Location: Germany
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 18:56:38 (permalink)
https://xiph.org/flac/faq.html:
It's unlikely FLAC will ever support floating-point samples natively. The main application for floating-point is audio engineering, which demands easy editing and very high speed for both encoding and decoding above everything else.

FLAC is designed as a consumer audio format ... for playback.

We digitize tapes, vinyl, dat, md ... in broadcast and studio quality for publishers, public institutions and individuals.
4 x Intel Quad-CPU, 4GHz Sonar Platinum (Windows 10 - 64Bit) and 14 computers for recording tapes, vinyl ...

4 x RME Fireface 800, 2 x Roland Octa Capture and 4 x Roland Quad Capture, Focusrite .... Studer A80, RP99, EMT948 ...

(Germany)  http://www.hambrecht.de
#17
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
  • Total Posts : 26036
  • Joined: 2006/09/17 11:23:23
  • Location: Everett, WA USA
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/18 22:14:27 (permalink)
As noted above, FLAC is integer data only. Any overflow values, when converted to integer data, will fold over - positive values become negative values and vice versa. This is exactly what your screenshot illustrates. Those abrupt transitions from positive-going to negative-going sound like loud pops or crackles (depending on their duration).
 
This is not a bug in the FLAC encoder. It's basic binary arithmetic. 
 
Always check for overs before you export to any integer format, including 16- or 24-bit wave, MP3 or FLAC. Overs should be considered a technical fault that needs to be fixed before exporting.


All else is in doubt, so this is the truth I cling to. 

My Stuff
#18
parco
Max Output Level: -89 dBFS
  • Total Posts : 92
  • Joined: 2013/06/01 05:49:24
  • Location: Hong Kong
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 06:50:04 (permalink)
But my master file is a 64bit wav file so I have to turn on 64bit engine, otherwise.... truncate to 32bit before dithering and noise shaping?
 
And then that's even more stranger........ should it process all things and truncate in internal PCM streams before sending to libsndfile/libflac? Can't imagine about doing dithering and truncation just inside libsndfile/libflac........
 
In common sense, that should be: 64bit file -> all pre-processes -> re-sampling if need -> dithering + noise shaping -> truncate to 24bit PCM -> send 24bit PCM samples into libsndfile/libflac module
I can't imagine if libsndfile/libflac or mega-nerd they get enough funds to pay the patent royalty of luxuriously expensive POW-R dither. Only Cakewalk and Avid Pro Tools and other large DAW systems paid. Even Sound Forge has not paid for POW-R.
 
So, if like what THambrecht said, there're something to do with 64bit engine, before truncation and sending into libsndfile/libflac, then there should be something wrong inside SONAR somewhere else, but totally nothing to do with libsndfile or libflac...... only 24bit samples are sent to libsndfile/libflac but not any 64bit FP samples.....
#19
parco
Max Output Level: -89 dBFS
  • Total Posts : 92
  • Joined: 2013/06/01 05:49:24
  • Location: Hong Kong
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 06:56:18 (permalink)
Noel Borthwick [Cakewalk]
parco
but
 
Dithering 64bit into 16bit FLAC with clippings in SONAR: no crackle sounds.
Dithering 64bit into 24bit wav file with clippings in SONAR, and then encoded into FLAC with my own FLAC 1.3.2 codec: no crackle sounds.

 
I use 250ms buffer for fast bounce. and pow-r 2 dither, 64bit engine turned on, but all other checkboxes are unchecked except the 64bit and fast bounce.




If its still happening with the latest FLAC support in LIBSNDFILE its hard to say where the issue is.
You may need to provide a project file with the audio that exhibits this problem. Just upload it somewhere and provide a link.




That is just a remastering work for a music with copyright already, so I just processed the most works in some single track softwares else and only decreased bit size in SONAR, and thus I didn't keep any SONAR project files for that.
 
I have that processed 44100Hz 64bit wav file in my hands, but due to the problem of copyright, I'm not allowed to post that file here. Would you mind if I send to you by PMs?
#20
interpolated
Max Output Level: -74 dBFS
  • Total Posts : 830
  • Joined: 2015/03/26 17:34:58
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 09:30:42 (permalink)
A 64-bit file won't change the sound, it will increase the size of it.
 

I have computer stuff.
 
https://soundcloud.com/sigmadelta
#21
parco
Max Output Level: -89 dBFS
  • Total Posts : 92
  • Joined: 2013/06/01 05:49:24
  • Location: Hong Kong
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 10:03:02 (permalink)
interpolated
A 64-bit file won't change the sound, it will increase the size of it.
 


converting 24bit into 64bit won't change the sound, but then process the 64bit with sth like mixing, faders, pans, EQ or other effects always change the sound of bits lower than the original 24bit, especially in the fraction bits on the right hand side of decimal point. Just search inside the Cakewalk bitmeter VST then you will know.
 
That's why Cakewalk provides you a 64bit audio engine, Avid and RME give you 48bit (56bit actually) engine. Because audio processing usually need some algorithms like divisions, root, log, sin, cos, tan, etc....... Try 2/3 or square root of 2, 3 or 5 then you will know what I'm talking about. And also floating point samples give you dynamic headroom by movable decimal point, so you don't need to worry about clipping in track, bus or any rendering stages before final master output.......
#22
azslow3
Max Output Level: -42.5 dBFS
  • Total Posts : 3297
  • Joined: 2012/06/22 19:27:51
  • Location: Germany
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 10:38:23 (permalink)
While I tend to agree with whatever algorithms Sonar apply, what is 1. should stay 1.,
but with all the knowledge you have about algorithms you still try to play the game 0.0000000000234 / 0.0000000000234 under different bit depths. I mean you try to achieve best possible audio quality intentionally making it worse possible by letting end user DA crashing on digital clipping. Is that smart?   

Sonar 8LE -> Platinum infinity, REAPER, Windows 10 pro
GA-EP35-DS3L, E7500, 4GB, GTX 1050 Ti, 2x500GB
RME Babyface Pro (M-Audio Audiophile Firewire/410, VS-20), Kawai CN43, TD-11, Roland A500S, Akai MPK Mini, Keystation Pro, etc.
www.azslow.com - Control Surface Integration Platform for SONAR, ReaCWP, AOSC and other accessibility tools
#23
parco
Max Output Level: -89 dBFS
  • Total Posts : 92
  • Joined: 2013/06/01 05:49:24
  • Location: Hong Kong
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 10:45:25 (permalink)
that's still fine, my users they tend to love a little bit well controller colored clippings of various drum sounds for dancing music, house, disco, hiphop, R&B, or even acoustic funk (of course no those clippings in orchestra-only music, so it has to depend on genres). They told me that they only care about how long is the "sound tails" of the dry sounds...... too short? they are not going to pay me.........
 
But anyway we are not going to discuss about this in this thread.....
#24
mettelus
Max Output Level: -22 dBFS
  • Total Posts : 5321
  • Joined: 2005/08/05 03:19:25
  • Location: Maryland, USA
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 13:59:43 (permalink)
The 64-bit DPE is for computational purposes, and has had known issues in the past as being the culprit behind certain processes going south (why that stuck out when you said you are using it).
 
As far as an audio file itself is concerned, a 64-bit audio file is overkill to the max... it has already gone far beyond the capability of human hearing at 32-bit. The computations associated with 24-bit files is why higher word lengths are used (to allow for higher precision math)... the end result is still dithered back down.
 
Unfortunately, as technology advances, everyone thinks "more is better" when the ultimate glass ceiling is the ears of the listener... Technology surpassed human hearing capabilities long ago, so many can only "hear" this difference when they are using visual tools as a crutch.
 
The digital clipping is sort of a "hard stop" issue to always keep in mind. Even though processing can be done to compensate/tolerate this, certain media forms, algorithms, and the like most certaintly cannot (and it is those that cannot that will bite you).

ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
#25
THambrecht
Max Output Level: -73 dBFS
  • Total Posts : 867
  • Joined: 2010/12/10 06:42:03
  • Location: Germany
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 14:04:25 (permalink)
I guess the problem is that SONAR creates floating point samples with the 64-Bit Double Precision - and FLAC cannot convert floating point samples.
FLAC FAQ writes:
In some cases it is possible to losslessly transform samples from an incompatible range to a FLAC-compatible range before encoding.
So the FLAC converter generates crackles although SONAR generates accurate samples, but unfurtunately with floating point samples. Then it is possible that different versions of the FLAC encoder generates different results.
 

We digitize tapes, vinyl, dat, md ... in broadcast and studio quality for publishers, public institutions and individuals.
4 x Intel Quad-CPU, 4GHz Sonar Platinum (Windows 10 - 64Bit) and 14 computers for recording tapes, vinyl ...

4 x RME Fireface 800, 2 x Roland Octa Capture and 4 x Roland Quad Capture, Focusrite .... Studer A80, RP99, EMT948 ...

(Germany)  http://www.hambrecht.de
#26
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
  • Total Posts : 26036
  • Joined: 2006/09/17 11:23:23
  • Location: Everett, WA USA
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 15:17:26 (permalink)
THambrecht
Then it is possible that different versions of the FLAC encoder generates different results.

Not likely. The encoder does not modify the samples it is given, they must already be integer data. You can illustrate this by attempting to use the standalone FLAC encoder on a floating-point file. The encoder aborts with an "unsupported format" error. SONAR knows this and converts the sample data accordingly into a temporary file that's then passed to the encoder.
 
Any samples exceeding 0dB simply cannot be converted to integers. They can exist within SONAR only because floating-point data allows bigger numbers than the number of bits would otherwise accommodate.
 
Trying to convert >0dB values to FLAC is an exercise in futility. Blaming it on the encoder is like pouring 12 oz. of water into an 8 oz. glass and saying it's the glass' fault for getting your feet wet.
 
 
 


All else is in doubt, so this is the truth I cling to. 

My Stuff
#27
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
  • Total Posts : 26036
  • Joined: 2006/09/17 11:23:23
  • Location: Everett, WA USA
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 15:23:36 (permalink) ☄ Helpfulby THambrecht 2017/05/19 18:13:44
pacor: this effect is not the same as letting analog hardware clip a signal for added color. For that, use a digital clipper. It will give you the desired distortion while assuring that individual sample values remain within the valid range.
 


All else is in doubt, so this is the truth I cling to. 

My Stuff
#28
azslow3
Max Output Level: -42.5 dBFS
  • Total Posts : 3297
  • Joined: 2012/06/22 19:27:51
  • Location: Germany
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 15:50:39 (permalink)
Taking usefulness of such clipping apart (I do not think "a little bit well controller colored clippings" should look like digital overflow presented in the screen-shots, but as correctly commented that is not OP topic... I mean I agree we should separate possible processing bug from any particular content and its fidelity), could someone reproduce that?
 
I have tried with several settings in X2 without "success" (I mean the result was expected).
 
In case you can not publish an example (no one asked for copyrighted material, I think you could produce just one second of any clipping sound and in your environment buggy conversion should be reproducible), can you at least exactly specify:
* Driver settings. 64-bit precision check box.
* Project settings. Sample rate and BitDepth.
* Export audio: Sample rate, Bit depth, Dithering algorithm, Sub format.

Sonar 8LE -> Platinum infinity, REAPER, Windows 10 pro
GA-EP35-DS3L, E7500, 4GB, GTX 1050 Ti, 2x500GB
RME Babyface Pro (M-Audio Audiophile Firewire/410, VS-20), Kawai CN43, TD-11, Roland A500S, Akai MPK Mini, Keystation Pro, etc.
www.azslow.com - Control Surface Integration Platform for SONAR, ReaCWP, AOSC and other accessibility tools
#29
parco
Max Output Level: -89 dBFS
  • Total Posts : 92
  • Joined: 2013/06/01 05:49:24
  • Location: Hong Kong
  • Status: offline
Re: A serious bug from FLAC encoder of SONAR Platinum when dithering out 24bit audio outpu 2017/05/19 17:14:08 (permalink)
mettelus
 the end result is still dithered back down.


but dithering and noise shaping nowadays still depend on the bits which will be truncated away, so the contents inside the bits will-be-truncated can still be kept in a certain extent inside the dither noise and the rest bits. so dithering from the different bit sizes will still give out different results, whatever how much the differences will be.
#30
Page: 123 > Showing page 1 of 3
Jump to:
© 2024 APG vNext Commercial Version 5.1