Magic Lantern Forum

Magic Lantern Releases => Nightly Builds => Topic started by: scrax on August 13, 2012, 10:28:43 PM

Title: 600D Audio TEST release - 2.3 based
Post by: scrax on August 13, 2012, 10:28:43 PM
This topic is about the first beta test release for 600D audio control, post what you find working and your suggestions.
For issue post them on the issue tracker (https://bitbucket.org/miyake_t/magic-lantern600daudio/issues?status=new&status=open) (but check this before (http://www.magiclantern.fm/forum/index.php?topic=946.0)).

Things to test:
- ML not loading on other camera
- if value are right for each option(vol, gain, effect...)
- if all works as expected
- try to figure out the settings for having the best audio signal recorded
- audio monitoring
- audio trigger
- DC filter
- any other audio related function (Play, canon setup, etc.)

Menu differences from ML 2.3 user guide
Override Settings: When On ML controls audio, when Off Canon control audio (It need to be ON for ML audio functions to work)
Analog gain+boost: raise the volume gain to the max an the use mic boost to 30dB more
Analog mic boost: boost mic volume in +5dB step (same boost used before)
Digital Gain: set global and L/R digital gain
Wind Filter: enable DC filter and HP filter, HP filter frequency

and keep in mind that there is a start-up lag due to the test build message, stable build will be faster at boot.

SOURCE REPO: https://bitbucket.org/miyake_t/magic-lantern600daudio/overview (https://bitbucket.org/miyake_t/magic-lantern600daudio/overview)
600D audio Test version 0.11 released
http://chirari.ddo.jp/pub/betauploader/600Daudio/ (http://chirari.ddo.jp/pub/betauploader/600Daudio/)
(rename to autoexec.bin)
History
 -add func for HighBitrate video with WAV recording
 -Solve issue: Can't over ride when recording 1st time wav sound.
 -Completely equalizer off,
 -override audio is faster now. stuttering was small when start recording.
 -add some exception for wav recording.
 -Playback VOL to 0db.(monitor sound become big)
 -all audio setting func is more faster

Known issues(spec?):
-can't override when we change volume and audio off/agc/manual settings in canon menu.
 *Do override off and on. It means restart overriding.
-Don't work with canon volume 0.
-Wav playback is small volume

autoexec10.bin (need rename to autoexec.bin)
http://chirari.ddo.jp/pub/betauploader/600Daudio/
(Uploader changed. )
History
 -audio remote shot en-bug solved
 -DC& HPF2 filter bug solved. (Previously these filters are always on)
 -delete unused global filter on/off
 -beep/audio recording/playback working only without connected RCA monitor cable.
 -This version is not support WAV record and Movie record together

DOWNLOAD 0.9: http://chirari.ddo.jp/ml/600Daudio/autoexec9.bin (http://chirari.ddo.jp/ml/600Daudio/autoexec9.bin) (rename to autoexec.bin)
-Solved two monitoring issues.
  *solved display blackout when plugged Headphone and HPmon ON and Override OFF.
  *solved strange volume issue when cfg_override off and monitor mode off.
DOWNLOAD 0.8: http://chirari.ddo.jp/ml/600Daudio/autoexec8.bin (http://chirari.ddo.jp/ml/600Daudio/autoexec8.bin) (rename to autoexec.bin)
 -Added effect mode control in Digital menu
 -Completely split menu item for analog[gain,boost], add these into submenu.

Added control for effect mode. But only working "Notch filter". Because when camera standby,
 all Equalizer parameter was reset by canon firm. 

DOWNLOAD 0.7: http://chirari.ddo.jp/ml/600Daudio/autoexec7.bin (http://chirari.ddo.jp/ml/600Daudio/autoexec7.bin) (rename to autoexec.bin)
-merge with current repo
 -reduce pop noise and responce up when setting audio chip.
 -monitoring lauch timing issue solved(startup related) (@klangdrang reported)
 -monitoring off is perfectly working.
DOWNLOAD 0.6: http://chirari.ddo.jp/ml/600Daudio/autoexec6.bin (http://chirari.ddo.jp/ml/600Daudio/autoexec6.bin) (rename to autoexec.bin)
-Solved issue #15(taken picture preview in movie_mode)
 -startup/preview response up.
DOWNLOAD 0.5: http://chirari.ddo.jp/ml/600Daudio/autoexec5.bin (http://chirari.ddo.jp/ml/600Daudio/autoexec5.bin) (rename to autoexec.bin)
-meter sencitivity issue . may be solved
DOWNLOAD 0.4: http://chirari.ddo.jp/ml/600Daudio/autoexec4.bin (http://chirari.ddo.jp/ml/600Daudio/autoexec4.bin) (rename to autoexec.bin)
-solved override exception handling
DOWNLOAD 0.3: http://chirari.ddo.jp/ml/600Daudio/autoexec3.bin (http://chirari.ddo.jp/ml/600Daudio/autoexec3.bin) (rename to autoexec.bin)
 -solved taken picture preview on shoot mode
 -solved recording stop issue
 -added msg when overridden.
DOWNLOAD 0.2: http://chirari.ddo.jp/ml/600Daudio/autoexec2.bin (http://chirari.ddo.jp/ml/600Daudio/autoexec2.bin) (rename to autoexec.bin)
 -added Shortcut support Audio control
 -Digital gain mute is displayed -100 dB now
 -Solved Monitoring frees issue
 -Solved Monitoring high level noise issue
DOWNLOAD 0.1: http://bit.ly/On4Tjm (http://bit.ly/On4Tjm)
MD5 checksum: 15bd999fbb6fde55a01780d218a79e1d

ISSUE TRACKER (https://bitbucket.org/miyake_t/magic-lantern600daudio/issues?status=new&status=open)

NOTE: it will load on 600D only, on other camera ML will not be loaded (like if started with SET pressed).

How thing works:

(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fimages1.wikia.nocookie.net%2Fmagiclantern%2Fimages%2Fb%2Fb6%2FAudioicworking_s.png&hash=667a9c5dc598fe0d2bc8027be58de1b3)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 14, 2012, 04:32:04 AM
Code: [Select]
# cat /var/log/httpd/access_log | grep autoexec.bin | wc -l
32

2 Known issues are already solved next release ver.0.2 .
Title: Re: 600D Audio TEST release - 2.3 based
Post by: juantrueno on August 14, 2012, 06:03:05 AM
OK! I'm testing, but now it seems that is not working for me.
tried with internal and external mic with head phones, but audiometers doesn't show audio activity but canon's menu does,
i hear beep but only in right phone, very low.

am i doing something wrong? do i have to do a fresh install, or copying auto_exec.bin is enough?
when turning camera on, ML shows the test relase advice.

tried recording, but video has no audio.

Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 14, 2012, 06:07:51 AM
Did you switch on the "Audio override" ?
and analog gain or digital gain setting is correct values?

Title: Re: 600D Audio TEST release - 2.3 based
Post by: juantrueno on August 14, 2012, 06:12:20 AM
Did you switch on the "Audio override" ?
and analog gain or digital gain setting is correct values?

@Miyake

I did override, dont know exactly how to set digital or analog values, tried different ones, but again no audio on stand by or recording movie.
Can you give a number to set those values?

Thanks again
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 14, 2012, 08:57:13 AM
You may try to find best setting your self.
First, you may set all Digital values to 0.
Touch only "Analog gain" .

I guess, if you can't record any sound in recording, you had miss taken in input select settings.
check it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 14, 2012, 02:14:12 PM
I have begun testing the 600D beta. Generally, all settings work but I have yet to get into detailed level testing for recording. My initial settings that appear to work:

Analog gain+boots: +50 dB (testing environment fairly quite)
Analog mic boost: +20 dB (testing environment fairly quite)
Digital gain: default
Input source: external stereo (I have tried internal and sources ok)
Output volume: 11 dB (testing environment fairly quite)
Headphone Mon: On (Using Sescom 550D Headphone monitoring cable, Sony CD850 Headphones)
Audio Meters: On


Problem 1: Black display on boot when AV cable connected. (Appears that it is frozen - Initially had to pull battery but workaround as follows)

Sequence:

1. AV Cable plugged in and Camera off
2. Turn camera on in Video mode - Display is off and camera appears to be dead
3. You have to press "Trash" button and then SET button and camera wakes with display and external monitoring working. I am assuming that you must already have it positioned to the Monitor item in the menu.

Problem 2: Camera will freeze with AV Monitor plugged in and you turn off monitor in menu

Sequence:

1. Monitor on
2. Turn off Headphone Monitor
3. Camera freezes with no display

You must either pull the battery (Reboot) or ...
Pull out the AV cable from camera. Pulling out the AV camera will show the display and camera functions correctly.


These are my initial findings ... more to come.

This is a great start, well done.



Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on August 14, 2012, 02:22:33 PM
I have begun testing the 600D beta. Generally, all settings work but I have yet to get into detailed level testing for recording. My initial settings that appear to work:

...

Problem 1 is how it works, if monitor is OFF when connected headphone cable, video goes to the yellow rca (check with a TV) and ML menu close so LCD is black, your workaround is switching it ON blindly.

Problem 2 is a bug in switching off monitor maybe, will look at it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 14, 2012, 03:21:54 PM
Problem 1 is how it works, if monitor is OFF when connected headphone cable, video goes to the yellow rca (check with a TV) and ML menu close so LCD is black, your workaround is switching it ON blindly.

This makes sense. Thanks for explaining.

Problem 2 is a bug in switching off monitor maybe, will look at it.

Thanks.

Incidentally, what is the significance of the volume levels turning "red" when increasing to a certain levels?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 14, 2012, 06:22:55 PM
Problem 2 is a bug in switching off monitor maybe, will look at it.

I think Problem 2 is also correct thing.
If you turn off monitor, LCD output will move to RCA yellow. So you can't see LCD .
Then you can pull out AV cable , you can see LCD again.

Also, You may blind touch the Trash->SET.
 It means a
 1: ML menu open
 2: monitor trun on(because ML menu remember the position of last things.)

So please confirm, Problem2 and pull out AV cable. And then monitor turn on and push in the AV cable.
Also you can check push the REC button when your LCD off.  You can see SD access lamp. Therefore you can check actually camera is hangup or not.

Anyway, Thankyou for your report.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on August 14, 2012, 07:06:20 PM
miyake I was thinking the same, but instead I've got a freeze not  LCD off only. tonight i work but will bring camera with me and make some test if time permits. My last test confirm your idea, it's not freezed just LCD off, maybe only sometime it freeze


value become red when using analog boost (and the second option analog mic boost will be ignore).

Using the first Analog gain+boost you are increasing analog gain till max and then you have 6 more step from boost.
If you keep analog gain under +35dB you can use the second menu (analog mic boost) to increase only boost.
this to check if for example 0dB gain +30dB boost are better than 30dB gain + 0dB boost.

Also if Override Setting is OFF and you switch headphone OFF you will have noise probably, i see the bar full red.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 14, 2012, 07:46:05 PM
Cought hangup
Also this video will show behavior of AudioMoniter ON/OFF


volume function thing.
Oh really?
Canon menu is changing
    1:analog gain to max
    2:mic boost to max
    3:digital gain LR to max
So I implemented 1&2. If you said correct thing , we can get more clear sound by our ML audio menus. We don't need to use volume level 1.
Great thing.

full red thing
OK , If you reproduce it. Get regdump!
Then we are easy to solve it.

Anyway, 3am in JP, Good night.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: caddiganfilms on August 14, 2012, 10:04:20 PM
I really don't want to get in the way here, but it looks as though you guys are close to solving the 600d audio monitoring issue!  I just returned a sescom cable after finding that it didn't work with my camera, and even thought of downgrading to a 550d in order to monitor audio.

My question is, is there any way to be notified (an email list perhaps) when this is stable?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Francis on August 14, 2012, 10:19:49 PM
While the feature may become stable sooner than later, given that it was 8 months between stable releases of ML (2.2 to 2.3) you should just check back from time to time. Once solidified this will added to the unified branch and end up in some developmental/experimental release. Eventually we plan on doing nightly builds available to donors and supporters.

That's part of the benefit of staying active in the community, you get access to bleeding edge development.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 15, 2012, 12:35:03 AM
The monitoring is stable enough. Just use it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 15, 2012, 03:21:59 AM
Also if Override Setting is OFF and you switch headphone OFF you will have noise probably, i see the bar full red.

Maybe solved it. Please check it.

And, hangup issue was reproduce my 600D. and I understand the reason. But thinking now. So time to solve it.

MSG added
Also hangup issue was gone.


-How to reproduce.
Override on , monitor on
 1: connect/disconnect AV cable
 2: finally keep connected AV cable
 3: monitoring turn off

Then, the audio_monitoring_update() is not updated correct status.  Current code is timing sensible.
So I changed to delayed update .
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 15, 2012, 04:14:25 AM
I'm totally misunderstanding our relations. Testers are not customer. Their are also volunteer like us.
We developer is volunteer too.
So I don't need to think customer impact issues such as a normal software development.
Testers are also our development team members.
 
So I will upload more quickly , before all developer confirmed new build .

Nightly build 0.2 is out
http://chirari.ddo.jp/ml/600Daudio/autoexec2.bin (http://chirari.ddo.jp/ml/600Daudio/autoexec2.bin)
History
 -added Shortcut support Audio control
 -Digital gain mute is displayed -100 dB now
 -Solved Monitoring frees issue
 -Solved Monitoring high level noise issue

I think more test needed in monitoring. Please check it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on August 15, 2012, 05:24:05 AM
I'm totally misunderstanding our relations. Testers are not customer. Their are also volunteer like us.
We developer is volunteer too.
So I don't need to think customer impact issues such as a normal software development.
Testers are also our development team members.
 
So I will upload more quickly , before all developer confirmed new build .

Nightly build 0.2 is out
http://chirari.ddo.jp/ml/600Daudio/autoexec2.bin (http://chirari.ddo.jp/ml/600Daudio/autoexec2.bin)
History
 -added Shortcut support Audio control
 -Digital gain mute is displayed -100 dB now
 -Solved Monitoring frees issue
 -Solved Monitoring high level noise issue

I think more test needed in monitoring. Please check it.
Totally agree. And since we are on this topic, I'm considering you as main developer of audio functions and so you don't need to wait for confirm from me if you think it's not needed (1% did a lot of work in discovering the register values and more also, but he's working on a lot of other things too so he can't follow closely like you or me this part). I'm a sort of tester too, I can follow development and make some patch but I know really little about C and software development.
This to say that anyone that want to help could start from testing already compiled .bin and then end up adding function to ML like it was for me.

EDIT: I've added a workaround for compiling with -mlong-calls only when on mac, this was removed since it was needed also on mac with older toolschain, but now I think it could be keept also on main branch because for win and linus there are working toolchain without it. Maybe a1ex should confirm this?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 15, 2012, 05:47:33 AM
If everyone adds a little soon we have something big. Its fine putting up bins, you don't have to ask them every time.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 15, 2012, 06:09:06 AM
@scrax
I think scrax and 1%'s confirmation is most better. But I know you two are busy now.
So I think that a little different of testers report and your report, But testers report is helpful in current situations.

I thought  you and 1% are good work for this part. and I don't need want to establish a position of superiority in this part.
Just only I want to "quick development" and "smart development".

quick means a, we are not huge company, opensource software development project. Our footwork is most flexible. I think we should not do same thing with huge company. (a lot of allowing from company ) It means a slow down the development speed.

smart means , .,,  we are sharing code on mercurial. and a lot of coding style existing.
I just only want to coordinate for  best usage of mercurial and to make a efficient codes.

However, I know that my English may be  poor.  I think I couldn't tell you all of my thought ....
And If you and 1% got bad feel from me, I'm sorry for it.

 
Title: Re: 600D Audio TEST release - 2.3 based
Post by: juantrueno on August 15, 2012, 06:21:42 AM
Well Done!!

Works really great.  Audio monitoring is working with usb-rca canon's wired.  i have to wait a few seconds for normal function after turning on, or after screen shuts down on energy saver.

haven´t record yet or tested video in post, but i will.
i heard hiss noise still even if agc is off.
gain controls seems to work ok. some times when changing value in analog mic boost it seems like the audio on monitor changes.. its like a refresh, don´t know how to express it... sorry for my english.

 That´s for now,
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on August 15, 2012, 06:24:20 AM
The only problem with bins is if they get confused with some sort of last release like it was for older bleeding-edge bin released with mailing list.
So until there is the TEST build message there is no problem in posting them. Instead it's almost fondamental for testing and feedback.

@miyake,
I'm having not at all any bad feeling from you or 1%, you hare doing a great job and I like a lot working with you on this.
Your effort in making code efficient and easy to merge in unified and maintain is of help also for me, like for boost code, when you added case instead of if. I'm more confident in pushing patch thanks to that.
I like to learn more so i'll ask if I don't understand something you reverted or added.  ;)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 15, 2012, 06:50:17 AM
I had no complaints. I hope people are reading threads when downloading the bins, I would. I use the bin I compile day to day. But I don't always shoot audio because I'm testing bit rates.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 15, 2012, 02:01:03 PM
I found one more bug in shoot mode.
When we turn overridden audio, taken picture preview is not working .

I guess, easy to solve it.  I think it will solved on Build version 0.3.

Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 15, 2012, 02:25:14 PM
Tested Beta .2 and all functions seem to be working! Recording and Monitor work fine.
The Wind Filter effect is very subtle. Possible have a sub menu with cutoff frequency, roll-off slope, and -gain level?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 15, 2012, 02:37:35 PM
Tested Beta .2 and all functions seem to be working! Recording and Monitor work fine.
The Wind Filter effect is very subtle. Possible have a sub menu with cutoff frequency, roll-off slope, and -gain level?

Push "Q" !
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 15, 2012, 02:43:13 PM
I had no complaints. I hope people are reading threads when downloading the bins, I would. I use the bin I compile day to day. But I don't always shoot audio because I'm testing bit rates.

@1%
This audio functions are based on your knowledge. And now I got baton from you. I will make a C code and maintenance it.
You may use your specialty for bit rate and 4Gig limit things are most better.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 3ao on August 15, 2012, 03:42:29 PM
Miyake &team, thank you guys very much for your great job!! Just want to encaurage you:) Best wishes from Russia ;)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 15, 2012, 04:08:56 PM
@3ao
Thanks. If you find problems, let me know .
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 15, 2012, 05:05:28 PM
Cutoff frequeny should be in there. There is a sub menu if  you hit q unless something changed.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 15, 2012, 11:35:27 PM
Push "Q" !

