Measuring audio noise levels with and without ALC at DVinfo.net
DV Info Net

Go Back   DV Info Net > Canon EOS / MXF / AVCHD / HDV / DV Camera Systems > Canon EOS Full Frame for HD
Register FAQ Today's Posts Buyer's Guides

Canon EOS Full Frame for HD
All about using the Canon 1D X, 6D, 5D Mk. IV / Mk. III / Mk. II D-SLR for 4K and HD video recording.

Reply
 
Thread Tools Search this Thread
Old June 16th, 2009, 07:18 PM   #1
Wizard Status
 
Join Date: Jun 2005
Location: New York, NY
Posts: 239
Measuring audio noise levels with and without ALC

I have some audio samples that I've recorded with the Magic Lantern firmware using a JuicedLink CX231 and a mix of microphones with the 5D Mark II's ALC turned off. Unlike the Beachtek DXA5D "pilot tone", my firmware is turning the AGC off at the AK4646 chip and is also turning off the potentially noisy input gain stage (MGAIN2-0 bits in the datasheet). I have also turned off the high-pass and low-pass filters in the firmware, but am not certain if it matters.

I'd like to have a way to quantify how much the results are improved with these changes and am looking for suggestions on test conditions and software to measure the results. Elsewhere, Jon Fairhurst reported a -42 dB noise floor using a pilot tone. I'd like to know how my setup compares.

Any ideas?
Tramm Hudson is offline   Reply With Quote
Old June 16th, 2009, 09:42 PM   #2
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
The simple way to test this is to play back the audio in most any editor and watch the meters during silence. In SoundForge 9 you can capture a noise print and see exactly what the frequency spectrum is.

With AGC on, I just assume that the input signal can go full scale, so you can just look at the typical level of the meters during silence.

If you turn down the gain too far manually, it's possible that no matter how hot a signal you put in, you can't go full scale. That could give an overly optimistic noise reading. You might see -80dB levels during silence, but have a peak limit of only -30dB. In that case you have 50dB of dynamic range, rather than 80.

I'd recommend turning down the 5D gain control to, say, 20%, and then crank the juicedLink up high and record yourself speaking very close to the mic. Play back the recording and ensure that your signal clips. If so, turn down the 5D gain and repeat. For fast turn around, assuming that you can adjust things live, make an adjustment, say "this is a gain of 20 percent, blah, blah, blah, and here are a few seconds of silence...", and then adjust and repeat.

Now that you have found the optimum gain, connect a dummy connector to the 5D with the signal wires grounded. Record a few second of this, play it back and note the noise level. That will tell us the absolute best case of the 5D.

This might not be the minimum system noise though. It might be that you have to crank the juicedLink full bore to get those levels, and now the juicedLink noise could become dominant. If that's the case, more measurements are needed.

That initial number is helpful though. If you were to connect a CD player with the right pad to the 5D at this level, you could potentially record it with the noise that low. On the other hand, you might overdrive the input amp at that level and distort like hell.

Anyway, in the next round of tests, you would turn up the gain on the 5D a bit, and test the juicedLink at a variety of levels, each time leaving a bit of time of silence. At some point, you'll find the minimum noise level at which the voice is undistorted. You'll need to do the test in a quiet environment. During silence, you might hold a box of foam over or in front of the mic. Leave the mic on a stand. If you handle it, you'll get low frequency handling noise. Again, a dummy connector can be used to remove mic self-noise and ambient noise.

For reference, with a MicroTrackII, I found that I needed to set the gain at 50% (indicated) to allow full scale recording. I didn't do a dummy connector test. With a Rode NT1-A, I needed to set the juicedLink to M with the gain pot just over half way. The noise was around -70dB even with a computer running in the background. I could easily get full signal levels without audible distortion. If we can get the juicedLInk and 5D to that level, we'll really have something!
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply With Quote
Old June 16th, 2009, 10:11 PM   #3
Wizard Status
 
Join Date: Jun 2005
Location: New York, NY
Posts: 239
Quote:
Originally Posted by Jon Fairhurst View Post
If we can get the juicedLInk and 5D to that level, we'll really have something!
Also very encouraging is that the spec sheet for the AK4646 shows how to put it into loop-through mode, with the output after digitization and processing being fed directly to the digital output stage. Since I am now bypassing all of Canon's code for writing to the audio device, I believe I can put it into this mode. Tomorrow when I find my adapter cable somewhere in my lab I'll be able to test this.

Since you have so much experience testing audio levels, I've sent you some sample audio files and "instructions" on how to make your own tests with your own camera. Thanks for the extensive writeup and good luck!
Tramm Hudson is offline   Reply With Quote
Old June 16th, 2009, 11:59 PM   #4
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
Thanks Tramm,

