5,603,646 Members 36,881 Now Online
XDA Developers Android and Mobile Development Forum

[Possible Fix]for Bad Audio in Video Recording

Tip us?
 
radeonxt
Old
(Last edited by radeonxt; 27th July 2012 at 02:42 PM.)
#1  
radeonxt's Avatar
Senior Member - OP
Thanks Meter 227
Posts: 669
Join Date: Jan 2008
Default [Possible Fix]for Bad Audio in Video Recording

First of all i'd like to thank Meltus and jesus_c and gadgetcheck for their work.
http://forum.xda-developers.com/show....php?t=1722136
http://forum.xda-developers.com/show...6&postcount=54

i merely studied the file, i'm no expert.
i just know intermediate stuff.
i didn't know what hpf was, so i googled it and found it is high pass filter so i disabled it.
that alone didn't do the job well, the rest was educated guess and i'm glad it was right.
difference may not be that noticeable on phone speaker but can be clearly noticed when using headset.
the experts can now tweak and sort out more stuff after.

here's a comparison of vids:
old is from default
http://www.mediafire.com/?1a0wcd0rdodadd3

new is from tweaked
http://www.mediafire.com/?aob456t4qoyz25c

attached zip is cwm flashable.

UPDATE:
vid recording of sgs3 placed on laptop playing music.

default BFLB:
http://www.mediafire.com/?ke87s5nj2tpfhfb

tweaked BFLB:
http://www.mediafire.com/?63wzv2jd51bzy6o

NEW!!! Default BLG6/8:
http://www.mediafire.com/?se4ioy7x4206n1l
as you can see, tweaked BLFB and default BLG6/8 are pretty close.
the default BFLB's audio in vid was very bad, comparing it to default BLG6/8 there is a marked improvement.
samsung has indeed improved audio recording in vids now.


default vid starts around 2seconds, the tweaked at 6th second.
as can be seen on default, this phone is weak at picking up those between 32hz and 64hz.
if you can play the two vids and sync them, you'll see the tweaked picking up more bass than default.

app used in sgs3 is rta audio analyzer found in google play.
Attached Files
File Type: zip default backup_sound_mod_update.zip - [Click for QR Code] (196.6 KB, 824 views)
File Type: zip tweaked backup_sound.zip - [Click for QR Code] (196.8 KB, 2343 views)
The Following 10 Users Say Thank You to radeonxt For This Useful Post: [ Click to Expand ]
 
eitama
Old
#2  
eitama's Avatar
Senior Member
Thanks Meter 175
Posts: 543
Join Date: Sep 2010
Location: Hod Hasharon
There is a notable difference between both videos, but as the sound source is just noise it's hard to say if this is a good or bad improvement with naked ear.
I will be making some test later with your mod, I hope for the best!

Cheers!
LG G2 - D802 32GB Black @ Stock KitKat + Root
The Following User Says Thank You to eitama For This Useful Post: [ Click to Expand ]
 
radeonxt
Old
#3  
radeonxt's Avatar
Senior Member - OP
Thanks Meter 227
Posts: 669
Join Date: Jan 2008
i have before and after vids of cars passing by just like gsmarena's. as this was where we all first noticed sgs3's bad audio in vid recording.
but sad to say my upload speed here is very slow and the files are over 100mb cos i recorded each over a minute to be sure.

all i can say is the vid with tweaked is better.
i've listened to both using headset to differentiate well, the tweaked one has more depth which many has complained the audio in sgs3 was lacking.
and there is less walkie-talkie effect scratchy noise than before.
 
eitama
Old
#4  
eitama's Avatar
Senior Member
Thanks Meter 175
Posts: 543
Join Date: Sep 2010
Location: Hod Hasharon
You can use VLC to extract the audio channel from the vid files and upload only the audio files.
Then you can record 5 minutes on each, and be left with 5mb for each
LG G2 - D802 32GB Black @ Stock KitKat + Root
 
radeonxt
Old
#5  
radeonxt's Avatar
Senior Member - OP
Thanks Meter 227
Posts: 669
Join Date: Jan 2008
i used mp4muxer, i extracted the aac audio in raw.

default
http://www.mediafire.com/?bbcjfj8j6zkmynr

tweaked
http://www.mediafire.com/?cns7j748i3y2uhj

the best way i can describe it is that the mic captures better now. it was windy when i recorded both a while ago, and only the tweaked version as you can hear captured the wind.
 
JF-GINO
Old
#6  
JF-GINO's Avatar
Senior Member
Thanks Meter 32
Posts: 196
Join Date: Apr 2011
Location: Toronto
Quote:
Originally Posted by radeonxt View Post
First of all i'd like to thank Meltus and jesus_c and gadgetcheck for their work.
http://forum.xda-developers.com/show....php?t=1722136
http://forum.xda-developers.com/show...6&postcount=54

i merely studied the file, i'm no expert.
i just know intermediate stuff.
i didn't know what hpf was, so i googled it and found it is high pass filter so i disabled it.
that alone didn't do the job well, the rest was educated guess and i'm glad it was right.
difference may not be that noticeable on phone speaker but can be clearly noticed when using headset.
the experts can now tweak and sort out more stuff after.

here's a comparison of vids:
old is default
http://www.mediafire.com/?1a0wcd0rdodadd3