Cutoff frequeny should be in there. There is a sub menu if  you hit q unless something changed.

I apologize for my stupid question  :-[. Thank you.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 16, 2012, 01:12:19 AM
I have been doing some record testing and find that there is a gap of audio for about a second immediately after pressing the record button. Occasionally, the audio will stutter (on-off-on) a couple of times at the start as well. I have formatted the card thinking that possibly there maybe some write issues but had the same results. SD card is a 32GB Extreme Pro 95mB/s. Settings: CBR 1.0x default, Internal Mic, no Monitor. Does anyone else have this issue?

Update: When I turn off the Audio override then I will only get about a half a second of Audio and then silence. I rebooted without ML (SET|POWER) and recording is normal.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on August 16, 2012, 01:40:21 AM
Does anyone else have this issue?
I faced this issue too

And I have issue with muted sound with internal audio control after I turn off ML audio override.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 16, 2012, 03:27:38 AM
I have been doing some record testing and find that there is a gap of audio for about a second immediately after pressing the record button.

It's actually overriding.   Now we can only overriding only after starting record.
see this
(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fimages2.wikia.nocookie.net%2F__cb20120727040949%2Fmagiclantern%2Fimages%2F6%2F67%2FAudioicworking.png&hash=a7bfb56d540442ef553471cc8e98efd7)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 16, 2012, 04:12:44 AM
I think the easiest solution is to add an indicator when audio is ready. If the dropouts only happen before audio is configured its not that bad.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 16, 2012, 05:01:35 AM
I think the easiest solution is to add an indicator when audio is ready. If the dropouts only happen before audio is configured its not that bad.

I agree with the notification when Audio has been overridden/stabilized.  The user could anticipate the video start-up without surprises.

@miyake Thank you for the diagram. It clarifies how Canon and ML interacts.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 16, 2012, 06:15:56 AM
johndb and 1%

Thank you for your advice. added NotifyBox() when finish overriding.

Also I found one more bug.
https://bitbucket.org/miyake_t/magic-lantern600daudio/issue/12/recording-stop
But now , already solved it I guess.

@jhondb
Please check on next 0.3 version. I will upload sooon.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 16, 2012, 06:19:53 AM

Nightly build 0.3 is out
http://chirari.ddo.jp/ml/600Daudio/autoexec3.bin
History
 -solved taken picture preview on shoot mode
 -solved recording stop issue
 -added msg when overridden.

Please test it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 16, 2012, 01:37:56 PM
Nightly build 0.3 is out
http://chirari.ddo.jp/ml/600Daudio/autoexec3.bin
History
 -solved taken picture preview on shoot mode
 -solved recording stop issue
 -added msg when overridden.

Please test it.

I like the message when Audio is overridden but there is still an issue when override setting is off and audio is not recorded. The override message still shows when the audio menu is set to override off. ML should not be involved at all?

UPDATE: Now this is very odd. I powered the camera off and powered it on and all audio override works perfectly. I tried with override off and there is NO audio missing. I also recorded with override on and there is NO lag at the start. I should also note that the override MSG does not show in either case. Very strange.

UPDATE: The audio works perfectly as long as you do not show the ML menu on power up. After to have pressed record button to make a recording and stop recording,  you can show the ML menu, change settings like override off and on and audio recordings are still perfect without lag. It would appear that Canon sets something upon record and is retained/ignored by ML hence menu and audio works after that. Showing the ML menu as soon as you power up must set something different? The new override message does not show at all in this state! Can someone else confirm my findings?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 16, 2012, 02:11:15 PM
@johndb
Thanks , Found one more problem. Now solving and testing.

MSG added
Nightly build 0.4

http://chirari.ddo.jp/ml/600Daudio/autoexec4.bin
History
 -solved override exception handring
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on August 16, 2012, 02:20:02 PM
Seems ok now, also when switching Off Override is right to have the message because ML will switch off audio

updated first post
Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 16, 2012, 03:18:11 PM
@johndb
Thanks , Found one more problem. Now solving and testing.

MSG added
Nightly build 0.4

http://chirari.ddo.jp/ml/600Daudio/autoexec4.bin
History
 -solved override exception handring

Build 0.4 cleans up the issues raised in my post #38 . Thank you.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 16, 2012, 06:09:11 PM
Thanks johndb.
Does any other problem available??? Feel free to post any bugs. and you can feel free to ask questions.


Only 7 peoples tracking the updates.
Code: [Select]
[root@chirari miyake]# cat /var/log/httpd/access_log | grep autoexec.bin | wc
     76    1493   16559
[root@chirari miyake]# cat /var/log/httpd/access_log | grep autoexec2.bin | wc
     25     538    6641
[root@chirari miyake]# cat /var/log/httpd/access_log | grep autoexec3.bin | wc
      7     151    1855
[root@chirari miyake]# cat /var/log/httpd/access_log | grep autoexec4.bin | wc
      8     160    1963
Title: Re: 600D Audio TEST release - 2.3 based
Post by: funkysound on August 16, 2012, 06:21:32 PM
Does any other problem available??? Feel free to post any bugs. and you can feel free to ask questions.

Would love to test it too but I have to work with my 600d for a few days - just no time to do it and I have to stay with the stable release 2.3 till the job is done.
But - thanks for all the afford you did put into this miyake and all the others!!!  :)



Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 16, 2012, 06:30:55 PM
@funkysound
Thank you for your comment. I hope your work successfully finished.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 16, 2012, 06:49:13 PM
Thanks johndb.
Does any other problem available??? Feel free to post any bugs. and you can feel free to ask questions.


Only 7 peoples tracking the updates.
Code: [Select]
[root@chirari miyake]# cat /var/log/httpd/access_log | grep autoexec.bin | wc
     76    1493   16559
[root@chirari miyake]# cat /var/log/httpd/access_log | grep autoexec2.bin | wc
     25     538    6641
[root@chirari miyake]# cat /var/log/httpd/access_log | grep autoexec3.bin | wc
      7     151    1855
[root@chirari miyake]# cat /var/log/httpd/access_log | grep autoexec4.bin | wc
      8     160    1963

Thank you miyake.
I'll be doing some more testing this evening.

TO ALL TESTERS: Please make sure that you download the latest build. This project is evolving very rapidly and the development team needs your results. 76 people downloaded version 0 and only 8 people downloaded the latest .4 build. The development team has worked very hard to get the software to this very workable point.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: zachp116 on August 16, 2012, 07:07:23 PM
Hi. I'm new here. Just got a t3i(600d) would love to be a tester. how do i install the update onto my existing Ml 2.3?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: nanomad on August 16, 2012, 07:10:08 PM
Just replace the autoexec.bin on the card with the one you download (make a backup so you can switch back to stock 2.3)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: zachp116 on August 16, 2012, 07:27:08 PM
awesome! thanks
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on August 16, 2012, 09:43:10 PM
and don't forget to rename it to autoexec.bin  if it's one of the last autoexec released
Title: Re: 600D Audio TEST release - 2.3 based
Post by: klangdrang on August 17, 2012, 01:48:13 PM
Thanks for doing this!
I just tested 0.4. The audio monitoring works but there seems to be a problem with overriding audio and audio metering. When I activate Audio Override the sensitivity metering of the metering is extremely low but the input volume is normal. I have to increase the analog gain to 60db to get red bars in the metering. But audio starts popping at 15db. At 60db audio is much too sensitive and metering seems just right.
I use an external Rode Stereo Video Mic Pro and Headphones for monitoring which are connected to the canon A/V cable via two adapters. My setting for the POutput Volume is 11db.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: klangdrang on August 17, 2012, 03:30:49 PM
...also following things are not working:
starting camera with audio override off, audio monitoring on and headphones connected: display keeps off
audio monitoring without audio override works only if first audio override is activated and afterwards deactivated. then you can monitor the sound without audio override till you are in the magic lantern menu and half press the shutter
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 17, 2012, 03:59:55 PM
@klangdrang
Thank you for your testing.

1st meter sencivity thing. I will test it.
2nd monitor blackout thing. See this YouTube



MSG added
hmmmmmmmm...
It's a little difficult to finding reason for it.
Actually cpu is a little high load, then meter_task is slow down.But I can't find the reason yet.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 17, 2012, 07:07:20 PM
Nightly build 0.5 (test version)
http://chirari.ddo.jp/ml/600Daudio/autoexec5.bin
History
 -meter sencitivity issue . may be solved

Maybe solved it. Please Please test this build


MSG added
I forgot to update version number string on this autoexec.bin....
Title: Re: 600D Audio TEST release - 2.3 based
Post by: witchmaster on August 19, 2012, 11:45:30 AM
Really nice work with this, thank you all developers! I have a question though. I tested version 0.4 and when I override the audio settings I still get the same noise as when recording with override: off. Is there something I'm missing or does these changes not affect the poor audio recording quality of the 600D?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: witchmaster on August 19, 2012, 12:14:36 PM
I couldn't get 0.5 to show anything on the audio meter and no audio being recorded whatsoever.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on August 19, 2012, 12:36:37 PM
I couldn't get 0.5 to show anything on the audio meter and no audio being recorded whatsoever.
Enable audio recording in Canon menu, enable ML audio override, increase Analog gain, select internal mic or auto input
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 19, 2012, 03:13:17 PM
@Rush
Thankyou

@wichmaster

Really nice work with this, thank you all developers! I have a question though. I tested version 0.4 and when I override the audio settings I still get the same noise as when recording with override: off. Is there something I'm missing or does these changes not affect the poor audio recording quality of the 600D?

 The normal canon menu is using "mic vol","Mic boost", "Digital gain" combination with only single control bar. and these parameters are fixed ratio.
So it's time to find best combination ratio for getting lesser hiss-noise. But we already know Juiced-link is one of better solution for it.
it's up to you.

Basically our codes are only provide more controlling ability on audio settings.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 20, 2012, 07:46:44 AM
600D audio autoexec.bin *BETA* Updated
http://chirari.ddo.jp/ml/600Daudio/autoexec6.bin (need rename to autoexec.bin)
History
 -Solved issue #15(taken picture preview in movie_mode)
 -startup/preview response up.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on August 20, 2012, 11:39:56 AM
Thank you very much for your work!!!

Is it possible to solve problem with stuttering of audio in first seconds of record?
I thought that on 550D/60D there are no stuttering...
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 20, 2012, 11:48:59 AM
Is it possible to solve problem with stuttering of audio in first seconds of record?
I thought that on 550D/60D there are no stuttering...

currently , I can't.
(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fimages2.wikia.nocookie.net%2F__cb20120727040949%2Fmagiclantern%2Fimages%2F6%2F67%2FAudioicworking.png&hash=a7bfb56d540442ef553471cc8e98efd7)

@scrax
Please add this picture and Headphone youtube to first post.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on August 20, 2012, 09:30:55 PM
@scrax
Please add this picture and Headphone youtube to first post.
nanomad preceded me :)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: xaled on August 20, 2012, 11:31:02 PM
Thanks for the enabling audio controls on 600d!

