mlv_snd save samplerate to config file
Created originally on Bitbucket by tecgen
Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.
changes
- mlv_snd: save user selected samplerate and restore it after a reboot of ML
- tested on 550D, works as espected
generated MLV_SND.CFG
# Config file for module mlv_snd (MLV_SND.MO)
mlv.snd.enabled = 1
mlv.snd.sample.rate.selection = 2
mlv.snd.sample.rate = 22050
benefit?
- A lower sample rate needs less kb/s to store. This could help models with a slow SD card interface e.g. 550D (~21MB/s) to store more video frames, when recording RAW.
16 Bit, 48000 hz, 2 channels
16bit*48000hz*2 = 1536000 bits/s
/ 8 = 192000 bytes/s
/ 1024 = 187,5 kb/s
* 60 = 11250 kb/min.
* 60 = 675000 kb/h
/ 1000 = 675 MB/h
16 Bit, 22000 hz, 2 channels
16bit*22000*2 = 704000 bit/s
/ 8 = 88000 bytes/s
/ 1024 ~ 85,9 kb/s
* 60 ~ 5156 kb/min
* 60 ~ 309.360 kb/h
/ 1000 ~ 309 MB/h