[Q] How to change the sampling rate in Audio Playback? - General Questions and Answers

Hi everyone.
I'm Chinese so my English might be a little strange ,Sorry for that .
I'm using lenovo IdeaPhone K860i and I got the kernel source code some days ago .
And now you can see it at github:
GitHub(dot)com/webore/lenovo
This device makes me mad because the Audio Playback has a 48K smaple rate as we all know mp3 file have a 44.1K smaple rate.
I've tried several times to modify the kernel but I failed .
So could you please help with this ?

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.

[TESTING] Infuse 4G Video Recording & Playback Tests With Stock & Custom Roms

 
Infuse Video Camera Recording Tests With Stock And Custom Roms​
For those of you who are interested in the quality of your homemade video recordings and playback
please read on. Check out these tests which were made with all the stock and custom roms.
(these tests were conducted using a tripod and good indoor lighting)
Stock Froyo 2.2 Rom: Excellent very smooth, virtually no hesitation or lag during recording and playback of moving objects on preview screen.
(Ultimate Unbrick - Return to Stock)
Froyo 2.2.1 Custom Roms:Excellent very smooth, virtually no hesitation or lag during recording or playback of moving objects on preview screen.
(Infused 1.5.3, Infused 1.6.0, Refuse 1.7, Bionix Infinity 2.0)
Basically all the Froyo 2.2.x based custom roms all have the same results. Excellent video recording quality, smooth and virtually no noticeable hesitation or lag while recording and playback of homemade video. (I have tested different formats, 720p, 640x480 etc.)
Gingerbread Based Roms: Testing Rogers Gingerbread 2.3.x based Infuse i997 custom roms such as Infuse 2.1, CyanogenMod 7 and Hellraiser with i9000 Gingerbread based roms the video recording and playback quality with these roms were very poor with constant jerkyness, hesitation and lag due to only capturing up to 15fps like many cheaper cell phones do.
(even tried "CWM_UXKG3-rooted-de-odexed-updated_no_bootloaders_v2 & Odin_UXKG3_rooted_no_bootloaders_v2" GB roms with same results.)
These same recording/playback tests using Froyo based roms have no jerkyness, hesitation or lag due to capturing the full 30fps as advertised in the Infuse i997 specifications. (very noticable differences when comparing)
The Real Test: Record video while in Froyo based rom, flash any Gingerbread based rom, record video in gingerbread based rom then playback and compare the two videos. (this will take some time to test but for those who care enough about video recording quality it will be worth while)
You can easily see this hesitation/jerkyness while in a Gingerbread rom and the lack of hesitation/jerkyness while in Froyo roms by just starting up the camera app, switch to video camera and turning the phone in landscape mode moving slowly from left to right / right to left then speeding up little by little while looking thru viewfinder at objects on your table or desk without even starting the actual video recording.
It took me over 3 hours to conduct all these tests, I wanted to be sure that I tested the Froyo stock and custom roms and all the Rogers Gingerbread based custom roms available for Infuse i997.
These tests were all conducted in the exact same lighting conditions indoors with good lighting and using a tripod.
All recording and playback tests were made with homemade videos, not movies or other videos downloaded from the web.
It would be very interesting to find out other peoples video recording and playback results and experiences under similar conditions with these Froyo/Gingerbread based roms.
I have a strong suspicion that until the DEVS get their hands on the stock AT&T retail Gingerbread rom made for Samsung Infuse i997 we will need to choose between the stock Froyo/custom Froyo roms with excellent quality homemade video recordings and playback or the much faster Gingerbread based custom roms with all the extra bells and whistles (features and options) but lacking the video record and playback quality we have in Froyo based roms.
All the DEVS here in this Infuse 4G forum are constantly working and striving to improve these custom roms for our phones and have done and are doing an excellent and wonderful job. (thanks!)
So it’s up to each of us to choose which roms to use and how important quality video recordings and playbacks are to us.
Many people here may not use the camera in the phone much at all so video recording quality is not important to them
however for those of us who do a lot of video recording with our phone and want the very best possible quality this can
and will be of great importance.
I would really like to read other people’s opinions and comments about this.
If you are interested in seeing the technical details & results with exact framerates you might want to test
using "MediaInfo". It's excellent way to test & compare results between Froyo & Gingerbread based roms.
It's fast and easy to use. It adds mediainfo into explorer's shell options.
Other than visual inspection.. Watching the vids...have you torn apart the vids and looked for specific differences in codecs, bitrate etc?
Sent from my GT-I9000 using XDA App
Video Bitrate & Codecs
00mred00 said:
Other than visual inspection.. Watching the vids...have you torn apart the vids and looked for specific differences in codecs, bitrate etc
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
I wish I were technically oriented enough to check for specific codecs & bitrate differences but unfortunatly I am not. However I am trying to learn.
It seems to me as if not only the frame rates (just visually speaking) seems to drop to a low enough level so most anyone conducting tests like this could easily see and compare differences, but even just looking into the viewfinder without recording anything it seems like either frame rates get dropped and/or the screen is not refreshing itself as it normally does with Froyo based roms.
Right now I am using GTG's Infuse 1.5.3 which is a Froyo based custom rom, it may not be the latest and greatest of all custom roms for the Infuse i997 but since quality video recording is a must-have for me it's my first choice as of now.
It's approx. 2X faster than stock Froyo rom and has a lot of extra features and options compared to stock.
I just hope that the DEVS get the complete FULL AT&T Stock Infuse GB rom soon so perhaps it can also do quality video recordings just as good if not better than AT&T Froyo based roms.
Hopefully one of these days I will have learned enough about these things so I could make a more informed and techincal explaination to all these tests I made.
I really love photography, especially now since the Infuse is so good at video recording, just about as good as many camcorders and I always have my phone with me wherever I go.
Thanks for your comment.
Looks like u answered my question about the video recording its a Rogers rom issue I take it..I'm running a gb rom on my infuse and a froyo rom on my wife's infuse and compared the 2 cause I'm always using my camera to record my lil girls.. the froyo rom records twice as fast as gb roms..frames per second..like u I have tried all gb roms too and have had the same issue which really sucks..love the bells and whistles of gb but hate the recording so I keep going back to infused 1.5.3 froyo.but thanks for answering my question cause I was getting really frustrated with it..also I work for Att and a gb update is coming very soon..read it today on our internal stuff..
Looks Like I am NOT Alone!
Task775 said:
Looks like u answered my question about the video recording its a Rogers rom issue I take it..I'm running a gb rom on my infuse and a froyo rom on my wife's infuse and compared the 2 cause I'm always using my camera to record my lil girls.. the froyo rom records twice as fast as gb roms..frames per second..like u I have tried all gb roms too and have had the same issue which really sucks..love the bells and whistles of gb but hate the recording so I keep going back to infused 1.5.3 froyo.but thanks for answering my question cause I was getting really frustrated with it..also I work for Att and a gb update is coming very soon..read it today on our internal stuff..
Click to expand...
Click to collapse
So you are running the same rom as I am, it looks like you have done your homework about this as well as I have. (testing video recordings).
Well at least now I know that I am not the only one who has noticed this video recording issue which by the looks of it is not much of a issue for most people here in this forum. So far I have not read any posts here which mentions this video recording issue. (except yours)
I guess that most people here just do not pay much attention to the video quality which our Samsung Infuse is capable of or don't use the camera part very often to notice the differences in frame rates. (big difference)
Personally one of the main reasons for getting the Infuse 4G for me was the video recording quality it can produce.
(for the price we pay for the Infuse it better have excellent video recording quality)
I am certain that after the DEVS get their hands on a 100% stock AT&T Gingerbread rom that within a couple days more or less this video recording issue will be a thing of the past and we can move up to Gingerbread custom roms and have at least as good quality video recordings if not better than these Froyo based custom roms which we are using now.
Thanks for your comment!
There is a program was used with the EVO to show in that case (same type of suspicions) that there was actually no difference.
I will see If I can find it...
it was mmpeg something or another I believe
For reference, here's a MediaInfo dump of a video I took on June 09 (on a Froyo ROM):
Code:
General
Complete name : C:\video-2011-06-09-17-08-30.mp4
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4
File size : 249 MiB
Duration : 2mn 53s
Overall bit rate : 12.1 Mbps
Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=30
Muxing mode : Container [email protected]
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2mn 53s
Bit rate mode : Variable
Bit rate : 12.0 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Stream size : 248 MiB (99%)
Language : English
Material_Duration : 173098
Material_StreamSize : 260103689
Material_FrameCount : 5201
Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2mn 52s
Bit rate mode : Variable
Bit rate : 60.3 Kbps
Maximum bit rate : 68.9 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 16.0 KHz
Compression mode : Lossy
Stream size : 1.24 MiB (0%)
Language : English
Material_Duration : 172900
Material_StreamSize : 1295557
Although it's not specified in the container, the video plays at 30 frames per second.
Infuse 4G Video Recording
00mred00 said:
There is a program was used with the EVO to show in that case (same type of suspicions) that there was actually no difference.
I will see If I can find it...
it was mmpeg something or another I believe
Click to expand...
Click to collapse
Well you just about made my point, I am writing about homemade recordings, and the format the camera uses for video recording is NOT MPG.
Our cameras record video in 3GP video format.
I know that there is nothing wrong with the playback of avi/mpg/mpeg4/mkv/divx formats. The playback using those formats are excellent, but those are not the formats our phones use to record homemade videos.
When we download or watch videos or movies from internet and different sources like YouTube or if we encode DVDs and play them on our phones they all play perfectly well with close to 30 FPS.
It's just like I said in the original posting, the HOMEMADE videos which we record on our phones are not up to par at all if we use the current Gingerbread based roms.
With Froyo based roms these Homemade videos are just about as as good as watching HD movies on TV. (sometimes better).
Make the test yourself. I have Avatar the full movie (AVI format) on my external sdcard and it plays 100% perfect on either Gingerbread or Froyo based roms. (but its not a homemade video recorded on the phone)...
Have you guys tried comparing the videos on a computer instead of just playing them back on the phone? Maybe the issue is with video playback only and not with the actual recording.
Oops, this post was in error...
Also a mediainfo dump from a gingerbread recording could be helpful.
MediaInfo Dumps
gtg465x said:
Also a mediainfo dump from a gingerbread recording could be helpful.
Click to expand...
Click to collapse
Ok below is a mediainfo dump from your Infuse 2.1.0 custom GB rom.
------------------------------------------------------------------------------
General
Complete name : 1.mp4
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4
File size : 12.9 MiB
Duration : 1mn 0s
Overall bit rate : 1 796 Kbps
Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=30
Muxing mode : Container [email protected]
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1mn 0s
Bit rate mode : Variable
Bit rate : 1 732 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 3:2
Frame rate mode : Variable
Frame rate : 14.990 fps
Minimum frame rate : 5.181 fps
Maximum frame rate : 15.625 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.334
Stream size : 12.4 MiB (96%)
Language : English
Material_Duration : 60174
Material_StreamSize : 13026738
Material_FrameCount : 901
Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1mn 0s
Bit rate mode : Variable
Bit rate : 61.2 Kbps
Maximum bit rate : 70.0 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 16.0 KHz
Compression mode : Lossy
Stream size : 448 KiB (3%)
Language : English
Material_Duration : 60255
Material_StreamSize : 459307
------------------------------------------------------------------------------------------
Below is a mediainfo dump from your Infuse 1.5.3 custom Froyo rom.
-------------------------------------------------------------------------------
General
Complete name : 2.mp4
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4
File size : 13.0 MiB
Duration : 31s 184ms
Overall bit rate : 3 505 Kbps
Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=30
Muxing mode : Container [email protected]
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 31s 184ms
Bit rate mode : Variable
Bit rate : 3 440 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 3:2
Frame rate mode : Variable
Frame rate : 29.919 fps
Minimum frame rate : 25.641 fps
Maximum frame rate : 33.333 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.333
Stream size : 12.8 MiB (98%)
Language : English
Material_Duration : 31217
Material_StreamSize : 13407780
Material_FrameCount : 933
Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 31s 70ms
Bit rate mode : Variable
Bit rate : 60.4 Kbps
Maximum bit rate : 70.1 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 16.0 KHz
Compression mode : Lossy
Stream size : 228 KiB (2%)
Language : English
Material_Duration : 31135
Material_StreamSize : 234157
--------------------------------------------------------------
As you can see, its a big difference, I am really surprised that I have not yet seen anyone writing anything about this.
(unless I missed something)
It's not just your custom roms, its ALL the Rogers based custom GB roms which I tested for hours today, (even the CM7 has the same problem) then I tested Froyo stock/Froyo custom and saw a world of difference even without checking it out in mediainfo.
Hope this helps! (looking forward to a custom GB rom which has 25-29fps)
Have a great day and keep up the good work with all the custom roms.
Comparing videos on computer
gtg465x said:
Have you guys tried comparing the videos on a computer instead of just playing them back on the phone? Maybe the issue is with video playback only and not with the actual recording.
Click to expand...
Click to collapse
I have tried that too gtg, I even copied 4-5 different homemade videos which was recorded on GB based custom rom from phone to computer and they all have the same flaw (dropping 1/2 the frames).
I did the same thing with homemade video recorded when on a Froyo based custom rom and the results were nothing short of stunning. BIG difference.
If you make a homemade video recording of a person sitting on a chair and basically not moving around much or moving very slowly except for talking
then it may be a bit more diffiult to test and compare.
I found the best way to conduct recording tests is to have the subject walk back and forth left to right of the camera 5-6 times approx. 6-8 ft from the camera in at least average lighting and while holding the camera real still.
(tripod is best)
Another good test is if you can PAN the camera left to right / right to left slowly and gradually picking up speed as you view small objects on a desk or table.
I have about 6 full length movies on my phone and all play flawlessly. (GB or Froyo)
Even the playback on GB custom roms play back flawlessly if using homemade videos recorded with Froyo rom installed. So the playback is not the problem at all. (my adult videos play flawlessly too )
Thanks for making the text color the same as the background...
Sent from my SGH-I997
Misterjunky said:
Well you just about made my point, I am writing about homemade recordings, and the format the camera uses for video recording is NOT MPG.
Our cameras record video in 3GP video format.
I know that there is nothing wrong with the playback of avi/mpg/mpeg4/mkv/divx formats. The playback using those formats are excellent, but those are not the formats our phones use to record homemade videos.
When we download or watch videos or movies from internet and different sources like YouTube or if we encode DVDs and play them on our phones they all play perfectly well with close to 30 FPS.
It's just like I said in the original posting, the HOMEMADE videos which we record on our phones are not up to par at all if we use the current Gingerbread based roms.
With Froyo based roms these Homemade videos are just about as as good as watching HD movies on TV. (sometimes better).
Make the test yourself. I have Avatar the full movie (AVI format) on my external sdcard and it plays 100% perfect on either Gingerbread or Froyo based roms. (but its not a homemade video recorded on the phone)...
Click to expand...
Click to collapse
haha...I made no reference to what we were recording in...the name of the program we used to get the media dump was mpg something another
Mediainfo
00mred00 said:
haha...I made no reference to what we were recording in...the name of the program we used to get the media dump was mpg something another
Click to expand...
Click to collapse
If you want a media dump here is what most others are using.
"Mediainfo" here is the link just incase you want to try it out:
http://surfnet.dl.sourceforge.net/p.../0.7.48/MediaInfo_GUI_0.7.48_Windows_i386.exe
Its excellent, fast and easy to use.. It adds mediainfo into explorer's shell commands.
Misterjunky said:
If you want a media dump here is what most others are using.
"Mediainfo" here is the link just incase you want to try it out:
http://surfnet.dl.sourceforge.net/p.../0.7.48/MediaInfo_GUI_0.7.48_Windows_i386.exe
Its excellent, fast and easy to use.. It adds mediainfo into explorer's shell commands.
Click to expand...
Click to collapse
I will check it out! need to find the 64 bit version though
I'm looking into the issue. Hopefully it can be fixed by editing mediaprofiles.xml, but I'm suspecting it might be a kernel issue, or even worse, an issue in one of the libs. It's clear that the Gingerbread firware shipping on Rogers Infuses was not ready for prime time. Hopefully the AT&T Gingerbread release doesn't have all of these problems.
Thanks for sharing your research and findings Misterjunky. I shot video* last week on vacation and was thinking "I don't remember that jerkiness??".
Now I know what to do to resolve (v1.5.3)...since I'm going backpacking for 6 days post Labor day and desire the excellent video capabilities of my Infuse 4G (I carry extra, cheap ebay batteries which seem to work very well).
*Currrent Infused V2...soon to be V1.5.3 (time to do some reading on how to go backwards...I'll figure it out, if nothing else I can return to stock then upgrade from there...I know how to do that ).
thanks again
re: video recording issue
gtg465x said:
I'm looking into the issue. Hopefully it can be fixed by editing mediaprofiles.xml, but I'm suspecting it might be a kernel issue, or even worse, an issue in one of the libs. It's clear that the Gingerbread firware shipping on Rogers Infuses was not ready for prime time. Hopefully the AT&T Gingerbread release doesn't have all of these problems.
Click to expand...
Click to collapse
Here is an idea which may be helpful to you before you start digging into the problem.
Why not ask someone who purchased a Rogers Samsung Infuse i997 which was shipped
with Gingerbread rom from the factory and and ask them to do a mediainfo dump to see
if the 100% stock retail Rogers i997 also has this issue with video recording.
It might be a good place to start.

[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

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

I dare you developers to find solution for this issue

Hi Guys ...
i'm trying to disable noise cancelation feature from my phone , i did try to find the solution but no hope , is it that hard to do? I want to upgrade to android 11 but all the custom ros that i tried before are not coming with the stero audio recording , there is only one rom with only one build havoc os 14 oct 2019 this is the only build that support stereo audio recording.
Can anyone help me hox to modify audio_platform_info.xml
What exactly should i change inside of it

Categories

Resources