Helpful ReplyVid for flac v. wave null test using Sonar

Author
gswitz
Max Output Level: -18.5 dBFS
  • Total Posts : 5694
  • Joined: 2007/06/16 07:17:14
  • Location: Richmond Virginia USA
  • Status: offline
2017/01/09 19:03:27 (permalink)

Vid for flac v. wave null test using Sonar

The reason for this video was I asserted in a thread about bit depth that I had experienced a difference and so I just skipped FLAC.
 
Bit asserts here that they should be the same or maybe my null test wasn't good.
http://forum.cakewalk.com/FindPost/3541386
 
So, I attempted to make a video of the null test showing the exported wave zeros to the original wave where the exported flac does not.
https://youtu.be/mht-gyi9IM4
 

StudioCat > I use Windows 10 and Sonar Platinum. I have a touch screen.
I make some videos. This one shows how to do a physical loopback on the RME UCX to get many more equalizer nodes.
#1
gswitz
Max Output Level: -18.5 dBFS
  • Total Posts : 5694
  • Joined: 2007/06/16 07:17:14
  • Location: Richmond Virginia USA
  • Status: offline
Re: Vid for flac v. wave null test using Sonar 2017/01/09 19:27:18 (permalink)
It occurred to me that maybe the clips might be offset by a sample, but they are identical in starting point and length.
140:03:516
 
I can't say why the Flac doesn't null to the wave.

StudioCat > I use Windows 10 and Sonar Platinum. I have a touch screen.
I make some videos. This one shows how to do a physical loopback on the RME UCX to get many more equalizer nodes.
#2
rabeach
Max Output Level: -48 dBFS
  • Total Posts : 2703
  • Joined: 2004/01/26 14:56:13
  • Status: offline
Re: Vid for flac v. wave null test using Sonar 2017/01/09 23:50:54 (permalink)
lossless compression means the original information is retrievable. flac files and wave files will not null. flac files are compressed files. you have to decompress a flac file to return it to a wave file, which should null with the original. i do not believe sonar decompresses the file when it is imported.
#3
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
  • Total Posts : 26036
  • Joined: 2006/09/17 11:23:23
  • Location: Everett, WA USA
  • Status: offline
Re: Vid for flac v. wave null test using Sonar 2017/01/09 23:58:04 (permalink)
Great job on the demo, Geoff. I still maintain the differences are due to the test or the test environment, not the flac encoding. But what exactly that might be beats the heck outa me. 
 
The reason I'm confident that any differences are not an artifact of the encoding is that the flac encoder actually generates an md5 hash from the original file. That hash is stored in the flac file so that when it's subsequently decoded it can be compared against the original. They have to match. Any encoder that can't do that is a flawed implementation of the algorithm. Hashes can't lie. It's the same basic mechanism that assures your network packets arrive intact, guarantees your disk data isn't corrupt and that you've entered a correct password. If just one single bit is askew in a 100 MB file, that error will be revealed when the hashes don't match.
 
One thing you could do is verify that the two imported files are lined up perfectly. You'll need to find a clearly visible transient in the file - maybe record a clave click - and then zoom in to the individual sample level. I don't know for certain that SONAR can even do that reliably. Something like Adobe Audition should be able to do it if SONAR can't.
 
It's hard to see in your video, but it looks to me as though the difference waveform is a series of large, abrupt level changes. I'd like to see that zoomed in and scaled to full screen. Abrupt changes are not what you see when you do this kind of test with an MP3 or AAC, where you expect easily audible differences to be found. In those cases, you can clearly hear elements of the original file in the difference file. Not random noise. (If you have Ozone Advanced, it conveniently has this feature built in. Unfortunately, only for MP3 and AAC, not lossless codecs.)
 
 


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

My Stuff
#4
soens
Max Output Level: -23.5 dBFS
  • Total Posts : 5154
  • Joined: 2005/09/16 03:19:55
  • Location: Location: Location
  • Status: offline
