[MOD]Better audio quality for video capture[W.I.P.] - Desire Android Development

Does anybody have any experience with editing the default.prop? I'm still kind of an Android Noob, so I'd need some help... But let me share my "findings" on my quest for better audio quality in captured videos and a steady framerate of 25.
Here is the juicy part of the default.prop I'd like to edit:
ro.media.enc.hprof.file.format=mp4
ro.media.enc.hprof.codec.vid=m4v
ro.media.enc.hprof.codec.aud=amrnb
ro.media.enc.hprof.vid.width=1280
ro.media.enc.hprof.vid.height=720
ro.media.enc.hprof.vid.fps=30
ro.media.enc.hprof.vid.bps=10000000
ro.media.enc.hprof.aud.bps=12200
ro.media.enc.hprof.aud.hz=8000
ro.media.enc.hprof.aud.ch=1
ro.media.enc.hprof.duration=60
ro.media.enc.mprof.file.format=mp4
ro.media.enc.mprof.codec.vid=m4v
ro.media.enc.mprof.codec.aud=amrnb
ro.media.enc.mprof.vid.width=720
ro.media.enc.mprof.vid.height=480
ro.media.enc.mprof.vid.fps=30
ro.media.enc.mprof.vid.bps=60000000
ro.media.enc.mprof.aud.bps=12200
ro.media.enc.mprof.aud.hz=8000
ro.media.enc.mprof.aud.ch=1
ro.media.enc.mprof.duration=60
ro.media.enc.lprof.file.format=3gp
ro.media.enc.lprof.codec.vid=m4v
ro.media.enc.lprof.codec.aud=amrnb
ro.media.enc.lprof.vid.width=176
ro.media.enc.lprof.vid.height=144
ro.media.enc.lprof.vid.fps=15
ro.media.enc.lprof.vid.bps=256000
ro.media.enc.lprof.aud.bps=12200
ro.media.enc.lprof.aud.hz=8000
ro.media.enc.lprof.aud.ch=1
ro.media.enc.lprof.duration=30
ro.media.enc.file.format=3gp,mp4
ro.media.enc.vid.codec=m4v,h264
ro.media.enc.aud.codec=amrnb
ro.media.enc.vid.h264.width=176,1280
ro.media.enc.vid.h264.height=144,720
ro.media.enc.vid.h264.bps=64000,10000000
ro.media.enc.vid.h264.fps=1,60
ro.media.enc.vid.m4v.width=176,1280
ro.media.enc.vid.m4v.height=144,720
ro.media.enc.vid.m4v.bps=64000,20000000
ro.media.enc.vid.m4v.fps=1,60
ro.media.enc.aud.amrnb.bps=5525,12200
ro.media.enc.aud.amrnb.hz=8000,8000
ro.media.enc.aud.amrnb.ch=1,1
ro.media.cam.preview.fps=0
ro.media.dec.jpeg.memcap=20000000
ro.media.enc.jpeg.quality=90,80,70
media.a1026.nsForVoiceRec=0
media.a1026.enableA1026=1
Click to expand...
Click to collapse
In particular, I was wondering if it's possible to change the following strings:
For audio
ro.media.enc.mprof.codec.aud=amrnb - -> ro.media.enc.mprof.codec.aud=aac
ro.media.enc.mprof.aud.bps=12200 - -> ro.media.enc.mprof.aud.bps=128000
ro.media.enc.lprof.aud.hz=8000 - -> ro.media.enc.lprof.aud.hz=44100
ro.media.enc.aud.amrnb.bps=5525,12200 - -> ro.media.enc.aud.aac.bps=96000,256000
ro.media.enc.aud.amrnb.hz=8000,8000 - -> ro.media.enc.aud.aac.hz=8000,44100
For video
ro.media.enc.vid.m4v.fps=1,60 - -> 30,60
ro.media.enc.vid.h264.fps=1,60 - -> 30,60
So far I haven't tried any of these changes. I wanted to ask you folks, if any of you has tried something like this already?

Those changes seem a bit drastic. It may or may not work, only one way to find out though

MaTiCeK- said:
ro.media.enc.mprof.aud.bps=12200 - -> ro.media.enc.mprof.aud.bps=128
should be
ro.media.enc.mprof.aud.bps=12200 - -> ro.media.enc.mprof.aud.bps=128000
and
ro.media.enc.aud.amrnb.bps=5525,12200 - -> ro.media.enc.aud.aac.bps=96,256
should be
ro.media.enc.aud.amrnb.bps=5525,12200 - -> ro.media.enc.aud.aac.bps=96000,256000
Click to expand...
Click to collapse
12200bps is low, and setting it to 128bps which is even lower is not going to improve sound(if settings work at all) My guess, as you can see is that you meant it to be 128kbps
First post woo!