new is tweaked
http://www.mediafire.com/?aob456t4qoyz25c

attached zip is cwm flashable.
Amazing! This was one of my biggest complaints about video recording with this phone. The dynamic range was cut with a high pass filter and you solved it. Good job and thanks for this!
Samsung Galaxy Note 3 (SM-900w8)
X-Note V8 Rom KitKat / Custom N3 Kernel - 2430MHz (Quad-Core) / BaseBand - XXEMJ4

Samsung Galaxy SIII (GT-I9300)
SONERom JBv5.7 (XEMC2) / Boeffla-Kernel 3.2 OC - 1600MHz (Quad-Core) / BaseBand - XXELL4

Samsung Galaxy SII (GT-I9100)
TurkbeyRom V30.1 (XXKL1) / Ninphetamine-ReBorn V2.2.2 OC - 1600MHz (Dual-Core) / BaseBand - XXKP8

Samsung Galaxy Note 1(I717R)
SAUROM ROM RC7.1 / DAG HoloNote OC - 1800MHz (Dual-Core)
The Following User Says Thank You to JF-GINO For This Useful Post: [ Click to Expand ]
 
vandal4e
Old
#7  
Member
Thanks Meter 13
Posts: 93
Join Date: Feb 2008
Location: Sofia
there is definitely an improvement , but still cant record any bass
The Following User Says Thank You to vandal4e For This Useful Post: [ Click to Expand ]
 
dagrim1
Old
#8  
Senior Member
Thanks Meter 184
Posts: 1,226
Join Date: Sep 2008
Haven't had the chance to experiment but I understand you completely disabled the High Pass Filter by using HPF Switch and set it to 0?

{ "AIF1ADC1 HPF Switch", 0 },

But another interesting line is the one above it:

{ "AIF1ADC1 HPF Mode", 2 },

Appearantly there are 3 or 4 modes for the HPF:
0 = Hi-Fi
1 = Voice 1
2 = Voice 2
(3 = Voice 3)?

Perhaps setting it to Hi-Fi (value of 0) instead of 1 or 2 (voice) is worth a try as well. I can imagine when the focus is set to voice a lot of surrounding sound is filtered out and Hi-Fi might be more 'general' or 'pure' but without issues of too much noise for the mic?

Will try it out some later myself btw
The Following 2 Users Say Thank You to dagrim1 For This Useful Post: [ Click to Expand ]
 
JF-GINO
Old
#9  
JF-GINO's Avatar
Senior Member
Thanks Meter 32
Posts: 196
Join Date: Apr 2011
Location: Toronto
Quote:
Originally Posted by dagrim1 View Post
Haven't had the chance to experiment but I understand you completely disabled the High Pass Filter by using HPF Switch and set it to 0?

{ "AIF1ADC1 HPF Switch", 0 },

But another interesting line is the one above it:

{ "AIF1ADC1 HPF Mode", 2 },

Appearantly there are 3 or 4 modes for the HPF:
0 = Hi-Fi
1 = Voice 1
2 = Voice 2
(3 = Voice 3)?

Perhaps setting it to Hi-Fi (value of 0) instead of 1 or 2 (voice) is worth a try as well. I can imagine when the focus is set to voice a lot of surrounding sound is filtered out and Hi-Fi might be more 'general' or 'pure' but without issues of too much noise for the mic?

Will try it out some later myself btw
I tried setting it to 0 last night. Recording quality was about the same. Something I never noticed before. .. even in the audio recorder, or using an app life tape machine records with no low end bass at all.. .. hell even when recording the bloody radio. ... its a global problem with this phone on all recording levels. .. my sgs 2 does not suffer from this.. . Might be kernel related as all the options I try in this file still do not give me any thing lower then
0.5khz. .. pretty stupid limitation.. ..
Samsung Galaxy Note 3 (SM-900w8)
X-Note V8 Rom KitKat / Custom N3 Kernel - 2430MHz (Quad-Core) / BaseBand - XXEMJ4

Samsung Galaxy SIII (GT-I9300)
SONERom JBv5.7 (XEMC2) / Boeffla-Kernel 3.2 OC - 1600MHz (Quad-Core) / BaseBand - XXELL4

Samsung Galaxy SII (GT-I9100)
TurkbeyRom V30.1 (XXKL1) / Ninphetamine-ReBorn V2.2.2 OC - 1600MHz (Dual-Core) / BaseBand - XXKP8

Samsung Galaxy Note 1(I717R)
SAUROM ROM RC7.1 / DAG HoloNote OC - 1800MHz (Dual-Core)
 
radeonxt
Old
#10  
radeonxt's Avatar
Senior Member - OP
Thanks Meter 227
Posts: 669
Join Date: Jan 2008
it wasn't just hpf that i tried to tweak guys.

i did say in first post
i didn't know what hpf was, so i googled it and found it is high pass filter so i disabled it.
that alone didn't do the job well, the rest was educated guess and i'm glad it was right.
difference may not be that noticeable on phone speaker but can be clearly noticed when using headset.

just glad that many have confirmed the clarity,volume and such is better.
i'm hoping the experts will include tweaking this more along with their other audio recording fixes, since i can do no more further as i've mentioned i'm no expert and also too busy with business these days.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes