View Full Version : AGC Disable - Magic Lantern vs. Juicedlink?


Michael Clark
July 22nd, 2011, 09:19 AM
Right now I've filming with a T2i using Magic Lantern. I have a Juicedlink cx231 (doesn't have AGC disable). Problem is, if you mount the CX231 to the bottom of the camera, it gets in the way of removing a battery on the T2i. So Juicedlink has recommended I buy their DT454 ($100 more, does have AGC disable) to replace my CX231, as the DT454 was built with DSLR cameras in mind. The main plus would be that I could exchange camera batteries without unscrewing the JL with an allen wrench. For the price increase though, I'm looking for what other upgrades it would have. I know it has levels which is a plus. But my question is, is there any difference in the AGC disable between what a mixer and ML would provide?

Chris Barcellos
July 22nd, 2011, 09:36 AM
Juiced Link AGC disabler will sacrafice one of the stereo track to which a signal is transmitted that effectively shuts down the AGC. Whe the 5D first came out, I did the same thing with an MP3 player and an inaudible tone.

However, Magic Lanter still gives you better control over sound, by providing adjustments to gain in both digital and analogue, which affords you better control over noise. I use the Juiced Link CX 231 and love its preamp capablity.

The battery change issue wasn't as much a problem on the 5D because the batteries lasted longer. The battery run on the T2i is much shorter. I have built little contrapations to avoid the issue over the years, trying to offset the XLR adapter. When I mount on rails, I can mount the adapter under the rails with effect. But mostly, I just put up with the inconvenience.

Jon Fairhurst
July 22nd, 2011, 12:13 PM
Hi Michael,

Chris is right. ML gives better control (analog and digital) than other methods. I've done tests on the 5D2, and ML gives better S/N than Canon's manual audio, and manual gives better S/N than AGC distable methods.

That said, I have the DT454 and when recording audio in a noisy environment, such as the NAB show floor, I use manual mode and monitor from the preamp, rather than from the camera. It's simpler than needing to put ML on the cards, start it up, pop the battery, etc. However, for narrative productions, I definitely choose ML (or separate sound recording) over AGC or Canon manual mode. The bottom line is that ML isn't always needed and it's simpler when you can avoid it. But it sure is clean!

Chris also makes a good point about mounting to rails. I mounted my DT454 on the chest rod of a Redrock "The Event" rig. It helped keep the weight balanced and didn't affect the camera height that way.

I see two good approaches. You could get a rails setup and stick with your existing preamp. The Redrock DSLR baseplate, mini tripod mount, and a couple of rails is a nice starter kit. It's not as rock solid as the cheeseplate-based tripod platform, but you can build it out into a quick-release handheld rig.