Re: Vid for flac v. wave null test using Sonar 2017/01/10 00:14:56 (permalink)
Huh???!!?!
#5
gswitz
Max Output Level: -18.5 dBFS
  • Total Posts : 5694
  • Joined: 2007/06/16 07:17:14
  • Location: Richmond Virginia USA
  • Status: offline
Re: Vid for flac v. wave null test using Sonar 2017/01/10 08:07:22 (permalink)
Bit,

It looks like the differences are one bit exactly, plus or minus. So, the waves go all the way up or down, flatten then return.

It isn't random. I can hear the song in it.

You can see that the differences correlate to when the signal in the song is stronger. There are less likely to be differences at the quiet moments.

Flac may be lossless properly implemented, I don't argue this. Sonar's implementation of Flac is not working properly if my test is valid.

Further, I checked the clip properties and the start times and lengths were identical. The problem is with the Flac encoding or decoding, not clip alignment.
post edited by gswitz - 2017/01/10 10:33:13

StudioCat > I use Windows 10 and Sonar Platinum. I have a touch screen.
I make some videos. This one shows how to do a physical loopback on the RME UCX to get many more equalizer nodes.
#6
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: Vid for flac v. wave null test using Sonar 2017/01/10 11:54:47 (permalink)
I'm not exactly sure where it went wrong in the video, but I just did a quick test and an imported FLAC nulled perfectly with the original WAV file in the project. The normalized bounce or the two was a perfect flatline.
 
Three keys I can think of to avoid introducing unintended differences:
 
- Pre-create your null bounce target track, and set outputs of all tracks direct to hardware Main Outs.
- When you export, set source = Tracks.
- Make sure your Import and Render bit depths are both 24 under Preferences > File > Audio Data.
 
EDIT: Also, when you bounce to the nulling track, set Source = Main Outs. 'Entire Mix' includes all other hardware outs on your interface, which could be problematic.

SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
#7
John
Forum Host
  • Total Posts : 30467
  • Joined: 2003/11/06 11:53:17
  • Status: offline
Re: Vid for flac v. wave null test using Sonar 2017/01/10 12:09:57 (permalink)
I've been moving toward flac for awhile now. I'm very glad to read this thread.

Best
John
#8
Sheanes
Max Output Level: -77 dBFS
  • Total Posts : 684
  • Joined: 2013/01/30 10:31:11
  • Location: Zjwame, Netherlands
  • Status: offline
Re: Vid for flac v. wave null test using Sonar 2017/01/10 12:33:29 (permalink)
great video !! 
can only think the export dialog for the FLAC  'signed 24pcm'  could cause a difference somehow if that causes some bit depth change or simular.
could not do a test as my X3 somehow won't export to Flac.
again, great video and report !
#9
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: Vid for flac v. wave null test using Sonar 2017/01/10 12:43:33 (permalink) ☄ Helpfulby Sheanes 2017/01/10 12:47:50
I don't think FLAC export was supported until Platinum. I did everything at 48kHz, 24-bit in my test, using the 'Signed 24-bit PCM' option for the export to FLAC, and it nulled perfectly.

SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
#10
gswitz
Max Output Level: -18.5 dBFS
  • Total Posts : 5694
  • Joined: 2007/06/16 07:17:14
  • Location: Richmond Virginia USA
  • Status: offline
Re: Vid for flac v. wave null test using Sonar 2017/01/12 07:06:29 (permalink)
I was able to repeat the test on 48 sample rate and saw the problem but it came in only on the plus one side, not minus one.

Creating a Flac that is identical should be easy. There is some problem here and I don't know what it is.

If I end up storing Flacs, I think I'll end up encoding them myself, not using Sonar.

StudioCat > I use Windows 10 and Sonar Platinum. I have a touch screen.
I make some videos. This one shows how to do a physical loopback on the RME UCX to get many more equalizer nodes.
#11
Jump to:
© 2025 APG vNext Commercial Version 5.1