I had kbps in mind, sorry obviously setting it to 128000 then! Thx for the correction!

i'd love this, it's the one thing i miss most from my old sony ericsson videos hahah!
the stock sound on the desire just doesn't cut it

Tried it and no difference... We need better hackers/devs to do it.

I would love this too. The issue with the sound is a low sample rate. Did you change all the bps settings for each codec?

I have, but it doesn't seem to do anything... I'd really love a real dev get on board with us!

maybe if we keep bumping someone will help us out
it's great having good visual quality, but i remember from my old phone the videos were so much more watchable even at low resolution, when the sound was clear and you felt more like you were actually there!

Hi again - just had another look at the config data - what happens if ONLY the hz details are changed, and the bps is left at default?

richard said that its stored on /system/etc/media_prifiles.xml

musojon74 said:
Hi again - just had another look at the config data - what happens if ONLY the hz details are changed, and the bps is left at default?
Click to expand...
Click to collapse
Don't know for sure, try it and report. But AFAIK amrnb codec has a limit of 8000Hz, it's also a codec only suitable for recording spoken word and never music.

bongmaster2 said:
richard said that its stored on /system/etc/media_prifiles.xml
Click to expand...
Click to collapse
Only in vanilla android froyo ROMS.

MaTiCeK- said:
Only in vanilla android froyo ROMS.
Click to expand...
Click to collapse
but codec still is a codec - probably new rewriten would do the trick with no limitations

So i guess getting a steady framerate didnt work either?
Would love to see a mod for this

SimenX said:
So i guess getting a steady framerate didnt work either?
Would love to see a mod for this
Click to expand...
Click to collapse
Nope....
But interestingly it seems like the values get overwritten once I reboot the phone, so that's the problem, as the phone never ever uses my changes... At least setting the framerate should work.
In addition to the default.prop I also edited the build.prop for the exact same reason od limiting the fps to 25 min. Didn't work as well...
Any help appriciated.

Did you wipe the cache before/after pushing the build.prop?

Nope I haven't. Bulid.prop doesn't get overwritten at boot, changes stay, but don't do anything to the camera app. I assume that we need to edit the camera app as well.

I think this is an underrated issue. Props to you all for exploring it.
8000hz sample rate is terrible and not representative of the progress being made in smartphone development. Lot of smartphones are bragging about 720p HD recording but the audio sounds terrible. I am keenly following this thread.

The bad audio recording is HTC's fault. If you look at sample video on youtube from the Droid, Droid X and Samsung Galaxy S, they all have reasonable to great sound capture quality.
But no matter which HTC Anroid device you look at, you end up with poor sound capture quality. Amrnb at 8000hz simply sucks. Even on the EVO4G and on the leaked Desire 720p video samples from UDK, that can be enjoyed here: http://www.youtube.com/watch?v=C8B5SM6nlQ4 & http://www.youtube.com/watch?v=MfmMaQixXJM
An update to my progress...I made no progress at all. Will try to tinker some more. As they say, luck is with the brave!

Related

Videocam illusion