My first impressions of the audio files is that you've passed the proof of concept stage. We can get lower noise with your firmware than we can with a pilot tone. I'll need to dig in before I will know how good the results will be.

My expectation is that, while nobody will be throwing away their SoundDevices 744T recorders, the 5D2 will record adequate sound for many users when coupled with a good preamp.
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply With Quote
Old June 17th, 2009, 12:20 AM   #5
Inner Circle
 
Join Date: Nov 2005
Location: Elk Grove CA
Posts: 6,838
Jon: What level of floor were you seeing ?
__________________
Chris J. Barcellos
Chris Barcellos is offline   Reply With Quote
Old June 17th, 2009, 10:57 AM   #6
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
Quote:
Originally Posted by Chris Barcellos View Post
Jon: What level of floor were you seeing ?
Tramm sent an audio file, but there were no periods of true silence. If I were to guess, I'd say that we will get better than 60dB SNR. Tonight I should be able to get some real numbers - at least at one or two fixed gain levels.

One thing that is encouraging is that in the quiet moments, I didn't really hear much hiss. In a couple of quiet moments there were breaths, in a longer period there was cooking and A/C. That didn't let me get numbers, but the quality of these subtle sounds was good.
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply With Quote
Old June 17th, 2009, 01:14 PM   #7
Major Player
 
Join Date: Apr 2008
Location: Beijing
Posts: 665
Quote:
Originally Posted by Jon Fairhurst View Post
Thanks Tramm,

My first impressions of the audio files is that you've passed the proof of concept stage. We can get lower noise with your firmware than we can with a pilot tone.
Jon, that's great news. When you say pilot tone are you comparing to the DXA5D or other methods. I'd previously thought that feeding 1khz at high levels was already forcing zero gain and a low s/n ratio, if the firmware is able to best this by turning off the input gain stage then we may not be far off the quality of a separate recorder after all.

Thanks

Dan
Dan Chung is offline   Reply With Quote
Old June 17th, 2009, 03:35 PM   #8
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
Quote:
Originally Posted by Dan Chung View Post
Jon, that's great news. When you say pilot tone are you comparing to the DXA5D or other methods. I'd previously thought that feeding 1khz at high levels was already forcing zero gain and a low s/n ratio, if the firmware is able to best this by turning off the input gain stage then we may not be far off the quality of a separate recorder after all.
Dan, I've tested with my own high-frequency signal, analyzed Chris' audio capture with a high-frequency signal, and tested some audio from vimeo that was done with the DXA5D. In all cases, the result was about 42 dB of dynamic range.

After a quick test of audio supplied by Tramm, my guess is that we could hit 60dB or more with firmware gain control. I get 70dB or so with a Rode NT1-A/juicedLink CS231/Microtrack II with a computer running in the background. I'll know more specifics about the Magic Lantern solution tonight...

One note: Noise reduction was very successful on Chris' clip. However, in my experience, when you add broadband hiss to environmental sounds like cars and HVAC, noise reduction falls apart really quickly. Given that, you might use the DXA5D into the 5D indoors when you can turn off the AC. When recording outdoors, or when you can't get the mic really close to the subject, I'd break out the separate recorder, just to be safe.

I use the NR in SoundForge 9 and in GoldWave (cheap and very good!) on the PC. Apple's Soundtrack also has nice NR.
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply With Quote
Old June 17th, 2009, 08:09 PM   #9
Wizard Status
 
Join Date: Jun 2005
Location: New York, NY
Posts: 239
Quote:
Originally Posted by Tramm Hudson View Post
Also very encouraging is that the spec sheet for the AK4646 shows how to put it into loop-through mode, with the output after digitization and processing being fed directly to the digital output stage. Since I am now bypassing all of Canon's code for writing to the audio device, I believe I can put it into this mode. Tomorrow when I find my adapter cable somewhere in my lab I'll be able to test this.
"Good news everyone!"

I have loop-through mode working, so live audio monitoring via the A/V jack works! And, since my firmware over-rides Canon's hotplug_task(), plugging in a connector to the A/V jack does not switch to composite video mode.

There doesn't appear to be any obvious hum in the audio when I do this, so my guess is that the video circuit is what causes it.
Tramm Hudson is offline   Reply With Quote
Old June 17th, 2009, 08:21 PM   #10
Inner Circle
 
Join Date: Nov 2005
Location: Elk Grove CA
Posts: 6,838
More great news Tramm.

I know you are a busy guy, but out of curiousity, when you disable the AV out, does that also disable HDMI out ?
__________________
Chris J. Barcellos
Chris Barcellos is offline   Reply With Quote
Old June 17th, 2009, 08:33 PM   #11
Wizard Status
 