Short question - is it possible to have different analog gains on the left and right channels?
Something like Juicelink does:
(https://www.magiclantern.fm/forum/proxy.php?request=http%3A%2F%2Fjuicedlink.com%2Fdownloaddata%2FAudioBracketing01.gif&hash=f1eb1ca11932bc04de5e04d9237905f7)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 21, 2012, 03:25:32 AM
@xaled
You can do by Digital gain LR.
But range width is tight.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on August 21, 2012, 11:23:47 AM
@xaled
You can do by Digital gain LR.
But range width is tight.

Are you sure that it will affect clipping?
I think that if you get clipping sound with analog gain - you will get clipping even with applied "minus digital gain". Or am I wrong?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 21, 2012, 12:07:28 PM
Are you sure that it will affect clipping?
I think that if you get clipping sound with analog gain - you will get clipping even with applied "minus digital gain". Or am I wrong?

Does something different of analog and digital gain for final recorded volume?(Actually noise is different. )
I'm not expert of Audio.
Now we found only Digital gain is able to control LR separated.

And if you know good article of this thing. Please let me know URL.

Title: Re: 600D Audio TEST release - 2.3 based
Post by: xaled on August 21, 2012, 02:18:41 PM
@miyake

Thanks, I did not look at digital gain. I'm trying to avoid it.

May be one day the LR controls for analog gain will be found on the 600d audio chip.

Greetings,
xaled
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 21, 2012, 04:01:09 PM
If its not in the data-sheet there isn't going to be any "finding".
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 22, 2012, 04:15:17 PM
600D audio autoexec.bin *BETA* Updated
http://chirari.ddo.jp/ml/600Daudio/autoexec7.bin (need rename to autoexec.bin)
History
 -merge with current repo
 -reduce pop noise and responce up when setting audio chip.
 -monitoring lauch timing issue solved(startup related) (@klangdrang reported)
 -monitoring off is perfectly working.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: funkysound on August 22, 2012, 07:50:35 PM
Now I found a short time to check the test release (7) - great work!

But I found that the audio out could be a bit louder and I also felt that there were too much high frequencies. I tested it with different Headphones using the org. canon cable + adapter.
Using the digital department I couldn´t hear any difference when I pushed L/R over 0 - even +7 didn´t really push the volume.

I may have done something wrong because there was only short time -  I wanted to mention it anyway.
But it´s is a great step forward! :)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 22, 2012, 08:21:33 PM
Digital gain did work for me... it made monitor louder. Its loud enough for me on 0 even with earbuds. It was actually ear shattering before if turned up too high. Everything depends on input volume, if that is quiet, the monitor will be too. I still have to test external mic and something more than tapping. Honestly its pretty good thus far and better than 550D/etc audio.

Title: Re: 600D Audio TEST release - 2.3 based
Post by: jonnyschanny on August 22, 2012, 10:14:30 PM
hi, i downloaded v6, and heres what i found. After using the camera for a bit in film mode and taking several short shots, i turned it off, but found out the red light at the bottom of my camera stayed on. I tried to turn it back on, and nothing happened. had to take the battery out. it only happened that once, so i dont know what the problem was. Dont know if anyone else has experienced that
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on August 22, 2012, 10:47:12 PM
the red light at the bottom of my camera stayed on.
I have such problem only when I eject my memory card before blinking of led stops
Title: Re: 600D Audio TEST release - 2.3 based
Post by: nanomad on August 22, 2012, 10:52:10 PM
Could be. Never do that though as it could cause serious camera issues including bircks
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 23, 2012, 01:15:12 AM
600D has been having this issue on/off... I don't think its related to audio only
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 23, 2012, 01:53:41 AM
Thankyou very much all testers.

@funkysound
v7's sound diffence made by a Equalizer off. When we turn on the equalizer with default equalizer paramers, the volume go to down a little.(and current recording sound is not natural sound. It's already customized by canon.)
We were thinking our overriding is turn off equalizer at all time. But I found bug on changing equalizer setting. Solved it and then we got little loud soud. So you may volume down and check sound quality.

@1%
Digital is working with no problem on my side.

@jonnyschanny @Rush
In my knowledge, some task is still working(deadlock) then it can't be shutdown.
In this case, you CAN'T see "Sensor cleanning" message. You must BATTERY PULL NEEDED.
Anyway, When it cannot reproduce on my side, I can't solve it.  and use v7.
If you face this issue again, please let me know.

Another thing.
1:Turn power to off.
2:displayed "Sensor cleanning" and finish shutdown.
3:Open the SD-card door.
 4:read autoexec.bin (all cameras)