Hi,
I'm the developer of Videocam illusion app. I have just checked a problem with SE X10 audio recording speed (supports only 48.000 Hz recording). I will release a fix ASAP.
Regards,
Mobileillusion
EDIT 2:
I have just released version 1.5 of "Videocam illusion". I hope the audio recording problem of the previous version was fixed for the Xperia X10.
I have upload the apk, but I would prefer that you download it (and rate if you like) from the Android Market:
https://market.android.com/details?id=com.androidillusion.videocamillusion
Thanks for your support!
What's new on version 1.5
- New user interface
- Optimized video player
- New retro filter: Chicago
- Animated mask: 8mm
- More filters/effects/masks: color, blur & white border
- Adjustable filters & effects
- Front camera support (Android 2.3+ required)
- Zoom (if supported)
- Ready for Tablet
EDIT: Here the SE X10 bugfix release (with 48 KHz recording)
Thanks, I guess most of us have been wondering why the sound sounds like chipmunk/accelerated and so does the video.
excuse my English. take this opportunity to ask if there a way to increase the recording frames. In fact, when I started recording 15 fps, but after a few seconds down to 5-6 .... tanks
Hi,
Thanks for your application encd for your replay ....
I just wonder if it would be possible to have the video encoded not only in MOV but in MP4 and/or 3gp formats in order to be also enclosed in MMS ?
Regards
Hi again,
thanks for the feedback. I have changed the recording freq to 44.100 Hz.
Could you tell me if now is working propertly?
About the questions...
The app records MOV files (MJPEG format). I have developed the MJPEG encoder/decoder. The frame rate drops while recording because each frame must be encoded. I think I could speed up a little, but not a lot.
About MP4/3GP format Android Multimedia API doesn't support direct frame encoding to video. :-(
I'm working on a MP4 encoder, but right now speed sucks. I will try to optimize.
Regards,
Mobileillusion
Hi
I will test it in few minutes and let you know what are my impression
Regards
Is this the latest version? I just download videocam illusion from market today...it show version 1.o..
Getting between 7-13fps only 640x480
Sound still abit chipmunky but it's better than before. Hopefully you can update it again
Hi,
the atached file is a "SE X10 bugfix" version (1.0.1). I will release a new version in the Market with audio recording freq selector (not only 44.100 Hz) the next week.
Feel free to let us test out your pre-release and provide feedback to you
Dev, thank you for working on this. Much appreciated
Sent from my X10i using XDA App
Mobileillusion said:
Hi again,
thanks for the feedback. I have changed the recording freq to 44.100 Hz.
Could you tell me if now is working propertly?
About the questions...
The app records MOV files (MJPEG format). I have developed the MJPEG encoder/decoder. The frame rate drops while recording because each frame must be encoded. I think I could speed up a little, but not a lot.
About MP4/3GP format Android Multimedia API doesn't support direct frame encoding to video. :-(
I'm working on a MP4 encoder, but right now speed sucks. I will try to optimize.
Regards,
Mobileillusion
Click to expand...
Click to collapse
Tested
frame rate around 10-15 at 640x480
sound not perfect but much better
Thanks ...
as said an MPEG encoder would be much apreciated
Is this a patch which makes the free and pro version better or is it just a new free version?
ffortissimo said:
Is this a patch which makes the free and pro version better or is it just a new free version?
Click to expand...
Click to collapse
it is only a 44.100 Hz recording patch free version. I will update the Market versions (free/pro) with frequency selection ASAP.
Thanks for all the feedback!!!
X10 is screaming "i'm aliveeeee!!!!!"
thanks bro!
Well, you said Android's framework for 3rd party apps doesn't support direct frame encoding. Right?
Then what about using superuser to get over this framework?
All firmwares here are pre-rooted, so this wouldn't be a problem.
Adolf1994 said:
Well, you said Android's framework for 3rd party apps doesn't support direct frame encoding. Right?
Then what about using superuser to get over this framework?
All firmwares here are pre-rooted, so this wouldn't be a problem.
Click to expand...
Click to collapse
Hi Adolf1994,
you're right, direct frame video encoding is not available for 3rd party apps.
I have to investigate the Android source code to see how to directly access the encoder.If anyone can help me would be fine.
Regards
Much better, but it still takes the sound up a bit, maybe go up to 44.1Khz? Unless thats what was making it go up. Then i guess take it down.
Sent from my X10a running cm 6.1.3 V4.3 with included arc launcher.
Realorasz said:
Much better, but it still takes the sound up a bit, maybe go up to 44.1Khz? Unless thats what was making it go up. Then i guess take it down.
Sent from my X10a running cm 6.1.3 V4.3 with included arc launcher.
Click to expand...
Click to collapse
Hi Realorasz,
I have checked the problem and you're right. I think 8000 Hz works better (with no speed up), but also 48 KHz.
I will release a "quick version" soon.
Thanks!
PS: I'm right now also working on a full resolution image viewer "Gallery illusion HD" that supports big "jpgs" and displays pictures with no quality loss. Now is in public beta and can be download free on the Android Market. Any feedback would be appreciated.
Good to know
Hopefully make full use of the 720p camcorder once you're able to fully use the encorder, hopefully the ROM devs here can help you out.

[MOD] 720p recording ported from Hancocks ROM