Redrock Micro - DSLR/HDSLR Base Plate (http://store.redrockmicro.com/Catalog/DSLRClamps/DSLRbaseplate)
Redrock Micro - DSLR Mini Tripod Platform (http://store.redrockmicro.com/Catalog/DSLR-Support/minitripodplatform)
Redrock Micro - DSLR Tripod Platform (http://store.redrockmicro.com/Catalog/DSLR-Support/DSLR-Tripod-Platform_2)
Redrock Micro - microMount (http://store.redrockmicro.com/Catalog/DSLRClamps/microMount)

On the other hand, going with the DT454 has advantages if you shoot documentaries or casual video. Being able to just turn on the camera and preamp and record without ML is a very nice option when shooting solo. The highest possible signal to noise isn't that important when there is a lot of ambient noise.

So... rails if you want battery access, might want to upgrade to a follow focus and/or handheld rig, and will always run ML. Or DT454 if you want battery access and the simplicity of avoiding ML for certain projects.

Tom Morrow
July 27th, 2011, 12:15 AM
Also consider the sound devices mixers. The new mixpre-d can mount under the camera like the juicedlink... not sure about batteries. I have an old mixpre without that mounting method, and today I finally figured out quick and dirty way of mounting it. I had laying around one of those flash brackets designed for wedding photogs to get the flash above the eyes for verticals. I unscrewed the flash shoe from that, and gaffer-taped the mixpre onto that arm that normally holds the flash.

Gaffer tape actually is almost perfect for this purpose... lots of surface area on the mixpre, and no need to drill any holes for mounting.

When I'm shooting tripod-mounted, the mixpre lives in a sound bag below the camera or on my person, so I can adjust the audio on the fly.

Tom Morrow
July 27th, 2011, 12:29 AM
This thread is good for me in terms of realizing the grass is always greener on the other side. I had been lusting after the real-time on-camera metering of magic lantern, and wanting to ditch the bulk of the mixpre. But after reading about the limitations of magic lantern (no third party battery or AC adapter, needs to be on card, needs to be enabled after boot, not completely reliable) I'm getting cured of my magic lantern envy. Strange how sometimes software solutions can be the most unwieldly.

For sheer convenience I think the Rode videomic pro would win. The 20db gain lets you avoid DSLR preamps, and so the only hassle needing to adjust levels on the dslr itself, not live because canons only let you adjust the levels from the menu. You can't shoot or view the subject while you see or adjust level.

Jon Fairhurst
July 27th, 2011, 09:52 AM
The VMP is nice when an on-camera mic is adequate and when there is no wind. It's a good, fair weather, travel mic.

It's no narrative mic though. For narrative, you want to get the mic as close as possible to the talent - and that means you need XLR connections. You also want a straight mic that fits in a blimp. (According to some, the switches on the back of the VMP make it prone to wind noise.)

You still want to disable AGC. There are three options: Magic Lantern, Canon's manual audio control, or the tone/noise method of products like the JL DT454. Of the three, Magic Lantern is the lowest noise solution.

If I were covering a riot or natural disaster solo on foot, a VMP would be my #1 choice. It's light, simple, and would capture the ambient sounds. And I'd want to tape up the back of it and encase it in a furry windscreen. But for narrative, it would never touch my camera.

As always, the right solution depends on the project at hand.

Tom Morrow
July 27th, 2011, 10:39 AM
I'm curious about the thinking that Magic Lantern is the lowest noise solution. I don't really understand why Magic Lantern would get you any stronger signal or lower noise floor than say my external Sound Devices Mixpre. (or a Juicedlink, assuming they have clean preamps)

In both cases you want to turn the camera preamp down all the way. But magic lantern doesn't have any other preamps, so you can't boost a shotgun microphone signal to get good signals like you can with an external high quality preamp. I understand that magic lantern has digital amplification, but you can also do digital amplifcation just as well if not better in post-production if needed, and it's better in post-production because you don't have to worry about clipping.

-Tom

Tom Morrow
July 27th, 2011, 10:42 AM
One thing I want to mention for those who aren't aware is that newer generations of the Canon cameras don't need AGC disable because they have AGC on/off in the menu system of the camera itself. If you have a t2i that needs AGC disable, you might be able to sell it and buy a t3i which has AGC on the menu.

Chris Barcellos
July 27th, 2011, 11:26 AM
I'm curious about the thinking that Magic Lantern is the lowest noise solution. I don't really understand why Magic Lantern would get you any stronger signal or lower noise floor than say my external Sound Devices Mixpre. (or a Juicedlink, assuming they have clean preamps)

In both cases you want to turn the camera preamp down all the way. But magic lantern doesn't have any other preamps, so you can't boost a shotgun microphone signal to get good signals like you can with an external high quality preamp. I understand that magic lantern has digital amplification, but you can also do digital amplifcation just as well if not better in post-production if needed, and it's better in post-production because you don't have to worry about clipping.

-Tom

Tom:

Jon can explain better, but point of ML adjustments is you can adjust your digital and analog gains as fits you needs best, while the Canon adjustments do not allow that. The thinking was that it is best to lower digital gain as much as possible, and then bring down analog to meet the input coming into camera.

I was able to use my Sign ENG 44 mixer quite nicely, feeding my 5D. I could pretty much reduce gain setting to 0 on Digital, and under 10 on the analog, if I recall properly. With my CX231 I tried to keep Analog at 10, but had often to go up to 17, sometime adding a little digital gain too.

These days I shoot double system mostly, so I haven't used it this way for about a year. So I could be off on current thinking.

Jon Fairhurst
July 27th, 2011, 11:53 AM
Chris is right. I've done the measurements myself. ML is quieter than the Canon firmware, which is quieter than using a signal to disable AGC - at least with the 5D2 and JL DT454.

In all cases, I used a juicedLink preamp to provide a strong clean signal to the camera.

With Magic Lantern, you can control the analog and digital gains separately. With the Canon firmware, the analog gain is fixed at +31dB. The analog preamp in the camera is noisy, so having the analog gain that high amplifies the noise. The gain control in the Canon firmware controls the camera's digital gain only.

With the tone/noise method of killing ACG, you are also stuck with +31dB of analog gain in the camera. As I recall, the AGC killer doesn't knock the camera's digital gain down as far as the Canon firmware can, so you get about 6dB more noise this way.

In fact, I found that with a JL preamp and ML firmware, the S/N was lower than that of the H4n or DR-100. That said, recording into the camera always has a high pass filter engaged, so it's fine for dialog, but not so good for full range music. Also, the JL/ML/camera audio sounds slightly more harsh to my ears than the external recorders at high signal levels.

From a signal to noise standpoint, recording with a JL preamp and Magic Lantern delivers as little noise as you can get from a 16-bit recording. None of the other solutions that I measured (H4n, DR-100, JL+Canon firmware, JL+AGC killer) deliver as much as 16-bits worth of signal to noise quality.

So, if you want clean, whispered dialog, the JL/ML solution wins. For recording full range music, the external recorders win. If you want higher quality, you need to budget for the Fostex FR-2LE or above...

Tom Morrow
July 31st, 2011, 10:35 PM
> With Magic Lantern, you can control the analog and digital gains separately.
> With the Canon firmware, the analog gain is fixed at +31dB.
> The analog preamp in the camera is noisy, so having the analog gain that
> high amplifies the noise. The gain control in the Canon firmware controls
> the camera's digital gain only.

Are you sure that the gain control in my 60d's menu controls digital rather than analog gain? I was under the impression from numerous other sources that lowering the Canon's audio menu gain would lower the ANALOG gain so as to turn down the noisy preamps. And I have recorded using this approach audio that sounds very noise-free and artifact-free (via SD mixpre into 60d), so I doubt that the audio gain was fixed at the highest noisiest value of +31db.

Sorry for asking so directly, but I'm really curious Jon if you have a reference or other proof that the Canon firmware doesn't control the Canon analog gain.

Jon Fairhurst
August 1st, 2011, 12:54 AM
I don't know about the 60D, but on the 5D2, Tramm was able to read the registers to see what the Canon firmware settings were. He sent the register information to me, and I confirmed it.

Also, the analog gain can only be controlled in large steps. To adjust the gain properly, one would need to play the two controls off of each other. For instance, to go up, one would raise the digital gain to a point, then jump down as you boost the analog gain. Raise the digital gain again, then drop as you take the analog gain to the next step etc. I did gain measurements tick by tick and it was clear that this was not happening.

The final clue is that the overall noise is lower with ML than with the Canon firmware set to one tick above minimum.

So, between reading the registers, tracking the gain profile, and reading the noise, I'm pretty confident that the Canon firmware adjust the digital gain only.

The upsides are that it would have been simple to write, and it provides a monotonic, predictable gain curve from camera to camera. The downside is that the noise level isn't as low as it could have been, but it sure beats AGC. :)

Tom Morrow
August 1st, 2011, 03:54 PM
I sent a PM to Jon asking for the results of that test... I have an oscilloscope for measuring noise floors, but it's always easier to see what others have done.

If it really is true that the Canon firmware doesn't adjust the noisy preamps, then a lot of Juicedlink's marketing seems misleading, where they talk about bypassing the noisy preamps in the camera with their clean preamps.

If the preamp noise level in Canon cameras really is fixed then that does free me up to do some things I wouldn't otherwise do, like using my lighter h1 for preamp, level adjustment, and metering rather than bothering with the cleaner-preamp but bigger bulkier SD mixpre.

Jon Fairhurst
August 1st, 2011, 04:21 PM
I'll have to search out my old notebooks to find the test data. I ran those tests over a year ago.

One thing about the digital gain in the AK4242, it seems to be able to go well over unity. That means that you can turn the digital gain down and still go full scale. It's tied in with the AGC circuit. When the chip's digital AGC lowers the gain, you still get full headroom, otherwise you would get lower gain, but still clip.

Anyway, when you turn down the gain in this manner it does lower the noise as well as the signal. And by cranking up the gain in an external preamp like the JL, you still get a full range result.

This is unlike adjusting down the digital gain in your NLE. In that case, you reduce the headroom and anything that already clipped still clips at a lower level.

Still, the most compelling evidence is that when Tramm read back the data from the chip, he found that it's programmed for +31dB of gain - even when the camera is set to manual gain, one tick above the minimum. The analog control (m-gain) has large coarse steps only. With ML, I set it at +10dB when I can and +17dB when the signal is quiet. There are no steps in between.

Tom Morrow
August 1st, 2011, 06:03 PM
Thanks Jon. I don't necessarily need all your test data, but a few data points such as what the gain-bands are, along with the procedure used to get that data, would be very enlightening.

This is unlike adjusting down the digital gain in your NLE. In that case, you reduce the headroom and anything that already clipped still clips at a lower level.

Adjusting digital gain down in an NLE doesn't reduce headroom it increases it. If you take a signal that peaks at -12dBFS and adjust the digital gain down so it peaks at -20dBFS, you now have more headroom above that peak (20>12). So I'm not clear on what the point you were making was about over-unity gains. Please explain further if it was important.

Still, the most compelling evidence is that when Tramm read back the data from the chip, he found that it's programmed for +31dB of gain - even when the camera is set to manual gain, one tick above the minimum.

Well hopefully the analog gain could be done off-chip before it gets to that chip. Perhaps this is what you are talking about when you write:

The analog control (m-gain) has large coarse steps only. With ML, I set it at +10dB when I can and +17dB when the signal is quiet. There are no steps in between.

Aha! That makes lots of sense... so the Canon firmware DOES adjust analog gain, just not with as much resolution as would be desired. I've heard people suggest using a few clicks from zero as the Canon gain setting, and perhaps the few-clicks are related to this banding that you talk about.

So I suppose what I'm interested in is what the bands are, how wide or narrow. If a simple production gain strategy like you propose (always +10db for loud, +17db for quiet) can preserve headroom/noisefloor well, that would be certainly worth pursuing over unwieldly outboard solutions and riding the gain. In fact such a strategy could be implemented with the native non-ML firmware just as easily I presume (with digital gain adjusted in post, in the NLE)

Jon Fairhurst
August 1st, 2011, 07:37 PM
No. The Canon firmware doesn't adjust analog gain. It leaves it fixed at +31dB. The AK4242 chip allows analog gain to be adjusted in large steps. Magic Lantern enables that adjustment.

Regarding digital gain, the AK4242 is interesting.

Case 1: You have a file that clips at 0 dBFS in your NLE. You adjust the gain down in your NLE (digitally) by 6 dB. Now the signal clips at -6dB. The signal in the original file didn't gain any headroom, because it was already clipped.

Case 2: You have a signal in the AK4242 chip that clips. You reduce the digital gain in the AGC circuit by 6dB. The signal gain is now reduced, but it doesn't clip at -6dB. The signal excursions still go all the way to 0 dBFS. Adjust it down far enough, and the signal no longer clips.

Case 3: You own an M-Audio Multitrack II. The signal is too hot. You reduce the gain by 6dB. Now the signal clips at -6dB(!) The Multitrack II gain adjustment is digital, and it is implemented like the NLE case (1) above. I don't recommend the Multitrack II. ;)

So, even though the AK4242 chip adjusts the gain digitally, it has additional bits of headroom built in. In essence, it works like an analog gain control. However, the physical analog gain is adjusted higher than it need be with the Canon firmware. So the results are not as quiet as with Magic Lantern, where you can set the digital gain to 0 and the analog gain to +10dB or +17dB as needed.

Tom Morrow
August 1st, 2011, 09:00 PM
I can't find anything googling for an AK4242 chip... anyone have a link to the spec sheet? I'm assuming it's the ADC chip that converts the analog signal into digital in the Canon DSLRs.


Case 1: You have a file that clips at 0 dBFS in your NLE. You adjust the gain down in your NLE (digitally) by 6 dB. Now the signal clips at -6dB. The signal in the original file didn't gain any headroom, because it was already clipped.

It doesn't really make sense to me to say you have a file that clips... the signal the file was recorded from may have been clipped in order to fit into the gain range of the file, but once the signal is in the file it is what it is... clipping is a verb not a noun. A file is a static thing not a process. You could say the file is clipped, but not that it clips.

The reason I mention this is I want to clarify that the situation you are talking about where a clipped file opened in an NLE cannot be restored to unclipped is a completely different situation from what I was talking about when I mentioned NLE clipping behavior. I was referring to the situation where a full range signal with peak at 0dBFS will get clipped if NLE gain is increased, and will gain headroom if NLE gain is decreased.

Case 2: You have a signal in the AK4242 chip that clips. You reduce the digital gain in the AGC circuit by 6dB. The signal gain is now reduced, but it doesn't clip at -6dB. The signal excursions still go all the way to 0 dBFS. Adjust it down far enough, and the signal no longer clips.

When you say you have a signal in the AK4242 that clips, I assume you mean that you feed an unclipped signal into the AK4242 (say peaking at -10dBFS) and the digital gain causes clipping at the digital output of the chip. The fact that you can stop this clipping by reducing the digital gain is just good chip design... if it didn't work this way then I would consider that a chip design fail.

So, even though the AK4242 chip adjusts the gain digitally, it has additional bits of headroom built in. In essence, it works like an analog gain control.
Like an analog gain control, you get clipping when the input signal times gain exceeds the output signal max level. All properly designed non-buggy digital gains should work this way... the only difference between digital and analog gain is that digital gain increases the internal preamp noise by the same number of dB as the signal noise, while analog gain increases the signal more than it increases the level of the preamp noise.

Sorry for being so wordy about this... to summarize this post, I think ML digital clipping behaves exactly like an NLE in that a full range analog signal with peak at 0dBFS will get clipped if NLE/ML gain is increased, and will gain headroom if NLE/ML gain is decreased.

Tom Morrow
August 1st, 2011, 09:17 PM
I found some good info in the

Magic Lantern 0.1.6 User Manual - Magic Lantern Firmware Wiki (http://magiclantern.wikia.com/wiki/Magic_Lantern_0.1.6_User_Manual)


Analog gain
This selection sets analog gain levels. Typically you would want this to be as low as possible if you are using a high quality pre-amp that can drive a hot signal into the camera. The 5D's preamps are noisy when turned about +20 dB.
L.Gain
This selection sets left digital gain level
R.Gain
This selection sets right digital gain level
...
Best audio is obtained by use of a preamp system fed to the camera. As a general rule, the use of a quiet preamp to send the signal to the camera will result in better the sound recorded in camera. Use of a preamped XLR adapter like the Juiced Link CX 231 or a field mixer will give superior results.
...
Configuration file snippet:
# Audio data
# mgain is according to this table:
# 0 == +0 dB
# 1 == +20 dB
# 2 == +26 dB
# 3 == +32 dB
# 4 == +10 dB
# 5 == +17 dB
# 6 == +23 dB
# 7 == +29 dB
# mgain affects both channels equally.
audio.mgain = 4

# dgain is in dB. If you want separate gains per channel,
# use audio.dgain.l and audio.dgain.r to set their gains.
audio.dgain = 18 # dB
...


Two comments about this:

1. The fact that the ML manual says "Best audio is obtained by use of a preamp system fed to the camera" seems to disagree with people who think that ML alone is best.

2. The gain bands that Jon is talking about are probably those listed in the mgain table above. This is good evidence that the Canon firmware gain menu probably adjusts both analog gain and digital gain in some combination.

Jon Fairhurst
August 2nd, 2011, 12:24 AM
1. The fact that the ML manual says "Best audio is obtained by use of a preamp system fed to the camera" seems to disagree with people who think that ML alone is best.

ML alone? That would be a poor choice, unless you're running a mic like the VM Pro, which has a built-in preamp.

The idea is to use ML to reduce the gain to a low level. To make up for it, you need to send in a strong signal. Besides, the best mics have XLR connections and often require phantom power. ML alone doesn't support such mics.

ML plus a clean preamp with additional gain - and a good XLR mic - are the keys to good in-camera, DSLR audio.

I have the datasheet here someplace, but have upgraded PCs and moved hard drives, so I need to dig around to find it. Unfortunately, this is a very busy week for me...

Jon Fairhurst
August 2nd, 2011, 01:06 AM
The part is the AK4646. Sorry about quoting the wrong number from memory above. Also, the analog gain wasn't fixed at +31dB. It's 32 or 29dB, but I can't recall which.

Here is the datasheet: http://www.asahi-kasei.co.jp/akm/en/product/ak4646/ak4646_f05e.pdf

Note that the ACG works in steps of .375dB. Test the Canon manual gain and you will find that the steps are in multiples of 0.375dB.

Tom Morrow
August 2nd, 2011, 10:34 AM
ML alone? That would be a poor choice, unless you're running a mic like the VM Pro, which has a built-in preamp

Aha... I suppose I was thrown off by the thread title which made me think of ML without a preamp, but upon rereading I see that both Jon and the juicedlink folks were suggesting use of ML along with an external preamp like a juicedlink.

Here is the datasheet: http://www.asahi-kasei.co.jp/akm/en/...k4646_f05e.pdf

Note that the ACG works in steps of .375dB. Test the Canon manual gain and you will find that the steps are in multiples of 0.375dB.

Good info in there. It confirms the preset mic gain levels available (+32db, +29db, +26db, +23db, +20db, +17db, +10db, 0db) as the same values listed in the ML user guide snippet above. The quoted S/N ratios in the 80's seem decent although not anywhere near great.

The sense I'm getting is that using the lower half or third of the Canon firmware gain range is not something to worry too much, but that the higher gain amounts may be problematic.

With S/N of 80+db, the noise is not going to be an issue so long as the signal is decently strong.

Jon Fairhurst
August 2nd, 2011, 12:59 PM
Ideally, the Canon firmware would have used the 0.375 dB digital steps for a while, then take a large analog step, compensate with a large set of digital steps, and continue fine tuning the digital gain. I think they didn't do that because of the variability in analog. With a step-wise approach, the gain might have big jumps or even change in the wrong direction as you go between certain ticks. The advantage would be lower noise. I think Canon valued predictable UI behavior over highest quality.

That said, the noise isn't terribly worse with the Canon firmware, though it is certainly not as clean as it can be with ML. From memory, I was getting about a 9dB difference.

Tom Morrow
August 2nd, 2011, 08:23 PM
Thanks for all the info Jon. I feel like I have a real sense now of how the gain works in the Canons now and the more info you provide the more "sense" it all makes. You are probably right that a cheap chip might not have accurate analog gain steps, meaning that someone might call Canon support and say why does my gain go up when I click it down or vice versa. Canon designed this audio system more for simplicity than for quality. So although I will probably attempt some measurements of my 60d myself, I'm no longer doubtful that Canon really did fix the analog gain in their firmware.

It seems to me that most signals only have 20-40db of real dynamic range before mic or room noise gets in the way, so the 80+db (minus 31ish db for the hardwired Canon firmware gain)=50+ is still enough to record a decent signal, so long as you get your levels adjusted well. But if you start having your levels 10-30 or more db less than optimal, which would be common without a preamp, then you could very well run into noise. So the takeaway for me is that a preamp should be used for any critical audio, but that it's not totally insane to just plug a mic directly into the Canon mic jack and set the Canon firmware gain to lowest, and record without worry.

In fact I did something similar when I was walking around with my camera looking for b-roll footage a few months ago. Not having a microphone with me, nor having time to set levels, I just recorded some street music with the internal mic and gain all the way down. I was expecting horrible audio, but it was actually surprisingly usable, probably largely because it was recorded in a tunnel that increased level and whose reverberations hide the noise floor. At any rate it's good to know I was actually right to not mess with the gain during filming.

With this new knowledge that Canon's gain controls are all digital, I don't see any reason to ever adjust them above all the way down. It gives me some security knowing that even if not optimal I can get usable audio without a preamp, level controls, external metering, or ML in a pinch.

Tom Morrow
August 2nd, 2011, 08:24 PM
[removed message]

Tom Morrow
August 13th, 2011, 04:20 PM
I started a new thread with my measurements of the noise on my 60d:

http://www.dvinfo.net/forum/all-things-audio/499558-canon-dslr-preamp-noise-measurements.html#post1674809

In short it appears that something other than simple digital gain is happening with the Canon firmware.