Jump to content

Horrible audio on video recording


Recommended Posts

Guest fpbasilio
Posted (edited)

I tried recording a live concert using my liquid a1 running lcrf 2.0

video was great but the audio was horrible. lots of craking and static sounds. totally unusable

also, recording a video of a person speaking turns out like the person has a cold. :huh:

any comments? or fix?

Edit: Trying out the lgcamera app from market for better audio. see latest posts

Edited by fpbasilio
Posted

I had a phone before which had a nice camcorder but an awful sound, after an update the sound got better, so yeah I guess it can be improved but I don't know how :huh:

Guest fpbasilio
Posted
I had a phone before which had a nice camcorder but an awful sound, after an update the sound got better, so yeah I guess it can be improved but I don't know how :huh:

What phone was that? I guess it won't be happening with the liquid though

Guest JF-Gino ld
Posted

If you want to improve both your video and sound quality, there is an app on the market called LGCamera (there is a free version as well). It allows you to select what kind of audio codec to use and eve the video resolution and framerate.

I experimented with all the settings and found the following settings in video to work the best with the Acer liquid E :

Video Resolution - 800 x 448 (16:9)

Video encoder - MPEG4

Video file format - MPEG4

Video bitrate 5mbit

Video Framerate - 30fps

Audio Encoder - ACC

Sample Rate - 48000

Bitrate - 12800

These settings give you higher then D1 resolution video quality with CD quality sound.

Hope this helps with your quality issues.

I just wish someone knew how to stop the camera from decreasing the framerate of the video when the scene is darker.

The framerate in good light is 25fps average, but as soon as it gets darker the camera knocks it down to 6fps to lighten up the image.

Please, if there is anyone out there who knows how to fix this, It would be much appreciated :huh:

Guest studjuice
Posted

the lgcamera app does give good video at 800x448, but I was unable to get any kind of decent sound out of it. it would sound bad for a second, then turn into complete garbled s***, or silence, after that first second. and 48000 is the only sample rate that even let's the video record, all others say failed to record

wish we could just get the 800x448 added as a resolution to replace the 720p, and then get the sound quality improved with the stand/or metal camera app.

Guest jayziac
Posted

It may be hardware limited. In dark settings, the CMOS image sensor isn't sensitive enough to let in light, so it has to keep absorbing it longer than the 1/25sec rate, otherwise the pictures would be underexposed (too dark), but there should a way to force it and then brighten it digitally, which generally creates noisy pixels. that may be something that is deep in the Android driver code though.

Guest JF-Gino ld
Posted

hey jayziac, that makes allot of sense.

I figured it was probably related to the firmware of the camera module itself. Kinda sux that this sensor needs this as compensation for low sensitivity & not having a video light. I hope that there is a way to force it by porting a compatible camera driver. Thanx.

Guest fpbasilio
Posted

i tried the lg camera app, but when i try to record video with your settings,

it completes the record but when i try to play the files, it doesnt play anything and the time bar shows a longer time than what i actually recorded

tried other settings but same result except when i dont use aac, the videos play ok

Guest JF-Gino ld
Posted

Hmm, this seems unusual. I have no issues with the sound at 48khz. My phone plays it back perfectly and VLC player in XP plays the file perfectly.

If I use media player to play back the file I get garbled audio that lasts a few seconds as the rest of the video plays - but thats a PC codec issue. If you have a proper ACC decoder installed on ur PC, it should play.

If your phone itself is also not playing the file then Im assuming that the firmware your on does not have the right codecs either? Not sure if thats possible BUT I suggest that you might want to try installing the Liquid Metal Camera.apk App and try it.

I think that is what made this possible for me :

http://android.modaco.com/content/acer-liq...or-lcr-f-1-x-x/

Let me know if it is working after that. If it does not, Im thinking I might have to post a video...

Guest fpbasilio
Posted

I'm using lcr-f 2. 0 which has the metal camera by default. Not the new one in the link you gave though. Havent tried it since I'm getting an invalid dload link...

I tried disabling the "new audio codec" tweak in lcr settings and I was able to record and play the video with your settings although it dint record any sound and it still shows a longer time duration than what I actually recorded. When I enable the "new audio codec" setting again, then the video does not play again.

Which Rom are you using BTW?

Guest JF-Gino ld
Posted

Im on stock 4.004.04.

I wish I knew more about Android, Im kinda new to it - Im just starting to look into the acer bins.

I do have some Linux background and I use to cook Firmware for Symbian. Im currently looking at the Codecs in system\lib\

and am wondering if changing them is possible. libOMX.TI.Acc.encode.so Etc.... Ill try to swap it out for different one and see what happens.

Guest fpbasilio
Posted
Im on stock 4.004.04.

I wish I knew more about Android, Im kinda new to it - Im just starting to look into the acer bins.

I do have some Linux background and I use to cook Firmware for Symbian. Im currently looking at the Codecs in system\lib\

and am wondering if changing them is possible. libOMX.TI.Acc.encode.so Etc.... Ill try to swap it out for different one and see what happens.