BEFORE YOU READ ANY FURTHER, THIS MOD/PORT (WHATEVER) WILL PROPABLY ONLY WORK ON RED LENSED DEFYS! SORRY BUT IT SEEMS TO BE A HARDWARE THING! AND THERE ALSO MIGHT BE THE SLIGHT POSSIBILITY THAT IT IS LIMITED TO 3.4.2_145-003 VERSION ONLY! (AT LEAST THIS IS THE VERSION HANCOCKS ROM IS BASED ON AND THE SAME I TESTED IT WITH)
to make it short, i (kind of) ported the 720p recording capability of hankocks rom 1.11 to pays rom 3.3 (based on 3.4.2_145-003).
first of all, I AM NO DEVELOPER! so all props go to hankock! what i did was the following:
i took all the libs from hancocks rom which had something to do with camera & encoding (as you can see, not a very devlike procedure) and put them into my system/libs. then i took media_profiles.xml from hancocks rom and put it to my system/etc (of course i changed back permissions afterwards). first i used hancocks patched stock camera app and merged my and his build.prop so that the whole thing would run on my rom. and it worked perfectly. but this solution has 2 drawbacks:
1. hancock used 3gpp container, which is imho inferior to mp4
2. the audio encoding is very bad (amr_nb, 8kbps)
then i found out, that if i used lgcamera instead i would't need to change build.prop anymore and it still worked fine. besides of that, lgcamera is much more customizable settingwise. and by not modifying build.prop, i hope to enhance compatibility of this mod to other froyo versions.
and that is what my package contains:
-all libs with "enc", "cam", "camera" in therr names from hancocks rom (i know, i'm an amateur )
-media_profiles.xml from hancocks rom
-lgcamera 5.25 (free) btw. it works with the latest pro version from the market too
please use tenfars clockwork mod or other custom recovery to flash this update.zip. the built in original recovery won't work (doesn't accept signature). BEFORE YOU START, DON'T FORGET TO MAKE A NADROID BACKUP!!!
here you find an untouched video sample: http://forum.kut-btu.de/video/VIDEO00017.mp4
([email protected],8fps, mp4-container, video: [email protected]~10000kbit/s, audio: [email protected]/s, 44khz)
i know, seems very choppy but this is because i was walking constantly. framerate is quite good. my defy runs at 1,2ghz but i tested 720p rec @ 800mhz too and it worked the same. it might be necessary to apply sdcard read_ahead_kb patch (mine runs at 2560 kb instead of 128) to avoid slow framerate effect which could be observed on hancocks rom.
sadly, recording with .h264 codec is still not possible (and i doubt it ever will). hence the resulting video is no match for the 720p recordings of e.g. the samsung wave but imho it is still a lot better than stock and looks almost great
now i leave it to the real devs to optimize this, whatever it is.
DISCLAIMER:
I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGES RESULTING FROM THIS MODIFICATION!
/edit:
mod works fine on the following froyo versions:
-3.4.2-117
-3.4.2-145 (as the mod comes from this version)
-3.4.2-155
mod doesn't work on:
-3.4.3-11
strange behavior detected:
after recording in 720p dmesg shows:
Timed out waiting for DSP suspend 3
pm_op()latform_pm_suspend+0x0/0x54 returns -1
PMevice C6410 failed to suspend:error -1
PM:Some devices failed to suspend
Click to expand...
Click to collapse
don't know, which impact this has on battery drain. after fresh reboot and w/o recording in 720p this problem doesn't show up.
Thnaks for this - i'll have a play with it later today
It works with Barebones 1.4... when im recording it seems little bit choppy, but playing it in MoboPlayer is good (smooth, maybe not 30 fps but its good!).
Thank you!
Antszej said:
It works with Barebones 1.4... when im recording it seems little bit choppy, but playing it in MoboPlayer is good (smooth, maybe not 30 fps but its good!).
Thank you!
Click to expand...
Click to collapse
great! since Barebones 1.4 is based on CEE 3.4.2-155-002 Deblur, we can add it to the compatibility list.
yes, the recording view seems choppy on my system too, but the resulting video is quite smooth (~23-24fps).
http://www.multiupload.com/APEW3UPMI0
Here is the sample.
juuu
I want this for green lens...
insestito said:
juuu
I want this for green lens...
Click to expand...
Click to collapse
sorry. i believe that 720p recording isn't impossible for green lense models. but i do believe that this patch based on hancocks mod will do the trick only for red lens defys. because it isn't just the color of the lens but a totally different sensor. perhaps someone figures out a mod for green lenses too.
But official Froyo is near, just wait, it should have 720p recording for EVERYONE.
I compare it to xd1 ROM files, and find the different files are,
720p_mp4venc_sn.dll64P
libOMX.TI.720P.Encoder.so
libOMX.TI.JPEG.Encoder.so
libOMX.TI.mp4.splt.Encoder.so
libOMX.TI.Video.encoder.so
Hope it can reduce the update size.
Antszej said:
But official Froyo is near, just wait, it should have 720p recording for EVERYONE.
Click to expand...
Click to collapse
what leads you to this assumption?
sunoldman said:
I compare it to xd1 ROM files, and find the different files are,
720p_mp4venc_sn.dll64P
libOMX.TI.720P.Encoder.so
libOMX.TI.JPEG.Encoder.so
libOMX.TI.mp4.splt.Encoder.so
libOMX.TI.Video.encoder.so
Hope it can reduce the update size.
Click to expand...
Click to collapse
feel free to modify the package everyone... my work is done
Worked like a charm for me, thanks!
ToTTenTranz said:
Worked like a charm for me, thanks!
Click to expand...
Click to collapse
u r welcome
Yep it works here too but i cant see much difference between WVGA and this 720p..its almost the same. Is there any app on market that has continuous autofocus while recording video(like barcode scanner) ?
I'll create this patch for the green lens?
insestito said:
I'll create this patch for the green lens?
Click to expand...
Click to collapse
is this a statement or a question?
derbestimmer said:
is this a statement or a question?
Click to expand...
Click to collapse
Question for you or any Dev, sorry...
Google translator is very bad...
insestito said:
Question for you or any Dev, sorry...
Google translator is very bad...
Click to expand...
Click to collapse
i don't think i will be any helpfull, cause i'm no dev. i just took the work of a dev and ported it to another rom. sorry. perhaps someone else is able to do it.
My problem with Hancocks ROM is that lgcamera records very light sound, no matter what encoding I chose (AMR_NB, AMR_WB or AAC). I am not even sure the software records sound on defy with encoding as AMR_WB and AAC.
Video works ok with MPEG4 encoding though with twp slight issues. One is video file bitrate is not the same as configured in lgcamera settings. The other one is framerate is always below 25 - not sure if SD card speed is the bottleneck.
shural said:
My problem with Hancocks ROM is that lgcamera records very light sound, no matter what encoding I chose (AMR_NB, AMR_WB or AAC). I am not even sure the software records sound on defy with encoding as AMR_WB and AAC.
Video works ok with MPEG4 encoding though with twp slight issues. One is video file bitrate is not the same as configured in lgcamera settings. The other one is framerate is always below 25 - not sure if SD card speed is the bottleneck.
Click to expand...
Click to collapse
with light sound, do you mean quiet or bad quality? strange when i set lgcamera from amr_nb to aac, it does use this codec at least the resulting video shows this in codecinfo. and i think the sound quality is slightly better too compared to amr. concerning the other two issues, i have the same experience. the framerate never goes over 23,9fps and when i force it to 25 or even 30, lgcamera won't start recording. youre right the bitrates of the resulting video are mostly lower then the bitrates chosen in lgcamera. 13 prduces ~10, 10 produces ~8 and 8 produces ~6 mbps. but imho there is a difference visible between 13 and 8mbps respectively 10 and 6 in the resulting video. at least on the computer you can see the difference.
Sent from my MB525 using Tapatalk