(Normally, it's a really short time. But reading broken autoexec.bin, LED is not finish flashing)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 23, 2012, 03:17:47 AM
Only thing not working for me is wav playback. For some reason the speaker pops  but there is no sound. Beeps and test tones work though. Records fine too.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 23, 2012, 03:34:12 AM
Ah, Isee.
You may put msleep(500) between audio_configure() and playing wav.

MSG added
1%
I just understand, I was miss understanding your message.
And check codes, but already added msleep(500) in wav_play_ex()....
We need to check which is buffer(and inside data of buf) is prepared or not first.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 23, 2012, 06:08:09 AM
600D audio autoexec.bin *BETA* Updated
http://chirari.ddo.jp/ml/600Daudio/autoexec8.bin (need rename to autoexec.bin)
History
 -Added effect mode control in Digital menu
 -Completely split menu item for analog[gain,boost], add these into submenu.

Added control for effect mode. But only working "Notch filter". Because when camera standby,
 all Equalizer parameter was reset by canon firm. 

Split contorol menu for Analog gain and boost. boost up is better for getting nice volume with less hiss-noise.
As scrax said befor, boost is lesser hiss-noise.
So It's a "gain+6&boost+25" is better sound than "gain+30&boostOFF"

Try it. You can hear very good sound
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 23, 2012, 11:08:44 AM
They updated it,

https://bitbucket.org/hudson/magic-lantern/changeset/5c886add747dd0426f75bb71bc9cfa95807f6dc2

I put msleep but for some reason it didn't work.

With or without it stopped playing. Also, it used to be able to play beeps through monitor and now its choppy and cuts off

https://bitbucket.org/OtherOnePercent/tragic-lantern/changeset/9e93e6735b6e4a58ef005540e9e6f026692beb27.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 23, 2012, 12:06:36 PM
1%:
I will check it. and I just understand how to override beep from your code.
Will try it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 23, 2012, 03:05:48 PM
1%
Current code has no entry for this func.
Code: [Select]
beep.c:(.text+0x278): undefined reference to `SetNextASIFADCBuffer'
and I guess You may add msleep() in beep.c line 231. like this

Code: [Select]
   PowerAudioOutput();
    audio_configure(1);
#ifdef CONFIG_600D
    msleep(500);
#endif
    SetAudioVolumeOut(COERCE(beep_volume, 1, 5));
    wav_ibuf = 0;


MSG added
Oh, you already added...
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 23, 2012, 04:42:56 PM
We have 2 functions like that function... one for int 8 and one for int 16.

Also wonder if its possible to record a wav and a audio-less movie at the same time.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: a1ex on August 23, 2012, 05:14:24 PM
Use the 16-bit stub, although they are identical on 5D2 and 550D.

I think the wav recording can be combined with FPS override and get a MOV and a WAV file.

For high bitrates, No idea how high you can go, but with a large audio buffer it may be quite OK.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on August 23, 2012, 05:24:13 PM
Using v8 I have err70 when recording wav. Not tested a lot, just a couple of quick test from the menu and using set after a pic same memory problem.


crash log:

ASSERT: FALSE
at Memory\Memory.c:188, task beep_task
lv:0 mode:3


Magic Lantern version : v2.3.NEXT.2012Aug23.600D102
Mercurial changeset   : 0f0fc93360e6 (unified) tip
Built on 2012-08-23 04:03:03 by miyake@MLJPinfo.
Free Memory  : 333K + 995K

Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 23, 2012, 06:20:24 PM
@scrax

yes., beep.c is still yesterday version.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 23, 2012, 06:25:53 PM
My recording is still solid. Just playback dead, but that's not a big issue. 90mbps + wav audio would be hot.

Also need to change first analog lable, its not gain + boost anymore.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: jonnyschanny on August 23, 2012, 11:32:58 PM
i similary got an error 70 when trying to use the recorder. this was on v7. Sorry i was out of town yesterday evening so i couldnt get v8. Anyways, under sound recorder.... i hit the "record new audio clip" and the error happens. It says "saving debug log. send log to ML developers". Um how can i send you the saved debug files?? Also, i tried the recorder with different options on, example : different record lengths. But each one got an error. Never got it to work without it crashing.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 24, 2012, 02:09:55 AM
@jonnyschanny
We developer already know sound recording issue on  current 600D audio BETA.
1% is solving himself and using 1% version autoexec.bin.

v8's sound recording  is also not working. we just develop it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 24, 2012, 02:59:35 AM
Truthfully, I've been copying you lately. :)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 26, 2012, 07:26:55 PM
600D audio autoexec.bin *BETA* Updated
http://chirari.ddo.jp/ml/600Daudio/autoexec9.bin (need rename to autoexec.bin)
History
 -Solved two monitoring issues.
  *solved display blackout when plugged Headphone and HPmon ON and Override OFF.
  *solved strange volume issue when cfg_override off and monitor mode off.

Dear Testers:
How about your testing status? Is it a enough stability? I will freeze code at this version 0.9.
My known bugs are all solved.So  please testing this version. and please tell me "good" or report problems.
Thank you for your cooperation.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 26, 2012, 07:50:21 PM
Focus square resets location to upper left corner of display other than this one problem video recording is good.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 26, 2012, 07:57:00 PM
@johndb
Did you try 0.9? I have no problem.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on August 26, 2012, 10:26:37 PM
Updated first post and fixed analog gain names.
I can't find wav record function is this ok? was hidden...

Seems I can't play wav, but just done a couple of quick test.
I was thinking if we can use that for recording audio and keep audio off in canon menu when recording video, so to have more control on the audioIC at the price of separate audio and video files?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on August 27, 2012, 02:00:17 AM
Is it a enough stability? I will freeze code at this version 0.9.
My known bugs are all solved.So  please testing this version. and please tell me "good" or report problems.
Thank you for your cooperation.
I experienced some weird stuff and volume bugs, when I was using autoexec9.bin, but I still have to recreate those conditions, so that I can be sure that those are in-fact real bugs. I will make a short video about showing the bug conditions being created, but I'll do it tomorrow, right now gotta get some sleep! And I can also post some noise comparisons between different audio gain functions on soundcloud, if you want to hear some differences!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 27, 2012, 05:02:29 AM
@scrax
 -I think I will solve issue wav play after finishing 600D audio is more stable. It's not time to solve it. because it has a small posivility for some code will be change on our side.
 -yes, beep.c has PowerAudioOutput(built-in function). So we need to use it.

@Kromofone
 -Thanks, please go ahead to make your video.
 -I'm tried it too. But it's a really small noises in low volume environment. I can't see purple graph
   http://chirari.ddo.jp/ml/?p=934
Title: Re: 600D Audio TEST release - 2.3 based
Post by: johndb on August 27, 2012, 02:34:09 PM
@johndb
Did you try 0.9? I have no problem.

The problem has been corrected in 0.9. Thank you.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: jonnyschanny on August 28, 2012, 02:34:47 AM
Good work!! on v9, while recording video and audio from an external mic, i've had several times where the video automatically stopped recording after a few seconds.  it said something like. "camera automatically stopping recording. I felt my camera and it didnt feel hot. seems like this may be a bug. ill let you know if i find anything else. :D Thanks again to all of you for making it possible for us to get decent audio!!!!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on August 28, 2012, 02:44:51 AM
Did you set bit rate at all? Sounds like buffer ran out.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 28, 2012, 03:38:47 AM
@honnyschanny
My guess is
Please try bitrate 0.1 or 0.5(down the bitrate). Then If solving problems, you need more faster cards.
On camera CPU/memory/data bus has some resource limitations.
Actually, Override Audio need a little bit more resources. Then a little slowing down the total amount of recording processes.
But If you use faster card, the bit stream is a little bit faster writing to the card when before we enter heavy processes(overriding).
Then, buffer utilization become low.=> not stop recording.
However, I can't guarantee solving a problem when you buy faster card. It's a good reason for buying a newest faster card ;-)
1% is already found how to write over 4Gig(long time recording). So I recommend you to buy SDXC.
(and test this issue is reproduce or not (^_^;)

Anyway, previous versions are sometime stop recording on my situation. But v9 is a little cleanup override codes. So now I have no problem.And one more tips for you.  When boot up first time recording, It's a little more resource using. When 2nd time, Camera will use memory cache for recording processes. It means 2nd time is light weight for the processes . And not stop it, I believe.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 28, 2012, 04:31:41 AM
Oh,no
Audio remote shot is not working now....my fault.
Already solved on source code.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: bart on August 28, 2012, 03:38:26 PM
Hi I did a test with the Rode videomic.

USB monitor is hard to get started. Plugged in on startup gave a black screen and same plugged in after startup. But after trying a couple of times It worked. Plugin external mic after startup works and is reported on screen.

I use to get a pretty weak signal from the rode videomic. But I had little problems now with the big analog gain and boost options. Maybe it's as good as the videomic pro now.

Anyway I have both 550d and 600d and I could test differences if needed.


Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 28, 2012, 04:04:31 PM
@B4rt
Thakyou for testing.
The USB monitor things. See Youtube on 1st post.
Some peoples already asking same thing. But I can't get smart answer for it.

-Volume issue.
You may volume up boost, first. Then volume up the analog gain. Maybe you can get low hiss-noise sound compare with cannon volumes. Try it.

-550D things
Current code is combined all cameras codes in same audio.c. So I think I want you to confirm on 550D is same function of previous 550D codes when we finish stabilization optimization.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on August 28, 2012, 05:17:35 PM
Alright, here's my report:
I did some testing, for any bugs, so I explored many combinations, so here are some videos, so you can see for yourselves:

1st one - ML600D - Audio - Bug 1:
Info: Here I was experimenting a little bit, I turned on the sound recorder, so only sound was recorded, then I pressed the record button for video and the camera went shut, it froze. At that point I couldn't do anything else but to remove the battery and restart the camera. I don't know if this is a bug or just a weird combination and a mixup of some wrong codes.

2nd one - ML600D - Audio - Bug 2:
Info: In this video I explored the possibility of recording secondary aka custom sound when recording video. You can see, that as soon as I turned on the sound-only recording, while I was video recording, I couldn't get out of the menu of magic lantern. Then I curiously pressed the shutter button, to take a picture, thinking if that would help, but it turned out, that I created the same freeze problem as in the 1st video.

3rd one - ML600D - Audio - Bug 3:
Info: Here I started only sound recording via the feature in the audo menu, and tried to change the functions in Canon's audio menu. When I did, Audio meters froze, and well...I'll let the video explain it, does a better job than me for sure.

4th one - ML600D - Audio - Bug 4:
Info: In the last video, I discovered that I was able to go from video mode to photo mode with the audio feature still turned on the whole time. So then I could record audio, even if I was in photo mode, because the audio was turned on from previous use of video mode.
So this could be very useful, to have audio also in photo mode and not in video mode, so that I could record longtime audio without having the shutter up and without the sensor getting hot through time. If this could be implemented, could you do it, miyake?

Oh and I also experienced the same bug from 3rd video, when I was making some changes with analog gain+boost and analog mic boost, while I was recording sound only. And I noticed that there was considerably less noise, if I was using analog mic boost to max instead using analog gain+boost to max.

Miyake I hope, this helps you in any way to make the audio function more stable for the 600D, but if not, I took some time out of your daily life and for that I am sorry! :P

Edit (28.08.2012, 17:21): I just found out another bug or false thing of some sorts. If, let's say, I wan't to turn off Override setting in Photo (M) mode and turning it on again, hoping that I could get audio in photo mode that way, my audio meters go crazy aka to the top of the metering range.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 28, 2012, 06:33:07 PM
@Kromofone
Thankyou ! Anyway, your finger is really fast ;D

-1st&2nd SoundRecording with video recording .
 Sound recording function is making by Alex. And it's just developping it. Now we can't find how to record without audio , but audio amp is enabled on same time. It's a reason of it.

-3rd It didn't override when we change Canon audio setting from manual to auto
  Now we didn't found how to know canon audio setting changes. we only to know volume now. It's TODO.

-4th audio is working on photomode
 It's not a bug. correct thing. Because we need to sound func for "Audio remote shot" in photo mode. Now v9 has a bug which is we can't override audio settings when we using photo-mode. So now you changed from movie to photo. It's working. But Audio on/off or some setting change was not working in photo mode. Code is already solved .

-5th Sound recording with audio setting change.
 hmm. Soundrecording is not using our functions. It's only use canon functions. So we need to find how to override it.

Final things are same as 4th bug, I already solved it.


Anyway, You are a lot of combination with Sound recording. Did you find  another problem without Sound recording?


 
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on August 28, 2012, 09:55:31 PM
Edit (28.08.2012, 17:21): I just found out another bug or false thing of some sorts. If, let's say, I wan't to turn off Override setting in Photo (M) mode and turning it on again, hoping that I could get audio in photo mode that way, my audio meters go crazy aka to the top of the metering range.
I have that problem too, and switching Filter will solve it.
 
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 29, 2012, 12:14:13 AM
@scrax
Basically, it's a solved on newest source. But I will check on filter codes. It's need a more exception for checking a status for cfg_override_audio.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on August 29, 2012, 01:52:08 PM
@Miyake
Thanks for the insight, now I know a lot more, what is going on in the whole thing. Well one other thing kinda bothered me and that is audio monitoring. I use an AKG K271MKII Studio Headphones for monitoring and producing and I've hooked them up to the camera using some audio cables and adapters, I purchased sometime ago. But from what I can hear and tell is that the output volume is very low even at Max output at 11dB. And it seems like that there is no low frequency (bass) response in the output. Is the volume intended this way and maybe can't be amplified and adapted, or you just haven't explored the function enough and haven't found a way for it yet?

@skrax
I have that problem too, and switching Filter will solve it.
Thanks for the tip. ;)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 30, 2012, 06:46:30 AM
@Kromofone

1: monitor level issue
I have  no problem on my SONY MDR-NC600D. Your AKG' impedance  is 55ohms. But mine is 40ohms. So you may use more low impedance headphone for monitoring. Because 600D's audio chip max is only 11db.

2: bass sound issue
What microphone are you using? Can you get correct input? and recorded sound is also record without bass sound?
Anyway, We are only on/off sound chip functions. So I didn't touch sound friquency in this time.May be we can't solve it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 30, 2012, 06:56:52 AM
It from 600D audio chip specification.
Quote
High Pass Filter 1(DC filter)
A first-order High Pass Filter that bandwidth is bellow 10Hz for the purpose to cut DC.

So you may turn off all filter, Then check it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on August 30, 2012, 02:55:01 PM
1: monitor level issue
I have  no problem on my SONY MDR-NC600D. Your AKG' impedance  is 55ohms. But mine is 40ohms. So you may use more low impedance headphone for monitoring. Because 600D's audio chip max is only 11db.
I gues I'll have to buy some sort of a portable amplifier. Any suggestions are welcome, if anyone has them.

2: bass sound issue
What microphone are you using? Can you get correct input? and recorded sound is also record without bass sound?
Anyway, We are only on/off sound chip functions. So I didn't touch sound friquency in this time.May be we can't solve it.
I use a Soundking EH 205 microphone, which is almost identical to the Shure SM58 (sound-wise) as I have used the Shure one, before I got the Soundking one and they are pretty much indentical in sound. But I also tested the quality with the Rode Stereo Videomic and the quality of the bass response was the same. But I'll have to do some more testing with the headphones, so I'll be definitely sure about the problem.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: xaled on August 30, 2012, 06:07:35 PM
@Kromofone
FiiO E5 Headphone Amplifier with Micca Y Cable should work fine:

http://www.amazon.com/gp/product/B002V5M5E6?ie=UTF8&tag=dfn0c-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=B002V5M5E6
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on August 30, 2012, 09:59:46 PM
Hmm this one looks interesting, but I'm looking for some more quality and more expensive stuff. I need high class-quality, when it comes to sound!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: jonnyschanny on August 31, 2012, 12:44:39 AM
Hi all, i've been doing some sound testing and having fun!!! but i had a few questions about getting optimal noise to signal ratios.   First of all, from my experience, i got a cleaner sound when the analog gain was at 0 dbs and the mic boost was on 10 or 15 db then vis-versa.  In otherwords, the mic boost is giving a cleaner sound then the increasing the analogue gain. Also, for my setup, im running  a Rode NTG-2 ( battery powered) xlr into a Juicedlink cx211, into a  3.5 stereo cable into the canon mic port. sound is set to external stereo, although my mic is mono. So far, when i have the gain in the juice link at max, i've got a very clear sound recording.  I was wondering if you guys had any preferences on the mic boost vs increasing the analogue. i've stayed completely away from the digital gain. Also, i havent tested the difference between the windscreen on and off and see how it effects the volume. Anyone else run some of these tests??       Thanks again to all of you doing the programming. You amaze me with your skills :D




Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on August 31, 2012, 01:58:28 AM
@Miyake
Oh, just stumbled apon another thing.
Got any explanation for this? It automaticly started to switch when I pressed the Q button, trying to access it. And when I went to the main menu, all of those ones were going like crazy, as if a ghost was constantly browsing through all the menus via the Main Dial. 2nd video coming in a minute.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on August 31, 2012, 04:32:45 AM
@jonnyschanny
We know boost is better S/N ratio for volume up. (^_^)b
And now Filter functions(DC/HPF2) has bug. wait for a moment to solve it.

@Kromofone
We had same experience on just start up the audio deveropment.
But now we have no chance to catch this bug, So I thought this bug is gone.
I will try to reproduce it.

BTW, I'm having a business trip now. So I will solve it when we going back to my home.
 
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 01, 2012, 07:50:36 AM
You can record with the voice recorder while audio off.
Audio remote shot takes 2 pictures and won't work if audio disabled.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 01, 2012, 04:13:13 PM
@Kromofone
I just checked bass sound issue.
It has no problem.

I using wave form generator to test bass sound.http://www.ne.jp/asahi/fa/efu/soft/wg/wg.html (http://www.ne.jp/asahi/fa/efu/soft/wg/wg.html)
And connect between PC speaker out and  600D's mic input using 3.5 pin cables.
Then test under entries. I can hear the base sound from monitor output from headphone.
-50Hz
-63Hz
-80Hz
-100Hz
-125Hz
-150Hz
-200Hz


Let me know why you thought that "bass sound is not hear on your headphone" ?

@1%
will test it.
But now , audio remote shot has no problem.
Anyway, will push current code soon.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 01, 2012, 04:55:07 PM
600D audio autoexec.bin *BETA* Updated
autoexec10.bin (need rename to autoexec.bin)
http://chirari.ddo.jp/pub/betauploader/600Daudio/
(Uploader changed. )
History
 -audio remote shot en-bug solved
 -DC& HPF2 filter bug solved. (Previously these filters are always on)
 -delete unused global filter on/off
 -beep/audio recording/playback working only without connected RCA monitor cable.
 -This version is not support WAV record and Movie record together

hmm, when can I freeze codes..................
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 01, 2012, 06:41:54 PM
@1%
Let me confirm your will.
 - You want to use audio recording when audio off in canon menu. right?
 -You want to use remote shot when audio off in canon menu. right?

Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 01, 2012, 07:39:34 PM
Yes, its a little more complicated though. I want a 3rd mode for override where it ignores the sound enabled switch and start wav when movie starts. So like it makes a MVI_31337.mov and MVI_31337.wav.

Right now I flipped the define for sound recording enabled and can record wav + ~100mbps video but its not automated. Conveniently now audio override on/off turns sound on/off. This way we have sound for ppl who want it in the movie and for people who want it separate. Would help the fps override ppl too as right now their audio is all mismatched.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 01, 2012, 07:56:56 PM
Confirmed on my code too. I also recording CBR 2.0 + wav sound.
Check my repo. And I also check your repo .
BTW, I feel recorded sound is a little fast. The bitrate setting is related with clock or some h264 clocking to be fast?
Then, If we found how to solve clock? things, we can record normal recording path, I guess.

Anyway, I will think about best user interface for it.
I think  add some more options for doing this , and override when start recording.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 01, 2012, 08:46:06 PM
Quote
BTW, I feel recorded sound is a little fast. The bitrate setting is related with clock or some h264 clocking to be fast?

I got echoes sometimes like there is a delay if BR gets too high but I need to test more. Right now I'm starting it manually.

All it needs is a extra mode for audio override. Like On, off, Audio off. Then it can make wavs automatically. No more fighting with canon stuff too in this mode and probably no delay waiting for override. Just have to pass wav recorder a filename and make sure buffer is not too small/big, etc. I dunno if clocking is related as wav audio is separate from MVR and shouldn't be affected by it. Have not tried with FPS override which does change clocking.


* also now with cache hacks you can no-op canon writes to audio
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 02, 2012, 02:43:43 AM
Quote
I got echoes sometimes like there is a delay if BR gets too high but I need to test more. Right now I'm starting it manually.

What is "BR"?

Quote
I dunno if clocking is related as wav audio is separate from MVR and shouldn't be affected by it. Have not tried with FPS override which does change clocking.
The clocking is just my guess, I don't know correct point. And MVR with audio need to more CPU/Buffer, because H264 ?clocking? is faster than normal recording. So audio need to fit . It's need a cpu and buffer . So it will stop, I guess.

-Menu things
As your said some combinations.
But I think, only Hi-Bitrate need to record audio .
I think , don't need to record sound on FPS override.

If so,  I will add "With WAV record on/off" menu in Bitrate submenu. Then actual code in audio.c , I imagine.
How do you think?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: ilguercio on September 02, 2012, 02:53:41 AM
BR is bitrate.
;)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 02, 2012, 03:19:42 AM
You could put it in bit rate menu but running out of space in there. It would work in fps override without much changes if it works for regular recording. People were wanting to do it in another thread and complaining about it.  This solves both issues and frees up the encoder for video.

It also takes care of that 2 second delay for override and probably takes out more overhead as you don't have to override as much. People can chose either mode with minimal changes besides the functions to start wav when movie starts and change the name, etc. Also audio easier to turn on/off. Right now you have to leave it on all the time or turn it off and go through many menus to bring it back.

Also this possibly ports over to other cameras since the voice recorder does too. Just have to see if delay is from current functions re-overriding audio or from something else or if its present on external.

Debug.c is full and I can maybe get rid of 1 gop option that is actually calculated.

http://imgur.com/a/NHM6R
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 02, 2012, 04:29:44 AM
BR is bitrate.
;)

Ah! Thanks
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 02, 2012, 05:31:07 AM
@1%
I see your work. And some people want to record sound FPS override. So we need to think about good UI for sound recording.

If we turn on "wave recording togeter"
 -Automatically disable canon audio, if it enabled
 -get current recording file name and then change extension to WAV for recording sound file.
 -start wav recording when we push MVR record button.(Actually start recording after override setting will finish , I think.)

BTW, FPS override person is what is talking? I think FPS override need a lot of time for recording. Are they want to record all of time for recording FPS overriding video recording????
I think they only need few second for post.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 02, 2012, 05:39:24 PM
You can do a few seconds or whole time, wav is spearate so theoretically it won't be affected. Rate wouldn't have to match FPS rate.

Quote
If we turn on "wave recording togeter"
 -Automatically disable canon audio, if it enabled
 -get current recording file name and then change extension to WAV for recording sound file.
 -start wav recording when we push MVR record button.(Actually start recording after override setting will finish , I think.)

Pretty much this. Also then you can keep audio off and turn on wav recording to set audio on/off quickly.  Can be 1 setting. Would only have to set up audio before record and override whatever wav recorder changes. All other settings would work the same I think, they seem to now.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on September 02, 2012, 11:57:19 PM
Voice tag is great, just tried right now from source.
If with that we can record audio with canon audio off and video, I think that maybe we can keep canon off by default and use only ML audio with override only for play mode.

Tested audio off and video recording but I have a delay effect on the recorded audio.
Like:
Testing audio recording

Tete-stst-inin-g g g...

not all audio gets recorded.
with CBR set to 0,1 it goes better but not perfect, sometimes it still skips like looping some part of audio data.
with low FPS it is the best so far, but really ok only when recording audio alone.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 03, 2012, 12:19:16 AM
Yep, that is the echo. For me it only comes up sometimes. Probably related to card speed. When it echoes is when audio starts dropping out. Fine tuning the buffer for wav recorder might help.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 03, 2012, 04:35:38 AM
hmm,
My guess.
- h264 stream and voice data writing together.
- voice data writing gets blocking when finish previous writing.
-->On chip audio raw data is discard, and we can read next buffer.

I think canon audio data function using ring buffer, so I think we had it problem.
Then I think we also use memory buffer to read it.

BTW, I'm not testing voice tag functions yet  ;D

Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 03, 2012, 05:19:22 AM
Can try in gop 1 where it constantly writes out the buffer and see if echo gets worse.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 03, 2012, 06:15:50 AM
What you mean "gop 1"?
GOP only 1frame? Is this writing each GOP? Then H264 stream will write more small chunk on each frames?
right?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 03, 2012, 06:19:25 AM
Gop = group of pictures. Made of I frames and P frames on 600D. Gop1 = all I frames. Gop 3 is 1 I frame and 2 p frames, etc. I frame written out pretty much immediately, P frame stored in buffer. I see by sd card light.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 03, 2012, 06:31:58 AM
My English question was poor. but My understanding is  correct. I know GOP and it's architecture.
BTW, All user need to ALL I frames when they want to record WAV.
Adding Buffer function is more better I think. Because it's don't need to care about WAV with GOP.
Anyway, need more testing for it. And I have no repo for merged your codes. Can you try it?


BTW, it's a little difficult to collaborate code with another cameras.
I think WAV related functions need to implement another camera first. Then we will add 600D optimization after finishing them.
Now I can write all of your request, but I think it's not good for another cameras.
It's not only 600D functions (It's a global function), I think it's not good to write 600Daudio repos.
So I think we will talk more with Alex.
(Need to create new repo which is  WAV record with MVR-no-sound recording for creating patches.)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 03, 2012, 07:21:32 AM
I tried it, it gets a little worse but not as bad as I expected. I was thinking it would be all distorted 90% of the time but its more like only at certain times. Seems to drop out more when there is a buffer warning and meters start to lag.

Maybe try it in shoot malloc next?

Tried but got machine gun noise instead of audio this time, it used to work for non continuous wav.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 03, 2012, 07:59:45 AM
Thanks for your testing.

Need to add simple buffer function for testing. And recording time is most sensibly for usage of CPU/mem.
Full ringbuffer implementation need a lot of CPUs.

hmm, how to share my codes. I don't wanna add testing code to my 600D audio repo.
made a patch for it

MSG added
hmm, how to asynchronous read/write impliment? need to more research on audio buffer...
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 03, 2012, 09:03:35 AM
Make a new repo or you can just add it to mine. I have it set up for audio6.c and audio.c is from regular ml.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 03, 2012, 12:55:23 PM
This is wav writting buffering patch.

Code: [Select]
diff -r ae36c8b5889b src/beep.c
--- a/src/beep.c        Sun Sep 02 02:50:47 2012 +0900
+++ b/src/beep.c        Mon Sep 03 19:53:43 2012 +0900
@@ -172,7 +172,10 @@
 static FILE* file = INVALID_PTR;
 #define WAV_BUF_SIZE 8192
 static int16_t* wav_buf[2] = {0,0};
+#define WBUF_SIZE 16
+static int16_t* write_buf[WBUF_SIZE];
 static int wav_ibuf = 0;
+static int write_ibuf = 0;

 static void asif_continue_cbr()
 {
@@ -327,7 +330,18 @@
     if (file == INVALID_PTR) return;

     void* buf = wav_buf[wav_ibuf];
-    FIO_WriteFile(file, UNCACHEABLE(buf), WAV_BUF_SIZE);
+    memcpy(write_buf[write_ibuf],buf,WAV_BUF_SIZE);
+    if (write_ibuf==(WBUF_SIZE-1)){
+        int i;
+        for(i=0;i<WBUF_SIZE;i++){
+            void* writebuf = write_buf[i];
+            FIO_WriteFile( file, UNCACHEABLE(writebuf), WAV_BUF_SIZE );
+        }
+        write_ibuf=0;
+    }else{
+        wav_ibuf = !wav_ibuf;
+        write_ibuf++;
+    }

     if (audio_recording == 2)
     {
@@ -338,7 +352,6 @@
         return;
     }
     SetNextASIFADCBuffer(buf, WAV_BUF_SIZE);
-    wav_ibuf = !wav_ibuf;
 }

 void WAV_Record(char* filename, int show_progress)
@@ -358,7 +371,7 @@
     SetSamplingRate(48000, 1);
     MEM(0xC092011C) = 4; // SetASIFADCModeSingleINT16

-    wav_ibuf = 0;
+    wav_ibuf=0;
     StartASIFDMAADC(buf1, WAV_BUF_SIZE, buf2, WAV_BUF_SIZE, asif_rec_continue_cbr, 0);
     while (audio_recording)
     {
@@ -846,6 +859,10 @@
 {
     wav_buf[0] = alloc_dma_memory(WAV_BUF_SIZE);
     wav_buf[1] = alloc_dma_memory(WAV_BUF_SIZE);
+    int i=0;
+    for(i=0;i<WBUF_SIZE;i++){
+        write_buf[i] = alloc_dma_memory(WAV_BUF_SIZE);
+    }

     beep_sem = create_named_semaphore( "beep_sem", 0 );
     menu_add( "Audio", beep_menus, COUNT(beep_menus) );


But result is not so good.
sound is some time lost and memcpy overhead increase CPU& mem.
You can change buffer size (how many buffers aggreate to write) by WBUF_SIZE ....


MSG added
This code is just only provide a write aggregation.
Not providing async write/read.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: a1ex on September 03, 2012, 01:15:37 PM
If you want to record a separate WAV file in parallel with movie recording, this should do the trick:

http://bitbucket.org/hudson/magic-lantern/changeset/2ecf53a6b327b7ae05e3f783ad6f3b73377f1ce2

I didn't play much with it, just recorded a few videos on 5D3, played back the audio, and worked just fine. I didn't check the sync between audio and video; probably there's some constant delay that has to be applied.

miyake: what does your patch do? WAV recording works fine in 5D2/5D3/550D. First implementations had some sound glitches because I was writing the wrong buffer to file (i.e. the same that was being updated), but now it sounds good to me.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 03, 2012, 01:24:44 PM
I want to record CBR 3.0 with WAV sound.
Current code is sometime lost audio buffer when finish writting to file.
I guess, WAV write is waiting(blocking) to finish MVR write. Then , audio buffer will renewal to newest raw data.

Then I make a patch for testing. If we aggregate writing part, we can success writing together or not.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 03, 2012, 05:03:06 PM
@1% and alex

Maybe this patch solved CBR3.0 and WAV record issue.
Previously I only to test on my KINGMAX SD card.

Now I have 2 SD cards.
 - KINGMAX 32GB SDHC
 -SANDISK EXTREME PRO 64GB SDXC

my code provide to solve CBR 3.0 + WAV record using SANDISK. But I can't confirm normal writting method using KINGMAX.
So I don't say correct thing.
Anyway, writing speed is depend the reason of  lost audio segment.

We need to add asynchronous read/write for storing WAV sound.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: a1ex on September 03, 2012, 05:21:36 PM
Got it. In this case, you need a big buffer (20MB maybe, possible with shoot_malloc) in which you can write small audio buffers, because a lot FIO_WriteFile calls are very slow.

See here for some benchmarks with different write buffer sizes: http://groups.google.com/group/ml-devel/browse_thread/thread/77fc7e58dd86a7ed
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 03, 2012, 05:44:27 PM
I tried shoot_malloc and it made machine gun sounds instead of audio. Only problem so far with that function is that FPS override HAS to disable audio... if you start with audio off it says sound disabled and won't record.

*Yes, lag still there... especially when you get a big peak.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: a1ex on September 03, 2012, 05:46:52 PM
On 5D3, with the changeset above, audio is disabled from Canon menu but ML still can record WAV data. I didn't try on the other cameras.

But it makes sense; for this to work, sound has to be disabled while in LiveView, so the audio device doesn't get stopped by Canon code. If I disable sound manually from Canon menu, wav audio is quiet.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 03, 2012, 05:54:18 PM
Now 600D code is overriding audio ic setting, and we can get sound without canon setting.
So , "canon audio disable" means only H264 without audio.
we can get WAV sound with disabled canon audio now.

We need to talk this kind of default actions.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 03, 2012, 06:13:55 PM
If I turn on audio and FPS override disables it I get a blank wav unless I enable audio override. 600D is kind of opposite. But this can be fixed easily, buffer issue, not sure. I looked at benchmark bin but its for 550d only and did not see a source.

/ot
I want to see if setting that wait setting to higher values or even 1,3 like its supposed to will speed up my writing. I think toshiba chip doesn't support 1.8v signaling on HSIO which is why we can't have nice things (ie UHS1 mode). But maybe can overclock bus somehow, etc.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 03, 2012, 06:17:29 PM
Ah, 1%.
If you use my codes. I'm not merged current Alex's codes. You may try to use after finishing mergeing.
BTW,,, how many times I need to merge work for it? What is point of merge to main repo?

Title: Re: 600D Audio TEST release - 2.3 based
Post by: a1ex on September 03, 2012, 06:18:12 PM
The benchmark sources are in zebra.c, card_benchmark (if you compile with CONFIG_DEBUGMSG it should be in the menu).
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 03, 2012, 06:26:01 PM
@a1ex - will look in there.

Quote
What is point of merge to main repo?

To get latest fixes for stuff not being worked on. Buffer not fixed but now work of start wav/stop wav and getting file name is done for you. I can actually combine both but you said it still stuttttters. Maybe try shoot_malloc in a proper way, maybe it didn't work because of my mediocre C. Zebras work with no problems while recording and they are in shoot_malloc too for me.

*128k Buffer gives me 10.6MB/s write.
16k only 2.2 MB
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 04, 2012, 04:13:19 AM
@Alex

This patch will solve WAV writing issue. I confirmed.
 - current code has no buffer
 - If write speed is not enough, wav data will lost
 - This patch adding a queue for reading. and write_q_task will write asyncronous. So It has no data lost.
 - But actually write speed is not enough, NotifyBox will telling "Use more faster card"
*Now I can write CBR3.0 and WAV recording together with no data lost.
*tested WAV recording + CBR 2.0 CBR 2.5 CBR 2.8

Please test this on your side.

Code: [Select]
diff -r ae36c8b5889b src/beep.c
--- a/src/beep.c        Sun Sep 02 02:50:47 2012 +0900
+++ b/src/beep.c        Tue Sep 04 11:33:29 2012 +0900
@@ -322,12 +322,73 @@
     return ans;
 }

+
+
+typedef struct _write_q {
+    int multiplex;
+    void *buf;
+    struct _write_q *next;
+}WRITE_Q;
+
+#define QBUF_SIZE 4
+#define QBUF_MAX 20
+WRITE_Q *rootq;
+
+static void add_write_q(void *buf){
+    WRITE_Q *tmpq = rootq;
+    WRITE_Q *newq;
+
+    int i=0;
+    while(tmpq->next){
+        tmpq = tmpq->next;
+        i++;
+    }
+    if(i > QBUF_MAX){
+        NotifyBox(2000,"Lost WAV data\nUse more faster card");
+        return;
+    }
+
+    if(tmpq->multiplex < QBUF_SIZE){
+        if(!tmpq->buf){
+            tmpq->buf = alloc_dma_memory(WAV_BUF_SIZE*QBUF_SIZE);
+        }
+        int offset = WAV_BUF_SIZE * tmpq->multiplex;
+        memcpy(tmpq->buf + offset,buf,WAV_BUF_SIZE);
+        tmpq->multiplex++;
+    }else{
+        newq = AllocateMemory(sizeof(WRITE_Q));
+        memset(newq,0,sizeof(WRITE_Q));
+        newq->buf = alloc_dma_memory(WAV_BUF_SIZE*QBUF_SIZE);
+        memcpy(newq->buf ,buf,WAV_BUF_SIZE);
+        newq->multiplex++;
+        tmpq->next = newq;
+    }
+}
+
+static void write_q_dump(){
+    WRITE_Q *tmpq = rootq;
+    WRITE_Q *prevq;
+
+    while(tmpq->next){
+        prevq = tmpq;
+        tmpq = tmpq->next;
+        FIO_WriteFile(file, UNCACHEABLE(tmpq->buf), WAV_BUF_SIZE * tmpq->multiplex);
+        free_dma_memory(tmpq->buf);
+        prevq->next = tmpq->next;
+        FreeMemory(tmpq);
+        tmpq = prevq;
+    }
+}
+
+
+
+
 static void asif_rec_continue_cbr()
 {
     if (file == INVALID_PTR) return;

     void* buf = wav_buf[wav_ibuf];
-    FIO_WriteFile(file, UNCACHEABLE(buf), WAV_BUF_SIZE);
+    add_write_q(buf);

     if (audio_recording == 2)
     {
@@ -504,6 +565,21 @@
 static void wav_playback_do();
 static void wav_record_do();

+
+static void write_q_task()
+{
+    TASK_LOOP
+    {
+        if (audio_recording==1 || rootq->next)
+        {
+            write_q_dump();
+        }
+        msleep(500);
+    }
+}
+
+TASK_CREATE( "write_q_task", write_q_task, 0, 0x16, 0x1000 );
+
 static void beep_task()
 {
     TASK_LOOP
@@ -846,7 +922,10 @@
 {
     wav_buf[0] = alloc_dma_memory(WAV_BUF_SIZE);
     wav_buf[1] = alloc_dma_memory(WAV_BUF_SIZE);
-
+    rootq = AllocateMemory(sizeof(WRITE_Q));
+    memset(rootq,0,sizeof(WRITE_Q));
+    rootq->multiplex=100;
+
     beep_sem = create_named_semaphore( "beep_sem", 0 );
     menu_add( "Audio", beep_menus, COUNT(beep_menus) );
     find_next_wav(0,1);


@1%
I just found your post now. Anyway, I can done without shoot_malloc. Do you know where is already described what is difference of AllocateMemory /allocate_dma_memory/shoot_malloc....
I know only these malloc is getting different memory spaces. But I don't know which one is best to use something.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 04, 2012, 05:31:51 AM
Shoot malloc is the shooting buffer, allocate memory is what is available on the debug dialog... dma memory I think the same thing, actually not sure on that one.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: a1ex on September 04, 2012, 07:19:44 AM
Thanks miyake, looks very nice. I'll try.

About malloc's:

- malloc: this allocates memory from a small pool (maybe standard C malloc?)

- AllocateMemory: similar, but uses a larger pool

- alloc_dma_memory: same as AllocateMemory, but returns an uncacheable address, allocates 64 bytes before and 64 after the requested size, and also calls TH_map_dma_memory which I don't know what it does.

- shoot_malloc: experimental: this uses memory normally used for shooting (RAW buffers), via a resource manager task (RscMgr). Related strings: m_pfAllocMemoryCBR, AllocateMemoryFromShootMemoryObject. It returns a data structure named MemSuite which contains one or more MemChunk's. I think one MemChunk can have max 32 MB, and I was able to allocate 192 MB total. Looks like Canon code expects shoot memory buffer to be freed when it's not used (on 60D I get ERR70 if such a buffer is left allocated and you are changing custom functions).
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 04, 2012, 08:08:47 AM
Tested it and no more drop outs or stutters.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 04, 2012, 08:27:20 AM
@1%
Yay!!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 04, 2012, 07:39:16 PM
Trying to add wav record for every movie but not sure how to have fps_record_wav in beep.c nor cfg_override_audio in fps-engio.c since they are confined to their respective .c files.

Added the menu in beep.c after sound recorder and tried to modify the fps should record wav return line.


Got it working but still not ideal 1 setting and forgetting solution.

Also, small bug in fps recording, even though sound is turned on empty wav stream is still in the .mov files and gives an error on playback that it can't be decoded (since there is nothing there).

Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 05, 2012, 12:59:44 PM
1%

I was cleanup some old codes.
Then I could save FPS override with separate wav audio.Also we don't need to wait in beep.c.
Now our 600D audio_configure is similar time with another model's one.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 05, 2012, 04:39:40 PM
@1% & scrax & Kromofone
PLEASE BE CAREFUL FOR CURRENT 600D AUDIO CODE.
Now I found ML_PLYBAK_BOST_VOL_DEF was -12db. Current code is change to 0db. Then monitoring sound is really loud! :o
It's good to hear monitoring sound for High impedance Headphones.

I think Kromofone don't need to buy Headphone AMP. Yey!!!!!!!!!!!!!!!!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 05, 2012, 05:07:41 PM
You can still control output volume like before, right? Just higher default and maximum volume? I've got to work but I'll test when I come back.

I think null wav stream in video still happen but thats better than low bitrate or no sound.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on September 05, 2012, 05:14:04 PM
@1% & scrax & Kromofone
PLEASE BE CAREFUL FOR CURRENT 600D AUDIO CODE.
Now I found ML_PLYBAK_BOST_VOL_DEF was -12db. Current code is change to 0db. Then monitoring sound is really loud! :o
It's good to hear monitoring sound for High impedance Headphones.

I think Kromofone don't need to buy Headphone AMP. Yey!!!!!!!!!!!!!!!!

Awesomee!! :D
I'll begin testing it more with caution, thanks for the info! :)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 05, 2012, 05:16:55 PM
Good morning 1%

You can still control output volume like before, right? Just higher default and maximum volume? I've got to work but I'll test when I come back.

I think null wav stream in video still happen but thats better than low bitrate or no sound.

Yes, you can control outout volume same as previously. Previously boost is always -12db. So I changed 0db. The most best way is add a new menu structure which is controlling output volume and this boost together. But now I choose source compatibility for another cameras. It's not so bad.

The "null wav stream" will happen on  FPS override and wav recording toghether. right?? And it's a recorded all null in a file?
In my 600D, the problem was gone. Or another problems?

Anyway, have a good day!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 05, 2012, 05:19:36 PM
Awesomee!! :D
I'll begin testing it more with caution, thanks for the info! :)

However , Still problem found on sound recording with video recording together. I already sent patch to alex.
So I will publish next autoexec.bin when my patch is accepted.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on September 05, 2012, 05:23:32 PM
However , Still problem found on sound recording with video recording together. I already sent patch to alex.
So I will publish next autoexec.bin when my patch is accepted.
Alright good, one more thing though, if I may ask. Occasionally, when I turn the Audio override Off or On in Manual mode, I get this blinking bar in the middle of the screen. It is only for a brief moment, like 0.2 seconds and it blinks twice, showing the date and the clock. Are you familiar with it?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 05, 2012, 05:49:19 PM
Quote
I get this blinking bar in the middle of the screen

Ah, Maybe it's a canon menu?right?
I can see it too when I push trash button.  But I can't see when I change override on/off...

Can I see your screen?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on September 05, 2012, 05:53:32 PM
Ah, Maybe it's a canon menu?right?
I can see it too when I push trash button.  But I can't see when I change override on/off...

Can I see your screen?
Yeah I think it's the canon one!
I'll try to reproduce it and catch it on video, will upload as soon as I accomplish it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 05, 2012, 05:55:55 PM
Yeah I think it's the canon one!
I'll try to reproduce it and catch it on video, will upload as soon as I accomplish it.

Ah, OK....
Maybe I can't solve it. It's not do a negative effect to us. So never mind it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on September 05, 2012, 06:53:12 PM
Ah, OK....
Maybe I can't solve it. It's not do a negative effect to us. So never mind it.

Okay well...still, if you want to see when and how it happened, it's around 1:03.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: a1ex on September 05, 2012, 07:01:15 PM
There was a fix for this in the previous version (Xmas), but it caused stability problems, so I've disabled it. Better a small display glitch than more chances to crash, no?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on September 05, 2012, 07:05:20 PM
Good point.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: floatboth on September 05, 2012, 07:11:04 PM
Hi! In this release, is it possible to turn audio recording off completely in order to record video with higher bitrate on a slow SD card?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 05, 2012, 07:21:07 PM
Hi! In this release, is it possible to turn audio recording off completely in order to record video with higher bitrate on a slow SD card?
No.
Faster card needed.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 06, 2012, 02:51:47 AM
Quote
Still problem found on sound recording with video recording together.

Its faster for sure but I tested snapping my fingers and sometimes there is a bit of distortion as if I hit a limiter on a real mixer. Maybe its just the highpass filter? I tried with it off and it was better. Also sounds way better on real headphones instead of through the speaker.


Null stream is gone, I think it was just header so no data was in it
. Not sure, maybe still here.
Still have to test the monitoring.

Wav is mono, wonder if FW supports stereo. Hopefully we have enough memory.


Quote
Okay well...still, if you want to see when and how it happened, it's around 1:03.

I turn off piggybacking completely because I don't like what it does to all of the menus. I use the arrow keys more anyway.



I figured out stereo but what about:

  MEM(0xC092011C) = 4; // SetASIFADCModeSingleINT16
//   MEM(0xC092011C) = 6; //SetASIFADCModeInterleaveINT16

Both respect channels and work for stereo.

Also what about using int16 buffers and int16 stereo?

Do they all just follow this?


    // 1 = mono uint8
    // 3 = stereo uint8
    // 4 = mono int16
    // 6 = stereo int16
    // => bit 2 = 16bit, bit 1 = stereo, bit 0 = 8bit
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 06, 2012, 05:58:31 AM
1%
Can you share snapping finger with distortion video? I want to know what Hz affect by filter settings.
My finger don't make a sound :-[

Does "piggybacking" a function on ML? Do I have something to do  on our 600D audio codes?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 06, 2012, 06:35:40 AM
Its for the scroll wheel. Canon menu pops up in the background. Does things like in the video.

I deleted it and went to mode 6 in beep.c. I think it follows that format on all of them. So we're sampling 16bit wav in 8 bit? Or just size?

This is how stereo sounds but BR wasn't very high and only internal mic.

http://www.qfpost.com/file/d?g=BIHgIHAOL (http://www.qfpost.com/file/d?g=BIHgIHAOL)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 06, 2012, 09:09:36 AM
hmm, qfpost issue again? The file is broken....

Anyway, I think the best way to talk about WAV stereo  is in the WAV forum . 
And I don't wanna import WAV related code in 600D audio repos. If I wrote codes , I will make a patch like wav queue.
It's will make a  confusing to check the codes when mergeing.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 06, 2012, 04:21:53 PM
Its weird, every time I upload something there and someone in another country goes to download it, there are problems. Its still showing as being there for me... is it corrupted. I have to find somewhere else to post.

You don't have to put codes in repo, just asking about stereo vs mono. Anyways, I think the problem was from HPF filter.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: ilguercio on September 06, 2012, 04:23:44 PM
Use dropbox :)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 06, 2012, 04:30:28 PM
I should, but I don't like, or rather don't trust, downloading apps for "cloud" services.

http://www26.zippyshare.com/v/72980565/file.html
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 06, 2012, 06:16:07 PM
1%
I just found zippyshare is able to hear the sound directoly on the site.
And hear it, but I don't know what point is wrong you are thougt.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 06, 2012, 06:27:15 PM
This one was stereo, I think problem was HPF but not with code, with HPF itself.

I fixed my beachtek and did some more testing. Monitor sound seems off from sound recorded, i dunno what it is.

Wav recorded along with movie follows audio overrides. Wav recorded through tape recorder function alters volume levels at start.

I messed with some of the wavs produced and I get pretty clean sound if I run a few HPF/LPF filters, hiss goes away.

*Now sound recorder only raises volume the first time (per reboot) its used.

https://bitbucket.org/OtherOnePercent/tragic-lantern/changeset/124d2510cb34cde459362cf3409acf429e112319


So what sound values work for you... internal mic is different from external.

I'm getting decent results from [-2, 0, +6]
With boost from 20-30db.

I think - a little too quiet, 0 is decent 6+ you get the hiss.
Whats better - 0, 25db
                      6, 20db
                      -, 30db?, 25db?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 08, 2012, 08:42:58 AM
hmm, I still not understanding what you are thinking a problem.
 -Are you investigating a hiss noise?
 -What is problem with HPF ?

I already investigating hiss noise.
http://chirari.ddo.jp/ml/?p=934

Amplifer generated noise is really small. It's depend on which mic we will use.
So I think, We don't need to find best setting for end users.
May be forum users will find best parameters for it.

However , If HPF has some bugs, We must solve it. So please describe detail of HPF issue.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 08, 2012, 04:45:35 PM
When I turn on HPF and record audio it causes ocassional distortion, especially of higher peaks. When I turn it off, distortion is gone.

So I just run a HPF in post and that takes down the bass and takes out some of the hiss. DC offset caused no problems, its literally just DC offset.

When I plug in the beachtek and turn its volume down to 0 I still get hiss. If I adjust analog gain/boost so I barely hear it, I get better sound when I turn the volume back up.

I started recording stuff and seeing how it sounds w/ external XLR mic. I'll need to record a bunch of VO/narration soon and want to be ready. I also need samples for foley so trying to record quieter things which its harder to avoid hiss noise, etc. I can't use PC for this because of the fans, etc.


From charts, no way to escape it. It has 3 bands, 1khz, 3khz, 5khz. I did not have luck recording empty channel and inverting it for some reason but I need to try in real editor and not just audacity.

18db Boost, -12gain looks good... what about 18db boost and 0, -3, +6 or same results.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 08, 2012, 04:58:30 PM
I got it.
First I will try to reproduce it.

Can I confirm one thing?  Your audio recording means stereo WAV recording, right?

MSG added
Some problem fixed, and pushed your repo. But I can't reproduce it.
I'm testing 1KHz sound generated from my PC and insert mic input on my 600D.
Then testing HPF on/off but it has no problem. actually, I got distortion when input volume really high(red zone).
But I can't find any difference of HPF on/off.....

I think, beachtech input is already had a distortion(check your volume settings on your beachtech.),,,, Just my guess.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 08, 2012, 06:29:34 PM
Quote
I think, beachtech input is already had a distortion(check your volume settings on your beachtech.),,,, Just my guess.

Or maybe stereo needs bigger buffer and its from that? I'm testing more to see what happens. Interleave mode on asif recorded wav to video once so I went back.


Trying:

TASK_CREATE( "audio_level_task", compute_audio_level_task, 0, 0x17, 0x1000 );


audio_override_task already at x17
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 08, 2012, 07:25:28 PM
I'm tested with your tragic-lantern binary.
So I also used your stereo codes. And I can't find problems....
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 08, 2012, 07:31:07 PM
I'll keep testing... meters better at 0x17 or 0x18? Override task already at 17.

Do you notice it change volume when starting sound recorder first time? It doesn't start running override until the 2nd wav is recorded. But works first time for movie wav for some reason. I added some more override audio . beep.c but it still doesn't override first time.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 08, 2012, 08:42:49 PM
meter and audio_level tasks are 18 is best. and override is 17.

Oh, tragic-lantern has some limitations? If so, my repo has same issue.
Then we should use override_audio_task(). Then it func will override when started recording.
I just  inspiration hit me.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 08, 2012, 09:12:24 PM
Yes, same problem for your repo. My fix only fixed it for second time recorder starts. Try to record with sound recorder and listen with monitor.  For recording wav with every movie no problem.

Here is a binary from the new compiler. Any faster? Does interleave and sample rate 48000,6 affect high BR + audio?
https://bitbucket.org/OtherOnePercent/tragic-lantern/downloads/autoexec.bin.Speedups.Interleave
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 09, 2012, 05:10:20 AM
Quote
Do you notice it change volume when starting sound recorder first time? It doesn't start running override until the 2nd wav is recorded. But works first time for movie wav for some reason. I added some more override audio . beep.c but it still doesn't override first time.

hmm, I can't confirm this problem on my repo. Volume setting is correctly overridden.
Let me clarify your confirm method.
1: Turn on the camera
2: record wav  <--- can't override

Is this a correct?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 09, 2012, 05:40:03 AM
Record first wav or sometimes first movie wav. Audio level heard from headphone goes up. Record second wav or movie wav and volume is at what it supposed to be.

Probably more beep.c than audio.c thing. Only happens on first boot, first time recording. Like audio_configure never ran or was blocked. I didn't try to switch movie mode and back though.

I added  audio_configure(1); to wav_record and wav_recordsmall but it only helps second time.

I'm not sure if the actual volume recorded changes or if just output volume because of canon functions in beep.c but it sounds like boost or analog gain was increased at start. I.e. Start at +6db, +20db and then sounds like +24db, +20db and doesn't change until recording started a 2nd time.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 10, 2012, 05:22:42 AM
hmmm, I used your binary. But it's correctly override at all times.
I checked volume and watch meters.

The Canon volume is 1(most small).
Then I changing our gain+boost . It's correctly override volumes at 1st time.

Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 10, 2012, 06:40:10 AM
It just did it with a plug in mic amp... but hiss at 0, off is very good. I recorded wavs, have to look in them and upload. I have external mic selected not auto in/ext, same for you. Also should add back L-ext/R-int , etc.

http://www.magiclantern.fm/forum/index.php?topic=2650.msg10876;topicseen#msg10876

Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 10, 2012, 03:29:42 PM
https://bitbucket.org/miyake_t/magic-lantern600daudio

f7924146caf9
Now we don't need to use override_audio_task()!!!!!,It means audio_configure() is enough faster!
Then record start/stop has no delay to override!!!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 10, 2012, 04:35:48 PM
Now overriding is quick but first start problem isn't gone.

SND_0001_FirstStart.WAV

http://www3.zippyshare.com/v/91530107/file.html

SND_0002_SecondStart.WAV

http://www3.zippyshare.com/v/71965814/file.html

http://chirari.ddo.jp/pub/betauploader didn't let me upload wavs still, only bin.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 10, 2012, 04:54:34 PM
Quote
but first start problem isn't gone.
I can't reproduce it.......
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 10, 2012, 05:24:35 PM
I took out some audio_configure(1) and now problem only happen if you boot the camera and record new wav with sound recorder first. If you record movie wav first it doesn't happen. But also recorder doesn't re-configure after first record and keeps volume high. Its something that happens first time you press "record new audio clip".
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 10, 2012, 05:55:50 PM
I'm testing only WAV recording.
Anyway, now I can't compile your repo. Are you using gcc 4.7 linaro?
Give me your newest bin.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 10, 2012, 06:38:28 PM
Yes I switched, new compiler makes more optimized bins and performance is slightly better.

https://bitbucket.org/OtherOnePercent/tragic-lantern/downloads/autoexec.bin.wavrec


This is newest, now you can hear it try to do what sound recorder does even when starting recording from rec button (it gets override right away). Something happens first time recording is started but doesn't happen subsequent times.

I experimented a little more. First time StartASIFDMAADC or while that is starting the volume goes up. I did this and it overrides a second after. Maybe I'll shrink msleep amount but doesn't seem like real fix? Every time audio configure there is a pop. Like at camera start there are 3 configures if everything is on.
Code: [Select]
wav_ibuf = 0;
    StartASIFDMAADC(buf1, WAV_BUF_SIZE, buf2, WAV_BUF_SIZE, asif_rec_continue_cbr, 0);
msleep(1000);
audio_configure(1);
   

msleep(100); fixes it but then it pops twice right at start, I guess not so bad and better than alternative.


/OT:

After playing with stand alone pre-amp I think I need something like this for beachtek. Juicedlink wants too much, ($2-300USD)

http://www.ebay.com/itm/New-Nady-DMP-2-Battery-Powered-Dual-Microphone-Preamplifier-3428-/380443876089?pt=US_Pro_Audio_Microphones&hash=item589438daf9

Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 10, 2012, 07:20:25 PM
OK! catch it!

audio05 is HPF on and just startup
audio08 is just recording.

Code: [Select]
$ diff /cygdrive/i/ML/audio05.LOG /cygdrive/i/ML/audio08.LOG
18,19c18,19
< ML_MIC_IN_VOL 10
< ML_MIC_BOOST_VOL1 10
---
> ML_MIC_IN_VOL 37
> ML_MIC_BOOST_VOL1 20
34c34
< ML_FILTER_EN 03
---
> ML_FILTER_EN 83
36c36
< ML_DVOL_CTL_FUNC_EN 00
---
> ML_DVOL_CTL_FUNC_EN 2e
41,42c41,42
< ML_EQ_GAIN_BRAND0 e7
< ML_EQ_GAIN_BRAND1 e7
---
> ML_EQ_GAIN_BRAND0 dd
> ML_EQ_GAIN_BRAND1 dd
46,54c46,54
< ML_HPF2_CUTOFF 07
< ML_EQBRAND0_F0L 00
< ML_EQBRAND0_F0H 00
< ML_EQBRAND0_F1L 00
< ML_EQBRAND0_F1H 00
< ML_EQBRAND1_F0L 00
< ML_EQBRAND1_F0H 00
< ML_EQBRAND1_F1L 00
< ML_EQBRAND1_F1H 00
---
> ML_HPF2_CUTOFF 00
> ML_EQBRAND0_F0L 0d
> ML_EQBRAND0_F0H db
> ML_EQBRAND0_F1L 0c
> ML_EQBRAND0_F1H 1b
> ML_EQBRAND1_F0L 6d
> ML_EQBRAND1_F0H 08
> ML_EQBRAND1_F1L 41
> ML_EQBRAND1_F1H ed

Override failed. However, It's late night , I will write code tomorrow. Good night!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 10, 2012, 08:10:37 PM
@1% solved it.
Please check my repo.
Oh no, already 3am!!.  I think really hard work tomorrow :o
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 11, 2012, 03:16:56 AM
Works! A few MS slower than msleep but its consistent.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 11, 2012, 06:15:46 AM
hmm, It's working but not beautiful codes.
I will solve it later. Also I understood of around this canon func. So I will try to beep and wav play on headphone monitor.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 11, 2012, 01:20:48 PM
In the first time wav recording(first time StartASIFDMAADC) need 180ms to set audio chip configration .
2nd time need under 50ms.

And tried to "Play with headphone monitero", but I can't get success . I think Digital to Analog routing is something wrong.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 11, 2012, 04:54:29 PM
I remember it playing back through headphones in one of the builds... only it was quieter and monitoring at the same time.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 11, 2012, 05:13:41 PM
I found new solution for this issue!
Check my repo and please test it.

The first time StartASIFDMAADC() loading is heavy, so overriding need to wait.
So I think StartASIFDMAADC() need to load start up and status is recording stop.
Then thread? task? is working already. We don't need to wait .
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 11, 2012, 06:18:26 PM
Last commit I see is delete debug. That one is working already.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 11, 2012, 06:32:18 PM
ahhhhhhhhhhhhhhhh,
Sorry
Forgot to input push password. The terminal stopping "Password:"....
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 11, 2012, 06:58:37 PM
First time I tried it for some reason it didn't work... every time after that it has worked and less pops.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: jordancolburn on September 12, 2012, 01:48:26 AM
I first installed ML on my t3i to get the audio features and was pretty disappointed to learn that they didn't work.  There were enough amazing features to distract me for a while, but when I started looking again I found your original thread looking into getting the audio working on t3i.  After reading all 20 pages to here or so, I'm really excited to get testing later tonight and help out.  Thanks for all your work!

also, 1%, I saw you were looking into the battery powered Nady preamp, I've had really good luck with the really cheap Behringer mixers.  With condenser mics or electret lavs, you don't need to set the preamps on the camera more than one notch above 0 and you don't even push the Behringer pres that hard so the audio quality is very good despite the cheap mixer (Although you are stuck to being near an outlet, mostly for an interview type scenario).
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 12, 2012, 03:14:55 AM
I already have a plug in pre-amp. Its an audio buddy, not as good as the mixer but acceptable.  Camera preamp is just not cutting it for field work though. The noise isn't from the beachtek, its from the camera. 1.5v AA isn't enough to feed a reliable signal through a passive. I got the nady, it was only $54 shipped, i figure its better than trying to work out plugging in the audio buddy or getting 9vac from batteries. I have some rain mixers/preamps too but they're too big. They might do better than the audio buddy for studio work but they're buried in my storage area. We'll see if nady is good or not when it shows. People were reviewing them poorly but also not using them correctly.


Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 12, 2012, 05:05:13 AM
sounds good .
Solved issue.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: funkysound on September 12, 2012, 02:35:26 PM
Is there a newer version then "autoexec10" already? I may have a little time for testing next week.  :)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 12, 2012, 03:42:16 PM
afef619dd741 High bitrate with separate wav with simple menu.
1a056cda3696 add write q for sound recording.

@funkysound
11 is publish soon. wait a moment.

@1%
It still bitrate sub-menu has spaces. I'm temporary added "separate wav recording" menu.
I think your bitrate work may use some profile is best in menu .
Bitrate mode = Normal, ALL-I, GOP3 ...... (like 5D3)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 12, 2012, 04:04:42 PM
Yep, but we have to find the profiles first. CBR can probably be collapsed back as it never got the bit rates we got now.

If you have any suggestions/additions I'm open to changes. Especially for the buffer override stopping parts. I have latest audio code on my repo but its not exactly 2.3 stock.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 12, 2012, 06:58:20 PM
600D audio Test version 0.11 released
http://chirari.ddo.jp/pub/betauploader/600Daudio/

History
 -add func for HighBitrate video with WAV recording
 -Solve issue: Can't over ride when recording 1st time wav sound.
 -Completely equalizer off,
 -override audio is faster now. stuttering was small when start recording.
 -add some exception for wav recording.
 -Playback VOL to 0db.(monitor sound become big)
 -all audio setting func is more faster

Known issues(spec?):
-This version has no btirate related menus. It's bug.   
-If you had black screen, simpliy pull out your RCA monitor cable. If not solved black screen , battery pull needed
-can't override when we change volume and audio off/agc/manual settings in canon menu.
 *Do override off and on. It means restart overriding.
-Don't work with canon volume 0.
-Wav playback is small volume
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 12, 2012, 07:45:49 PM
After wav recording, will never use canon audio again. :)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on September 12, 2012, 08:11:41 PM
I stumbled upon some bugs & freezes when I was going through some things! I'll just say it like this:

Tried to listen to the recorded wav audio via the wav sound recorder, then the ml said i had to disable the headphone monitoring. Then I did and the screen went black. I wanted to operate blindly but the camera wasn't responding. Then I disconnected the Canon AV cable and the camera froze. Had to remove the battery to get it working again.
Can't make a demonstration video atm, watching iPhone 5 event.

Oh and I really like the anamorphic view option in the display monitor, it's awesome, thanks to whoever implemented it, i guess miyake! But defishing also froze my camera so don't use it!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 12, 2012, 09:17:37 PM
If you turn off headphones the screen will go black with a/v cable plugged in. Unplug THEN turn it off. The wavs need to be edited on PC so that you can scroll through them and all of that. I've had no freezies yet.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 13, 2012, 03:23:39 AM
@Kromofone
See youtune on 1st post.  If you want to hear record wav, Just only pull out your RCA cable from camera. Don't need to change monitoring turn off.

and Defish and anamorfic is implement by alex may be. 

If you find some bugs except audios, you never mind it bugs.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Roman on September 16, 2012, 01:51:26 PM
Not sure if this is a bug or something I did wrong :)

But was out filming today, was too busy managing the video to worry about audio, so set the camera to Automatic in the Canon menu, and then ML override off.

None of my footage came out with any sound.

I assume ML override means to override whatever the Canon audio portion decides to do?

So if turned off, should revert to whatever's specified in the Canon menu?

When I looked in the canon menu I could see the audio bars corresponding to noise, so figured it was working.

However I dont think they were working on the ML screen display, which makes sense I guess.

I had an external stereo mic plugged in, video mode, recording in various formats.

I noticed smooth ISO is in there, which is freaken awesome!

It would be nice to be able to set an upper ISO limit though, and maybe incorporate ML overrides so it can go to 25. (I'm sure this is in the works :) )
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 16, 2012, 04:16:59 PM
@Roman
Thankyou. We never check it.
And solved it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 16, 2012, 06:42:29 PM
Been using wav so never checked for AGC (auto) mode especially. Was this from pre-loading the ADC?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Roman on September 16, 2012, 08:26:58 PM
Aahh sorry, what's ADC?

I literally didnt touch anything on the audio side.

Just external stereo shotgun mic plugged in, checked in the menu it wasnt set to ML override on,  checked it was set to Auto in the Canon menu, and that was that.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 16, 2012, 08:38:14 PM
ADC is analog to digital converter... AGC is auto gain control which is what happens when you set canon menu to auto.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Mister Paul on September 17, 2012, 11:23:55 AM
Sorry guys for my question as I can help your development only with PayPal…

I was going to buy a 600D but as there is no audio monitoring during recording I'd go back to 550D but your post gave me hope...
So... when do you think that a quite stable version could be released?
 ::)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 17, 2012, 04:18:58 PM
Probably will be merged for next version. A1ex is doing 5dIII stuff. Audio works pretty well. Miyake's bin is almost vanilla 2.3 + audio. If you have a 600D still you can try it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: klangdrang on September 18, 2012, 05:56:25 PM
Today I came back from a 4 weeks filming session for a documentary.I used the normal 2.3ML without the features you added because I had to be sure that everything works. In this time I had one day to test 0.5 Alpha release of ML for 600d with audio enabled and I really liked it.
Now after having my 4 weeks praxis test I really like to have one feature: controling the mic gain while recording. This feature is essential especially for documentaries. I can't set up my camera befor recording. Everything has to be set while filming. So what's about changing the gain with the wheel while pressing Q? Would be a great feature for the ML-600d-audio version.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 18, 2012, 06:04:18 PM
Now DISP shortcut key is controlling only analog gain. So you want to change mic boost like analog gain shortcut , right?
And it's enough?

I think , current shorcut key is controlling monitoring volume too. If I change shortcut vertical line to mic gain controlling, it's a enough for you?
Or , replace horizontal (analog gain) to mic gain control. Is it enough?

However, a lot of user using, sound functions. It's need a more considerations.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: klangdrang on September 18, 2012, 06:34:44 PM
Oh I did not know that its possible to contol audio with the DISP-button. So This will work only with audio control by ML? Like I said, I used the "normal" 2.3 ML firmware with my 600d and there is no audio-support for 600d. I thought of controlling the canon manual audio control with magic lantern. but now I think I don't need it any more. (sorry: hard to describe, I am not a native english speaker)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 18, 2012, 06:38:47 PM
Never mid, I'm not native too.
Anyway, Try our 600D audio 0.11 version. And If you find bug or had a some advice to us, feel free to comment to this forum.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 18, 2012, 07:08:17 PM
I thought you could change everything on the fly from the menus.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: miyake on September 20, 2012, 03:32:05 AM
Merged all of our 600D audio codes to unified development tree!!!
Those codes are leave from our hand. Thankyou very much all testers. It's our developers/testers achievement.
But if you found some more problems, I can support you and if I found/solve bugs, I can push bug fix code to Alex.
Next release or improvement .bin will release from core team. 
Title: Re: 600D Audio TEST release - 2.3 based
Post by: juantrueno on September 21, 2012, 01:23:24 AM
Thanks @Miyake, @1%, and all developers for your effort! Working audio on 600D is amazing!
Thanks Thanks Thanks!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: jonnyschanny on September 23, 2012, 07:28:48 AM
Thanks a lot for all your work team!!!
Title: Re: 600D Audio TEST release - 2.3 based
Post by: sam dig on September 24, 2012, 02:21:48 PM
Hi, great news and thanks.
Is this functionality now merged into the main 2.3 download - if not any idea when, and what is the best way to download it currently?



Title: Re: 600D Audio TEST release - 2.3 based
Post by: nanomad on September 24, 2012, 05:39:24 PM
The 2.3 is frozen. The functionality is included in the source repository so you'll have to compile it yourself
Title: Re: 600D Audio TEST release - 2.3 based
Post by: lexa_one on September 24, 2012, 06:32:58 PM
Thanks a lot for this realy good work  ;D

Is it possible to  just have a 600D audio 0.12 version without the "test" message?
I really don't know how do it myself  :-\
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Anton2707 on September 24, 2012, 09:31:47 PM
Good work! Thank! Join request the release of version 0.12 of the test without a message about test.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on September 24, 2012, 10:45:12 PM
Test version are NOT released without the Test advice to avoid confusion with official release.
Only if you compile it by yourself you can edit makefile.user to remove it

Title: Re: 600D Audio TEST release - 2.3 based
Post by: Mister Paul on September 24, 2012, 11:36:10 PM
Hi,

first of all thank you very much for your great work. It's so helpful.

I tried it on my new 600D. Sorry but I can't compare as I don't have any 550D or other DSLR. And I am new to Magic Lantern too…

I have 2 points to mention:

1° As expected I get audio monitoring in my headphones during recording, but I don't get any sound in them during playback:
only the Canon speakers are playing the audio tracks even if my headphones are plugged (and recognized by ML)
Not sure if I have misunderstood something (I suppose!) or if that's a bug…

2° I am not sure to have best settings in ML for recording/monitoring for my Rode VideoMic Pro (output impedance = 200 Ohms)

- My Rode settings: +20db increased signal level + High Pass Filter on
- Magic Lantern settings:
Analog Volumes: 0db
Digital Gain: 0db
Output volume: 0db

In fact my settings are only controlled by using the button DISP. shortcut for analog gain (horizontal) to set "Input vol" at +15db or +24db
I see better modulation at 24db but I get some more hiss too (in my headphones but not recorded)…
Also I supposed that these settings should be seen after on menu "Analog Volumes" but it's still set to 0db

Do you think am I wrong in my way of managing the settings or I could get better results with another approach?

Thanks for your help
 ;)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 24, 2012, 11:56:50 PM
Playback isn't set up to work through headphones.

Quote
I see better modulation at 24db but I get some more hiss too (in my headphones but not recorded)

In my case the hiss seems recorded but I do think monitoring is off from recorded audio. I think that's a problem with the IC though. Thanks for testing.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: lexa_one on September 25, 2012, 01:37:16 AM
Quote
Test version are NOT released without the Test advice to avoid confusion with official release.

Ok, Ok no problems to wait the official 2.4   8)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Mister Paul on September 25, 2012, 10:51:31 AM
Thanks.

But just to ask more precisely, do you think that it's better to adjust recording levels:
  - using DISP shortcut (step by 9db - jumps from 15 to 24db...)
  - "Analog Volumes" from ML Audio menu (step by 5db)
I suppose we interfere on the very same parameter (analog gain) with both, no?
 

Quote
Playback isn't set up to work through headphones.
Would be great to control taken shots!
;)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 27, 2012, 05:41:59 AM
Can't really play back the movies in camera, would be nice just for wav playback since I have them recording separately. Its like internal w/external channel swapping, nice but effort < result.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: MAZ87 on September 28, 2012, 07:43:03 PM
could it be that the download link isn't working.

i wanted to test the audio test version.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 28, 2012, 07:52:58 PM
Yea, its gone.

Until next ML release.

https://bitbucket.org/OtherOnePercent/tragic-lantern/downloads

But need to have card formatted to exfat.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: MAZ87 on September 28, 2012, 08:06:27 PM
sorry but i don't know which file i have to download for the last audio test release 0.11 or 0.12 ?

is there a official release date for next ml version?


thx maz
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 28, 2012, 08:19:28 PM
The test releases are gone. You can either compile ML from source or use my binary. Sorry. :(
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Mister Paul on September 29, 2012, 06:47:59 PM
I just found something weird... I don't know if that's related specially to the 600D Audio release or if it would have been the same with others Canon devices:
I was recording a movie with external mic + earphones: OK.
I took a photo during video shooting: OK.
But when video came back after the photo:
- 1° the sound was saturated (levels up in red),
- 2° No more audio monitoring (but the movie was still recording),
- 3° I had to shut down the Canon (On/Off or releasing battery) to be able to use ML or Canon menu again.

Effectively when I read the .mov after the sound level jumps high (saturation)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 30, 2012, 06:25:00 AM
Don't take photos while shooting. It can make a 3 frame drop-out in the video. Maybe it resets the audio IC too. I have 0 problems if I take a photo after or before a video in remapped movie mode. Also a big 20MB drop into a completely different code path, at least for raw.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Mister Paul on September 30, 2012, 09:56:50 AM
OK
By "remapped movie mode" you mean video mode with Magic Lantern ?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 30, 2012, 06:56:04 PM
No, I mean movie mode remapped to A-Dep. I kept that.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Mister Paul on September 30, 2012, 07:09:50 PM
I am sorry but I still don't understand…
Is there a tutorial where I can clear my mind about it without bothering you here asking questions?
 ;)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on September 30, 2012, 07:21:20 PM
Not really, this stuff is fresh out of the oven.

Just don't take pics while recording, you'll be ok.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: funkysound on October 04, 2012, 03:40:52 PM
Quote:
Playback isn't set up to work through headphones.
Would be great to control taken shots!

Everything seems to be fine with audio/600d now - but I agree ... it would be good if we could hear and check what we recorded. Actualy this is very important.
Thanks for your great work so far - I´ll donate again soon! :)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on October 04, 2012, 04:11:41 PM
You can play back with the sound recorder but its through speakers.

Anyone else getting tearing at high bit rates with stereo wav?

Miyake's original autoexecs were mono, mine are stereo. Maybe buffer too small? Card too slow? Some other error?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: jordancolburn on October 23, 2012, 08:45:32 PM
Yea, its gone.

Until next ML release.

https://bitbucket.org/OtherOnePercent/tragic-lantern/downloads

But need to have card formatted to exfat.
So If I wanted to test out the audio features for 600d, I could:
1) Download your tragic-lantern build onto an exfat card (any side effects of exfat?)
2) Is it possible to try one of the nightly builds from a1ex since the source got merged into his repository
3) Wait until the next official release (which should be coming....when? not trying to ask for a date or anything, I know that's ridiculous, I'm more curious about a general timeline, like before or after the new year)

Thanks again for all the hard work on the 600d audio side of things.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on October 24, 2012, 04:20:24 PM
Do 1 or 2. Only side effect of exfat is files over 4gb work.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: djefaivre on October 28, 2012, 09:17:37 AM
Hi,

This is my first post on this forum. I have a 600D and I've been using "Tragic Lantern" (if I may call it like that) for a few weeks and I've been doing a little test last night with different settings. With audio off, I've been able to achieve an average 130mbps while recording a city map, with a lot of details in it. The BR peak was around 160mbps. No problems of stability.

I've used different settings to try and see wich ones would give be the highest BR, and here's the result, finally, I ended up with theses settings :

CBR mode ALL I GOP 1

GOP factor 0 and 1 at 3.0x
GOP factor 3 and 4 at 0.1x
D1 and D2 factor at 0.1x (what exactly is this setting ? It seems that it doesn't influence BR much...)
JP Slice at 87 and locked
Min BR : 80
Max BR : 200
DblockA - 6
DblockB -6
PicPC -7
Buffer Warn 70%

ISO was 320, and audio was off. My SDHC card are Sandisk Extreme (45MB/s) and Extreme Pro (95MB/s) and both worked.

I don't know if this would be any help, but I figured "you never know"... I used the "422exmem" released. (at first I thought I would be able to record in 422 but I guess I'll to wait for mjpeg encoding if I understand this right ?)

I don't exactly understand what all those settings do, except I think for GOP and Slice, so would you be able to post quickly a little "what's what" about all the settings, like D1,D1, DblockA... Because I don't know if the BR or the encoding quality should be better with lower or higher values...

Thank you for all this amazing work, I think you are just creating, with your work on the 600d, the better HDSLR on the market, even if it's not a full frame.

Jeremy, a french fan of ML
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on October 28, 2012, 11:28:35 PM
Slice 87 is max quality. If you set it to only 87 you will be max quality all the time. Some scenes will let you record like that and get theoretical max bit rate for camera.

Gop + all X stuff is for the CBR without cache hacks function.


Min max are to drop slice if buffer is getting overflowed.

I need to write a doc or something.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: ilguercio on October 28, 2012, 11:30:08 PM
Are you, or Alex, going to port this on other cameras too?
I know there's the problem of cache hacks but i think i wanna risk it for the sake of science :D
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on October 28, 2012, 11:40:20 PM
Well 7d is getting done. Look in FW for the locations of where you need to cache hack.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: ilguercio on October 28, 2012, 11:45:51 PM
Well, i just started understanding ML code and refreshing my C studies.
I have Ubuntu in dual boot on my system, so i probably have to run ARM console to do some work, right?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: juantrueno on October 28, 2012, 11:46:41 PM
I know that you maybe already talk about this, but where can I find the latest ML 2.3 with audio controls and exfat  for 600D? What's new on it? Thanks
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on October 28, 2012, 11:53:19 PM
Yep, the disassembly takes a few days. Both nightly builds of 2.3 and builds in my repo have 600D audio.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: juantrueno on October 28, 2012, 11:56:06 PM
Should I wait for next relase? Can I use one of yours? How is it named?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on October 29, 2012, 01:28:36 AM
There is a 550D build that lets you change gop, its postfixed 550D. But not up to date.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: C.films on November 18, 2012, 01:17:35 AM
So how exactly do I install this into my T3i? Just download the lastest, throw it into my SD card, and turn on the camera? Or is there a specific way I need to install this?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: a1ex on November 18, 2012, 10:17:43 AM
Experimental versions are for advanced users, who can read the install guide. For something that works out of the box, wait for a stable release.

See http://www.magiclantern.fm/forum/index.php?topic=3072.0
Title: Re: 600D Audio TEST release - 2.3 based
Post by: sparkplug on November 18, 2012, 06:27:21 PM
I've installed the latest nightly build on my canon t3i and it's working just fine, but there is one thing that bothers me. There is this overlay in the center of the screen that reads out +, out -, vol+ and vol - . And in conjunction you can adjust those settings with the arrow or navigation buttons on the right side of the camera. That's a pretty ingenious addition, but I use an external system to control the audio and I'd prefer to turn this function off, but I can't figure out how. Is there a setting in the menu I'm missing?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on November 18, 2012, 07:12:30 PM
Its in prefs arrow/set shortcuts.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Robbe on November 22, 2012, 02:23:43 AM
What's the purpose and difference with out +, out - and vol+ and vol-?
And to connect headphones - is the way via Canon A/V cable?
//RoBbe
PS
And once again; impressed by your work and hope Canon realizes it too!
DS
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on November 22, 2012, 07:45:38 PM
vol + is more volume
vol - is less volume
out + monitor vol
out - monitor vol
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Robbe on November 23, 2012, 12:01:05 AM
What is next and previous Out line?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on November 23, 2012, 12:21:34 AM
Isn't vol input volume and out monitor volume?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on November 23, 2012, 04:27:55 PM
out + next Out line
out - previous Out line
correct:
out+/-  =  increase/decrease output volume for headphone monitoring
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Mister Paul on December 08, 2012, 07:01:32 PM
  in +
  in -
would be better name than
  vol +
  vol -
which are confusing

and would also make relation with
  out +
  out -
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on December 08, 2012, 11:09:06 PM
  in +
  in -
would be better name than
  vol +
  vol -
which are confusing

and would also make relation with
  out +
  out -

I've changed them to:
Rec Vol+
Rec Vol-
Out Vol+
Out Vol-
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Mister Paul on December 09, 2012, 01:19:53 AM
Great!
 ;)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: loicremy on December 27, 2012, 06:17:37 PM
Hi, at first, thousands  thanks for this great work : simply wonderfull !

Then, 2 questions :

- @scrax : I just downloaded from http://nanomad.magiclantern.fm/nightly/ the current nightly version (12/27/2012) and  I can read Vol+,Vol-,Out+ and Out -. How can I do to get Rec+ and Rec -  messages ?

- I would like to know if I could help development (I'm use to develop and I worked, few years ago, in C++) with a Windows compliant compiler ?

Thank you again

Loïc
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on December 27, 2012, 06:37:18 PM
- @scrax : I just downloaded from http://nanomad.magiclantern.fm/nightly/ the current nightly version (12/27/2012) and  I can read Vol+,Vol-,Out+ and Out -. How can I do to get Rec+ and Rec -  messages ?

- I would like to know if I could help development (I'm use to develop and I worked, few years ago, in C++) with a Windows compliant compiler ?

Hi, you have to wait unti the pull request being pushed in the source or you can compile from my fork: https://bitbucket.org/600Dplus/magic-lantern-for-600d

to compile ML start from here: http://www.magiclantern.fm/forum/index.php?topic=991.0
Title: Re: 600D Audio TEST release - 2.3 based
Post by: RyanRakowski on January 17, 2013, 07:38:58 AM
What else are we waiting on? All seems and works good.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: micklesh on January 17, 2013, 02:23:02 PM
What else are we waiting on? All seems and works good.

well, there are other cameras
and yes, there can't be too much testing
 ;)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on January 17, 2013, 07:42:19 PM
I've changed them to:
Rec Vol+
Rec Vol-
Out Vol+
Out Vol-

About that, since there was problems about the length it's now like this in the nightly:

Rec+
Rec-
Out+
Out-
Title: Re: 600D Audio TEST release - 2.3 based
Post by: abou adam on January 30, 2013, 06:21:45 PM
Hi

thanks for your work

I have a 600d and I would like to dowlnoad audio test version 0.11 but the link seems dead

Someone can send me it?

Tounsi
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on January 30, 2013, 06:37:37 PM
I have a 600d and I would like to dowlnoad audio test version 0.11 but the link seems dead
You can download latest version here:
http://nanomad.magiclantern.fm/nightly/
Title: Re: 600D Audio TEST release - 2.3 based
Post by: abou adam on January 30, 2013, 08:30:22 PM
thanks for your quick response rush
very nice of you

i have not read the previous one post
but the parameter balanced is not provided?

abou adam
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on January 30, 2013, 08:35:06 PM
but the parameter balanced is not provided?
As far as I know, balanced option is not available because audio chip in 600D don't support it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Ottoga on February 11, 2013, 02:20:34 PM
A question on the nightly builds.

Can they be applied to the 7D alpha and if so how?

Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on February 11, 2013, 02:55:06 PM
A question on the nightly builds.
Can they be applied to the 7D alpha and if so how?
You should ask it in this topic, not here:
 Topic: Magic Lantern for 7D alpha 2 (http://www.magiclantern.fm/forum/index.php?topic=3974.0)
I think that you can't apply it...
Title: Re: 600D Audio TEST release - 2.3 based
Post by: lainol on March 05, 2013, 03:05:57 PM
Hi there, what about a setting to change:

L int - R ext
to
L ext - R int?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: MD87 on March 16, 2013, 09:21:43 PM
Good afternoon.  I have a problem.  At connection of the Canon AVC-DC400ST cable the display is switched off, the sound in earphones thus too isn't present.  the headphone mon parameter is included in the menu.  somebody uses sound monitoring through USB on 600D?
sorry for my bad English.

PS: version of ML 2.3 NEXT of March 14.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on March 16, 2013, 10:38:22 PM
Check that both Audio Override and Headphone monitoring is enabled.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: a1ex on March 16, 2013, 10:52:58 PM
Actually, the user interface should reflect that somehow.

So... either we should gray out the menus that depend on audio overrides, or just override the audio always. On the other cameras, audio overrides are always enabled (but that's a technical limitation).

I don't know if the 600D audio implementation is robust enough so it can stay always enabled. That's something you - the testers - should tell. If it is, I'd prefer to implement it because of reduced UI complexity.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: scrax on March 16, 2013, 11:19:57 PM
Actually, the user interface should reflect that somehow.

So... either we should gray out the menus that depend on audio overrides, or just override the audio always. On the other cameras, audio overrides are always enabled (but that's a technical limitation).

I don't know if the 600D audio implementation is robust enough so it can stay always enabled. That's something you - the testers - should tell. If it is, I'd prefer to implement it because of reduced UI complexity.

Audio override should be enabled only when needed IMHO, maybe in background without a menu item but having audio override always on will keep the audio chip on even when not needed.
But this will make impossible to keep audio chip off in movie mode like we can do now with canon audio off and override off in ML.

I keep it usually off for photo for example, I made also some change in my pull request to enable it just when audio remote shoot is active but my changes gives problem compiling 60D so I've removed it for now.

Actually I'm using it more like: "Enable Audio" instead of "Audio Override" since in canon menu audio is off.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: a1ex on March 16, 2013, 11:38:10 PM
Right, the powersaving for the audio chip is not implemented in the other cameras either (the chip is always on).

But... this enhancement is 600D-specific, which means that if we go on this route, I won't be able to iron out all those UI quirks.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on March 16, 2013, 11:46:20 PM
I just leave canon audio off and record wavs and then use override to enable/disable audio. Maybe have it also work like expo override auto.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Kromofone on April 23, 2013, 07:33:02 PM
So, just wondering, in percent, how many % would you say the audio functions are stable for the 600d?
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on April 23, 2013, 07:39:04 PM
So, just wondering, in percent, how many % would you say the audio functions are stable for the 600d?
you mean crash-free functions? all of them are crash-free from first versions
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Simonsays on April 25, 2013, 10:19:08 AM
hiya you great people how do I upgrade from the V2.3 to latest stable nightly build?

I've had a look in the folder but not sure what to do next?

Do I drop all the extracted files onto the SD card or only selected ones :D

I'm hoping to solve or Improve the audio Into my D600 from the Rode shotgun mic is this gonna do that?

I have been following the post and tried to find how to do it but thought I'd ask as you people are Fooooookun Amazing

Thanks

Simon :D
 
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on April 25, 2013, 12:29:13 PM
Simonsays, yes, just extract it and overwrite 2.3 files (and you can extract it on a card without ML 2.3 and just copy your camera .fir file from 2.3)
Title: Re: 600D Audio TEST release - 2.3 based
Post by: mexicodirk on April 29, 2013, 03:40:57 AM
yust i see this new test version
i will inst. this and play with this

Dirk
Title: Re: 600D Audio TEST release - 2.3 based
Post by: jonnyschanny on May 02, 2013, 06:46:05 AM
Hello all. I've been gone since august or september. And i have to say, you made amazing progress. Its improved so much since then lol.  I read through the forum (quick scan) and maybe this has been addressed, but I didn't see it. 

Would it be possible to enable headphone audio monitoring when you play back a video?  It would be so much more convenient, and probably the one thing I would like more then anything else, as i often set my volume and sound level by recording then listening back.   

Thanks again for the hard work. Its improved so much over the last few months
Title: Re: 600D Audio TEST release - 2.3 based
Post by: 1% on May 02, 2013, 08:23:11 AM
I think it was possible to play back video and I think wav through headphones but code isn't set up to do it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: jonnyschanny on May 03, 2013, 01:18:50 AM
Thanks for the response!! looking forward to it.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: tatabeat on May 30, 2013, 01:42:47 PM
i only can see the VU meter working when im recording. standby = no VU.

am i missing a setting/combination in the ML menu?

thank you.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on May 30, 2013, 03:35:05 PM
just turn on audio override
Title: Re: 600D Audio TEST release - 2.3 based
Post by: tatabeat on May 30, 2013, 04:14:42 PM
thanks Rush,

but i have Audio Override : ON / Internal MIC set.
i see no signal on the VU, not even when recording.

if i turn the Audio Override OFF i can see VU working but only when recording.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on May 30, 2013, 06:32:49 PM
may be your gain and boost levels are too low - so levels can't raise enough to be seen on meter.
with overrided audio, levels are set with ML menu only.
Title: Re: 600D Audio TEST release - 2.3 based
Post by: henkvandes on June 01, 2013, 12:07:17 PM
is the downloadlink broken on the startpage??

I get when I click on it:

"Forbidden

You don't have permission to access /pub/betauploader/600Daudio/ on this server."

:-(
Title: Re: 600D Audio TEST release - 2.3 based
Post by: Rush on June 01, 2013, 12:31:01 PM
is the downloadlink broken on the startpage??
Thread links is outdated. 600D audio controls is now in nightly builds:
http://nanomad.magiclantern.fm/nightly/
Title: Re: 600D Audio TEST release - 2.3 based
Post by: henkvandes on June 01, 2013, 12:50:35 PM
mucho graciasssssssssss  :) :) :)