Join Date: Jun 2005
Location: New York, NY
Posts: 239
Quote:
Originally Posted by Chris Barcellos View Post
when you disable the AV out, does that also disable HDMI out ?
Yes it does. By disabling the hotplug_task() it disables the A/V jack, the HDMI plug and the USB port. It would be possible to re-implement the task as part of the Magic lantern firmware (like I have done with the gui_main_task() to re-route button presses), but hasn't been a priority yet.

The other major problem with the HDMI output is the mode switch when recording starts. I haven't even started to look into that since I don't have an HDMI field monitor. There isn't any reason that I can think of for it to make that switch.
Tramm Hudson is offline   Reply With Quote
Old June 17th, 2009, 08:47 PM   #12
Inner Circle
 
Join Date: Nov 2005
Location: Elk Grove CA
Posts: 6,838
Quote:
Originally Posted by Dan Chung View Post
Jon, that's great news. When you say pilot tone are you comparing to the DXA5D or other methods. I'd previously thought that feeding 1khz at high levels was already forcing zero gain and a low s/n ratio, if the firmware is able to best this by turning off the input gain stage then we may not be far off the quality of a separate recorder after all.

Thanks

Dan
Dan, you are one of the few I know that has the Beachtek. Wondering what kind of floor you are working with on their unit. A sample in a quiet house in a stuff clothes closet would be interesting. Be sure to record silence and voice. And be sure tone is only going to one track.
__________________
Chris J. Barcellos
Chris Barcellos is offline   Reply With Quote
Old June 18th, 2009, 12:45 AM   #13
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
I don't have a full report yet, but the audio tests are REALLY promising. The noise floor is lower than I expected.

One problem is that there is some low frequency noise, which is possibly just a DC offset that moves around a bit. This is present on the pilot tone clips as well. This LF junk pushes the meters far above where they should be. At worst, we will want to add a subsonic filter or LF shelf in post.

The good news is that the pilot tone method isn't as bad as I thought. The better news is that with the gain fixed in firmware, the noise is significantly lower still.

Tomorrow I have another commitment, but by the weekend, I should be able to present some screen captures, numbers, and audio clips.

The bottom line is that fixed gain is possible in firmware, and the hardware can deliver the goods.
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply With Quote
Old June 18th, 2009, 01:55 AM   #14
Inner Circle
 
Join Date: Nov 2005
Location: Elk Grove CA
Posts: 6,838
Jon: Thanks for that encouraging news. I had some feeling that the sound we were getting with pilot tone was promising, ie, the sound itself seemed real clean in the audible range. I had thought it was bleed from the tone side, but sounds like you found another source.
__________________
Chris J. Barcellos
Chris Barcellos is offline   Reply With Quote
Old June 18th, 2009, 10:35 AM   #15
Inner Circle
 
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
Quote:
Originally Posted by Chris Barcellos View Post
Jon: Thanks for that encouraging news. I had some feeling that the sound we were getting with pilot tone was promising, ie, the sound itself seemed real clean in the audible range. I had thought it was bleed from the tone side, but sounds like you found another source.
With the noise plots, there are four areas:
1) DC/Low Frequencies: Both the pilot tone and manual gain tests have LF problems. This can be remedied in post. I can reduce the resting level of the meters by over 20 dB with a subsonic filter.

2) Pass band: The pilot tone method has noise throughout. The gain reduction method has almost none. The difference is 20 dB or more.

3) High Frequencies: On the pilot tone method, you can see the noise drop to almost nothing somewhere around 16 kHz. I presume that this is the anti-aliasing filter. It's hard to see that drop off with the manual gain method, as the noise is already near that level.

4) The pilot tone: Yes, there's some bleed at the frequency of choice. That doesn't apply with the fixed gain situation.

For anybody recording into the 5D from an external source, apply EQ with a low frequency shelf at -Inf. That should calm your meters so they more accurately reflect the noise of the system.
__________________
Jon Fairhurst
Jon Fairhurst is offline   Reply
Reply

DV Info Net refers all where-to-buy and where-to-rent questions exclusively to these trusted full line dealers and rental houses...

B&H Photo Video
(866) 521-7381
New York, NY USA

Scan Computers Int. Ltd.
+44 0871-472-4747
Bolton, Lancashire UK


DV Info Net also encourages you to support local businesses and buy from an authorized dealer in your neighborhood.
  You are here: DV Info Net > Canon EOS / MXF / AVCHD / HDV / DV Camera Systems > Canon EOS Full Frame for HD


 



All times are GMT -6. The time now is 04:48 AM.


DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network