[MOD] 2.3.6/7 Video Recording audio improvement -- WIP

Hi everyone
when you record a video on your original SGS 4G camera, your audio sampling is :
66 kbps bit rate.
16 KHz sample rate.
which is pretty lame...
If you ever tried to record live shows or concerts, you probably noticed audio is awful on recorded video...
Introducing Video Recording audio improvement MOD
found and very well explained by rafalense (http://forum.xda-developers.com/showpost.php?p=10980448&postcount=268).
Performed on SGS 4G camera by me. So, now recorded audio sampling is :
118 kbps bit rate.
32 KHz sample rate.
file size change is barely noticed.
Still camera is not modified.
I took, as a basis, the Team Acid modified camera - done by DSexton702.
So it is capable of taking pictures when battery is low and also by using the power button.
This is still in beta as :
1. Currently Audio-Video is out of sync. I need to check if this can be fixed by changing Video sampling rate....
In the meanwhile, you can fix this on PC very easily.
2. This mod does not use the media profile xml for greater video frame rate.
I actually put the original file back. I found the result to be not supported by all players and having some side effects like visual waves (and much larger file size).
3. Actually I examined DSexton702 media profile and it defines some various audio sample rates but always create 16KHz at the end.
If someone here has the knowledge in A/V synchronization or a good setup that works - please let me know so i will fix it.
Thanks.
CWM Flashable files to download (Camcorder mod and original camcorder to revert back) :
You can use this to sync A/V - http://fixounet.free.fr/avidemux/download.html
Awesome work! Thanks.
Glad to have u aboard thanks for this man this is well needed!!!!!
Now having AntonX kernel supporting Vodoo Sound - I will test audio HiFi record option enabled on video recording and update.
Would love to see this become final. You certainly are right about the audio during concert recording. All we hear is pure bass... Thank you for working on a much needed video recording mod.
Eurik said:
Would love to see this become final. You certainly are right about the audio during concert recording. All we hear is pure bass... Thank you for working on a much needed video recording mod.
Click to expand...
Click to collapse
Yeah.. would be awesome.
Thanks for the work, itzik2sh.
Edit : guys working with Voodoo sound (with supporting kernel)
need to run the Voodoo sound app and choose 'Recording Preset' - then change default to 'Loud environment - with DRC'
This should improve the recording level of loud shows.
Hi
Did anyone here test this MOD with live concert recording ?
If it doesn't help than I'll drop all further work.
I thought this problem is SGS 4G unique, but it turns out it exists on all Sammy phones,
even Nexus and SGS 2. See this bounty thread for SGS 2 :
http://forum.xda-developers.com/showthread.php?t=1172048
and this :
http://forum.xda-developers.com/showthread.php?t=896826
I'll try to ask AntonX to take a look or maybe ask supercurio on kernel implementation...
I also tried installing LGCamera from the market, which supposingly has an audio gain control, but it fails to launch and I had to uninstall it.
Nice improvement
Sent from my SGH-T959V using xda premium
Very good, very like
itzik2sh said:
Edit : guys working with Voodoo sound (with supporting kernel)
need to run the Voodoo sound app and choose 'Recording Preset' - then change default to 'Loud environment - with DRC'
This should improve the recording level of loud shows.
Click to expand...
Click to collapse
After voodoo digital recording, video and audio are repacked and converted to the device analog sampling rates, that this tweak changes (but also unsyncs)...
So if you have the time and effort, I'd appreciate if you share your experience with us all.
Sent from my SGH-T959V using xda premium

[MOD] Improve image/video/sound quality

Hello friends!
This is my very first work so please do not hate me.
So, simple as the title says this mod/hack don't know how to call - it increases your cameras bitRates from its limitations. For example for video recording original bitRate was 10000000 and acc audio codec rate was 128000. With this mod it improved to 20000000 and audio codec to 288000. This is maximum as its possible (as far as I know). This is because video encoder h264 supports maximum of 20000000bitRates. Also let's not forget image quality it doesn't seem to be changed a lot but still its an improvement. Increased all image encoding quality values to 99.
DONT FORGET TO MAKE NANDROID BACKUP THIS IS IMPORTANT
+ you can make a backup of your original media_profiles.xml
Flashable install
1. Download mod.zip and place to your SD card/root.
2. Reboot into recovery.
3. Clear Cache/Dalvik Cache.
4. Install Camera Mod.
5. Clear Cache/Dalvik Cache.
6. Reboot and enjoy.
I don't think wiping cache is necessary but to avoid problems its suggestible.
Manual install
1. Download media_profiles.rar extract it anywhere on your PC.
2. Push it to your system/etc (I am using root explorer so it's easy to mount R/W).
3. Obviously click yes if prompted.
4. Reboot.
-------------------------------------------------------------------------
If problems occur please be sure permission are set right which are -rw-r-r- or 644
Hope everything will work for you and you will enjoy this!
If you find any mistakes/bugs etc please fix me! :angel:
There is no benefit in increasing the audio bitrate of the video encoder above 128k, the microphone isn't good enough for it to make a difference and you are just using up unnecessary extra space on your device.
bcpk said:
There is no benefit in increasing the audio bitrate of the video encoder above 128k, the microphone isn't good enough for it to make a difference and you are just using up unnecessary extra space on your device.
Click to expand...
Click to collapse
+1 for the feedback. Interesting what others can say and if they achieved anything. Is it your knowledge talking or you actually run some tests?
http://imgur.com/py6f00L
bcpk said:
There is no benefit in increasing the audio bitrate of the video encoder above 128k, the microphone isn't good enough for it to make a difference and you are just using up unnecessary extra space on your device.
Click to expand...
Click to collapse
This is probably true. The mic is good but not that good so over 128k AAC is kind of overkill. We just need video bitrate improvements.
Overkill
eddvys said:
+1 for the feedback. Interesting what others can say and if they achieved anything. Is it your knowledge talking or you actually run some tests?
http://imgur.com/py6f00L
Click to expand...
Click to collapse
He´s just using common sense. Even the original 128 kbps was overkill for the quality you get from the mic and 288 kbps? Well, that´s just insane. Imagine that people listen to studio recordings @ 128 kbps AAC.
Edit:
Just noticed that you also increased the video bitrate to 20 Mbps. Really? We are talking about 720p videos from a mobile phone
knizmi said:
He´s just using common sense. Even the original 128 kbps was overkill for the quality you get from the mic and 288 kbps? Well, that´s just insane. Imagine that people listen to studio recordings @ 128 kbps AAC.
Edit:
Just noticed that you also increased the video bitrate to 20 Mbps. Really? We are talking about 720p videos from a mobile phone
Click to expand...
Click to collapse
Let him play around with the settings until he finds a sweet spot. This is just him experimenting right now. No need to be so negative.
CADude said:
Let him play around with the settings until he finds a sweet spot. This is just him experimenting right now. No need to be so negative.
Click to expand...
Click to collapse
I am being negative here because of " Interesting what others can say and if they achieved anything." Sorry to say that, but this is a very arrogant attitude, especially when he was replying to someone who was right. Edviss basically told him "You never achieved anything, so shut up.", while he probably doesn´t know what he is doing himself.
knizmi said:
I am being negative here because of " Interesting what others can say and if they achieved anything." Sorry to say that, but this is a very arrogant attitude, especially when he was replying to someone who was right. Edviss basically told him "You never achieved anything, so shut up.", while he probably doesn´t know what he is doing himself.
Click to expand...
Click to collapse
What are you talking about dude? Could you please show me where I was talking like that? You need to take this forum life a little more simpler. With this attitude of yours go hide better somewhere
thanks for investigating this, will check your progress now and then
Sent from my XT1032 using XDA Premium 4 mobile app
Will it work on stock ROM XT1033
Sent from my XT1033 using Tapatalk
eddvys said:
Hello friends!
This is my very first work so please do not hate me.
So, simple as the title says this mod/hack don't know how to call - it increases your cameras bitRates from its limitations. For example for video recording original bitRate was 10000000 and acc audio codec rate was 128000. With this mod it improved to 20000000 and audio codec to 288000. This is maximum as its possible (as far as I know). This is because video encoder h264 supports maximum of 20000000bitRates. Also let's not forget image quality it doesn't seem to be changed a lot but still its an improvement. Increased all image encoding quality values to 99.
DONT FORGET TO MAKE NANDROID BACKUP THIS IS IMPORTANT
+ you can make a backup of your original media_profiles.xml
Flashable install
1. Download mod.zip and place to your SD card/root.
2. Reboot into recovery.
3. Clear Cache/Dalvik Cache.
4. Install Camera Mod.
5. Clear Cache/Dalvik Cache.
6. Reboot and enjoy.
I don't think wiping cache is necessary but to avoid problems its suggestible.
Manual install
1. Download media_profiles.rar extract it anywhere on your PC.
2. Push it to your system/etc (I am using root explorer so it's easy to mount R/W).
3. Obviously click yes if prompted.
4. Reboot.
-------------------------------------------------------------------------
If problems occur please be sure permission are set right which are -rw-r-r- or 644
Hope everything will work for you and you will enjoy this!
If you find any mistakes/bugs etc please fix me! :angel:
Click to expand...
Click to collapse
Is there an upgrade possible ?
h2o64 said:
Is there an upgrade possible ?
Click to expand...
Click to collapse
I haven't got the device anymore, its really hard this way.
eddvys said:
I haven't got the device anymore, its really hard this way.
Click to expand...
Click to collapse
Oh.
That's little files. If you want a tester. Many people can do it

Very Bad audio quality in video recording

Hello guys First of all it's my first post in the nexus 5 group (i've did a pre-search) and i contact you with this problem
Last night i went out with friends at a pool party and used my nexus 5 for recording some videos from the stage. The music wasn't to loud, just like normal club music, in open space. Today when i took a look on the video i got scared...the sound quality is insanely BAD !. It's like the phone is set to +100 gain in the microphone... I tried normalizing audio in premier pro but with no chance. So i ask you guys, do you know any solution on how i can repair the problem. The best audio quality i had in recording videos in club (audio especially) was with my Nokia E51 that had the best mics i can find one a phone...
so here is a comparison:
In club music (closed space) shot with my Htc One S (no dual mic or things like that) -> https://www.facebook.com/photo.php?v=487777791348118&set=vb.100003477036350&type=3&theater
in club music (closed space) shot with my Nokia E51 (a 5-6 years phone that still records audio crispy clear for a phone ! - don't look at video quality) -> https://www.facebook.com/photo.php?v=247706518688581&set=vb.100003477036350&type=3&theater
last night with my nexus 5 ->https://www.dropbox.com/s/3vtisokit5ontwl/VID_20140727_032412.mp4
All the link are so you guys can see that exact problem that i have. I want to repair it, if it is possible in the stock rom (with a app) or if i need to install a custom rom, what is the best rom that resolves my problem and has best performance .
Thank you in advance !
I have exactly the same problem. Tried recording at a couple of indoor parties(so a little louder than your situation. Couldn't recognize any music when playing the video's afterwards. Terrible quality
Sent from my Nexus 5 using XDA Premium 4 mobile app
Partial fix - i think
Ok so last night i got an app from play store called microphone that has a setting on the mic called mic gain. it was set to +32 dB....overgain ! so i set it to 0 and did some recording in the house with my audio system on a high volume and afterwards put the phone next to the speaker and seem that it records decent . but i think it is a problem related to software settings... will keep you updated on what i found
Sounds awesome. Thanks for your effords
Sent from my Nexus 5 using XDA Premium 4 mobile app
Problem solved?
I can't post links so if anyone wanna fix this or just post the links from my post that would be great, thank you.
So I've found a solution, or at least a temporary one
Get the camera app called Lgcamera. In this app you can manually set your audio settings.
Set it to AAC and set the stereo option to On (this did it for me atleast).
/store/apps/details?id=rubberbigpepper.lgCamera&hl=sv
I made a little video about it since I couldn't find this solution before, hope it helps!
/watch?v=RVWcE3dQoMk
Please help spread the video on forums where this issue is discussed so more people (and perhaps even Google?) can record without that awful noise reduction/cancellation! If enough people complain then they will probably (hopefully) implement these settings in the "Google Camera" app!
Thanks for the video! This is the video.
http://youtube.com/watch?v=RVWcE3dQoMk
And the link to the Play Store:
https://play.google.com/store/apps/details?id=rubberbigpepper.lgCamera&hl=nl
Sent from my Nexus 5 using XDA Premium
BE CAREFULL though with LGCamera, because I found that no matter what you choose in settings, fullHD (1024p) videos are ALWAYS recorded with 15 frames per second only (vs 30 as normal), making the videos look very choppy. So I deinstalled LGCamera again. Otherwise great app.
But I found a good substitute, it called Open Camera, link to the (free) app and also a possible video mic fix (reduces mic gain).
Link and more info here:
http://forum.xda-developers.com/showpost.php?p=54391146&postcount=54
HTH,
Kusie
Kusie said:
BE CAREFULL though with LGCamera, because I found that no matter what you choose in settings, fullHD (1024p) videos are ALWAYS recorded with 15 frames per second only (vs 30 as normal), making the videos look very choppy. So I deinstalled LGCamera again. Otherwise great app.
But I found a good substitute, it called Open Camera, link to the (free) app and also a possible video mic fix (reduces mic gain).
Link and more info here:
http://forum.xda-developers.com/showpost.php?p=54391146&postcount=54
HTH,
Kusie
Click to expand...
Click to collapse
Hmm, strange. I do not have that problem. I record with 30FPS without any problems. Maybe something is wrong in the settings? Have you tried changing the video format around? The app is not that great but it does the job for now, atleast for me.
Edit:
I noticed that the front camera is not that great in Lgcamera, but the back I have no problems with. I recorded a video on my instagram if anyone wanna check it out. I'm still changing the bit values around hoping it will sound even better.
Speakers are "semi-loud" and i recommend watching the video in your phone or atleast lowering the bass if you're watching it with "real speakers".
instagram.com/p/rCDsh5xX9C/?modal=true
Here are my settings for this particular video:
Back camera
1920x1080
H.264
Vid Bitrate 17mbit
Vid framerate 30
AAC
44100 Samplerate
128000 Bitrate (unsure of what value is best here)
Stereo OFF
Ok thanks, I might give it another try... Open Camera works well for me, though.
Did you check the actual framerate of your resulting video with a tool like mediainfo or VLC Player codec Info?
Nice guitar work btw
Greetings from a drummer,
K.
Kusie said:
Ok thanks, I might give it another try... Open Camera works well for me, though.
Did you check the actual framerate of your resulting video with a tool like mediainfo or VLC Player codec Info?
Nice guitar work btw
Greetings from a drummer,
K.
Click to expand...
Click to collapse
Frame rate in VLC: imgur.com/SEyPhoh.png
Open Camera works too, but I still get the audio artifacts when recording with a backing track. I get those in LG too, just not as much. Lg is in no way perfect, but the sample and bit rate allows a bit more customization if you ask me.
I'll upload one with OC when I get home! And thanks
By the way, what settings did you use in Open Camera? Or did you just lower the gain?
Callemusicman said:
44100 Samplerate
128000 Bitrate (unsure of what value is best here)
Stereo OFF
Click to expand...
Click to collapse
higher bitrate = better quality/higher filesize :good:
HUUUGE discovery today!
Update your LG-camera, go to settings and set audio to "voice communication" = headset. You can now record with your headset, see my instagram @Callemusicman for results!
It completely removes the noise cancellation!!
Isn't there any other solution? Because if i use, for example, Instagram, the sound is still very bad... so this LG app isn't usefull for recording with Instagram or other apps...
http://forum.xda-developers.com/google-nexus-5/development/mod-camcorder-audio-quality-fix-t2837930

Categories

Resources