..So i finally was able to record videos with audio , heres what i did, I flashed the original audio lib from from this post:

http://android.modaco.com/index.php?s=&amp...t&p=1580477

then i disabled the new audio codecs option on lcr settings.

i was then able to record the vids using your settings. now, the problem is, if i record a video of about 1minute and up, halfway through the video playing, the sound disappears! i tried copying the videos to my pc and when i play it there, the audio is playing faster than actual (sounds like its in fast forward.)

im planning to try out a different rom and see if it turns out the same.maybe the t&l rom.

im using an liquid A1 with 256mb ram by the way. could it be a memory issue?

Guest JF-Gino ld
Posted (edited)

No memory issue - should not matter which phone so Im not sure why the audio cuts after 1min.. I just tried a 3min video and its all good here.

I found out the reason why this is such a big problem....

If you look at the properties of the aac audio on a computer will say its decoding at 192kbs stereo BUT the recording is 128kbs mono.

Media info says its 512kbs mono. Therefore the audio/video codec header is giving either no or wrong information. (playing back like fast forward)

This is probably because the LGcamera program is forcing AAC audio into the video container (no header info or incorrect info)

The built in player on the phone decodes the streams properly because they where encoded with the same codec.

To get around this on ur pc, you need to change the FFshow audio and video filters for aac and mp4 decode (force another decoder codec dll)

OR, you can use a video editor or converter to convert the video to another format......

Maybe there is someone here who knows more about this or the Android codecs and can possibly give cus a solution or 'fix'

PS - would like to fix the auto framerate/shutter issue in low light.

Edited by JF-Gino ld
Guest fpbasilio
Posted
No memory issue - should not matter which phone so Im not sure why the audio cuts after 1min.. I just tried a 3min video and its all good here.

I found out the reason why this is such a big problem....

If you look at the properties of the aac audio on a computer will say its decoding at 192kbs stereo BUT the recording is 128kbs mono.

Media info says its 512kbs mono. Therefore the audio/video codec header is giving either no or wrong information. (playing back like fast forward)

This is probably because the LGcamera program is forcing AAC audio into the video container (no header info or incorrect info)

The built in player on the phone decodes the streams properly because they where encoded with the same codec.

To get around this on ur pc, you need to change the FFshow audio and video filters for aac and mp4 decode (force another decoder codec dll)

OR, you can use a video editor or converter to convert the video to another format......

Maybe there is someone here who knows more about this or the Android codecs and can possibly give cus a solution or 'fix'

PS - would like to fix the auto framerate/shutter issue in low light.

thanks for all the help and fast replies... i just flashed to stock 2.2 rom (4.002.14) and see how it goes then later will try with t&l rom.il try to figure it out .. thanks man.. another thing, im using the lgcamera free version on the market and saw theres a paid version. and i cant seem to find the difference. could the free version causing the 1minute audio cuts? (just a wild guess)

Guest JF-Gino ld
Posted (edited)

No problem at all :( - I also do not see any difference between the paid and free as well.

Ill try downloading the free version and experiment, maybe try to record as long as I can and see what happens.

BTW, Im taking the dump from the Acer Iconia Smart A5, took all the related Codecs and the Camera app and am

in the process of learning how to make an update package and sign it. Maybe Ill have some luck porting that camera app.

Could also be nice if I get new codecs without breaking anything else :(

Ill let you knw how this goes - remember, Im new to this, just started w/ android a few days ago...

Edited by JF-Gino ld
Guest fpbasilio
Posted

Ok, I did a few tests, and heres what hapened:

flashed stock 4.002.14, installed lgcamera app, recorded a video.

1. played on default player: the video and audio plays ok.

2. played on qqplayer app from market(using its own codec): the video plays ok, the audio plays in fast forward and gets done before video finishes.(i guess thats the reason why i thought before that it was getting cut in the middle of the video.it was actually playing faster than the vid.

3. copied video to pc. same result as number two. video ok, audio in fast forward.

flashed t&l rom over stock 4.002.14, installed lgcamera app, recorded a video

1. played on default player: the video plays in slow mo, and audio plays ok.

2. played on qqplayer app from market(using its own codec): the video plays ok, the audio plays in fast forward

3. copied video to pc. same result as number two. video ok, audio in fast forward.

i dont know what to make of this though.. :(

JF-Gino ld, can you confirm if videos you recorded play ok on both the liquid and the pc? thanks

...good luck on your Acer Iconia Smart A5 project btw

Guest JF-Gino ld
Posted
Ok, I did a few tests, and heres what hapened:

flashed stock 4.002.14, installed lgcamera app, recorded a video.

1. played on default player: the video and audio plays ok.

2. played on qqplayer app from market(using its own codec): the video plays ok, the audio plays in fast forward and gets done before video finishes.(i guess thats the reason why i thought before that it was getting cut in the middle of the video.it was actually playing faster than the vid.

3. copied video to pc. same result as number two. video ok, audio in fast forward.

flashed t&l rom over stock 4.002.14, installed lgcamera app, recorded a video

1. played on default player: the video plays in slow mo, and audio plays ok.

2. played on qqplayer app from market(using its own codec): the video plays ok, the audio plays in fast forward

3. copied video to pc. same result as number two. video ok, audio in fast forward.

i dont know what to make of this though.. :(

JF-Gino ld, can you confirm if videos you recorded play ok on both the liquid and the pc? thanks

...good luck on your Acer Iconia Smart A5 project btw

Yes both are playable. My pc however is a nle video workstation so that accounts for my abillity to play back.

I'm pretty sure now that I'm able tp port that camera. I just have to trial and error out the codecs that are causing problems.

I'm having problems making a flashable zip package. Its harder then it seems. No problems with the signing part.

Guest fpbasilio
Posted
Yes both are playable. My pc however is a nle video workstation so that accounts for my abillity to play back.

I'm pretty sure now that I'm able tp port that camera. I just have to trial and error out the codecs that are causing problems.

I'm having problems making a flashable zip package. Its harder then it seems. No problems with the signing part.

Great! I will look forward to that. Hopefully il have better luck with that than the lgcamera app. Hope to be able to record hd video with decent audio soon. :-) thanks

Guest Dario93
Posted
No problem at all :( - I also do not see any difference between the paid and free as well.

Ill try downloading the free version and experiment, maybe try to record as long as I can and see what happens.

BTW, Im taking the dump from the Acer Iconia Smart A5, took all the related Codecs and the Camera app and am

in the process of learning how to make an update package and sign it. Maybe Ill have some luck porting that camera app.

Could also be nice if I get new codecs without breaking anything else :)

Ill let you knw how this goes - remember, Im new to this, just started w/ android a few days ago...

Great! If you need help, I'll be happy to help you :(

Guest JF-Gino ld
Posted (edited)
Great! If you need help, I'll be happy to help you :(

Perfect! Thanks for the offer, Im actually having problems making updater scripts for the update package.

(I have 2 parts - the camera, and an updated driver/codec package with all the lib*.so files)

Im still testing everything out so Im manual pushing everything to the phone to do this.

Ill post my attempts as soon as I get the camera working. If not, Ill post everything I have done

so you can take a look and see what Im doing wrong.

APKTool stuff is complicated.....

I might have the wrong AndroidManifest.xml

I am also getting either "The Application (process com.android.camera) has stopped unexpectedly"

or a "Parsing Problem" and sometimes the camera icons are replaced with black squares with diamonds?

The app is also designed for a different resolution 1024 x 460? This might also be causing a prob.

Might need to rewrite the layout.... maybe this is tougher than I thought!

If anything, maybe I will just forget the camera and look at the codecs instead.

Thanks Dario93, Ill keep u posted.

Edited by JF-Gino ld
Guest JF-Gino ld
Posted

OK, Im a little embarrassed here but I was wondering if anyone can help me out here :

I want to make an update.zip (whatever) file and Im having problems here....

\META-INF\com\google\android (where my scrip is)

and

\system\lib (where all my codecs are) eg - libOmxAacEnc.so, libaudio.so, Etc etc and etc...

So, I want to copy all my codecs from lib and this is what Im putting in my scripts :

show_progress 0.1 0

copy_dir PACKAGE:system SYSTEM:

show_progress 0.1 10

or

assert compatible_with("0.2") == "true"

show_progress 0.1 0

copy_dir PACKAGE:system SYSTEM:

set_perm_recursive 0 0 0755 0644 SYSTEM:lib

show_progress 0.1 10

I keep getting a syntax error in my scripts...... what am I doing wrong?

I hate being new to this. I spent hours last night trying this crap out even with a list of script commands.

Anywho, this script seems to 'only' work (I think) when installing APK files from recovery, not individual files....

show_progress 0.1 0

copy_dir PACKAGE:system SYSTEM:

Can anyone point me in the right direction?

Thanks in advance.

PS - looking thru framework-res.apk and still working on the camera....

Guest markII
Posted
\META-INF\com\google\android (where my scrip is)

and

\system\lib (where all my codecs are) eg - libOmxAacEnc.so, libaudio.so, Etc etc and etc...

So, I want to copy all my codecs from lib and this is what Im putting in my scripts :

show_progress 0.1 0

copy_dir PACKAGE:system SYSTEM:

show_progress 0.1 10

Re-try this, might be your text editor that corrupts your script or take un update like last truecolor's and replace his folder system with yours

Guest JF-Gino ld
Posted
Re-try this, might be your text editor that corrupts your script or take un update like last truecolor's and replace his folder system with yours

Thanks for the reply,

Still does not work - "Syntax error in update script" - "Installation aborted. - Unmount FS in main menu & retry"

I even tried to make the script in Linux - so my windows notepad did not corrupt it. I also tried notepad++.

If I use someone elses script, my phone does not boot.

BUT if I do anything thru adb everything works fine. I must be missing a simple step somewhere.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.