So I've rooted and learned how to muck around with pulling/pushing/rming files from the system. My current goal is to replace the godawful shutter sound in the stock Camera app for Froyo. I've done the basic part just fine, but ran into a strange problem. So far, I've:
1) Pulled the original camera_click.ogg to my SDK Tools folder
2) RMed the original file from /system/media/audio/ui/
3) Pushed my own custom file (also named camera_click.ogg) back into that folder
After rebooting, my custom shutter sound plays beautifully... and then my Camera app freezes up. Although the pictures are being saved to my SD Card, the app doesn't "refresh" itself to let me snap another photo. Some of the onscreen controls animate when I press them, but nothing happens.
If I replace my custom camera_click.ogg with the original camera_click.ogg and reboot, everything goes back to normal (thank goodness).
I'm just wondering if anyone else out there has had any success with replacing the stock shutter sound, or if what I'm observing is pretty common. In either case, any ideas how I can get around it?
<3 <3
If it helps, some attachments!
Oops. I meant to attach the custom sound file I was working with, but can't seem to figure out how to edit an attachment into my original post. Sorry!
Three attachments:
1) Original, unmodified, stock shutter sound ("camera_click.ogg")
2) wav file for the new sound I'd like to use instead. Yes, it's the iPhone shutter sound. Don't judge me :] ("iPhoneShutter.wav")
3) wav file re-encoded as an ogg file. Will need to be renamed when pushing back into /system/media/audio/ui/ ("camera_clickNEW.ogg")
Shutter sound
I tried your file and had the same result, so i took your original wave and converted it. This one hasn't given me any issues.
View attachment camera_click.zip
dosn't work for me
Please help me!!
I switched to rom cognition 1.31 and since the camera's sound effect disappears and it's important to me
How To enable Camera Sounds on Samsung Galaxy S II??
i need help please
Related
I really hate the sound the camera makes when taking pics in CM6. I would prefer just a "click" or camera shutter type sound, not the loud beep it makes now. I know I can mute the sound on the phone, but I don't necessarily want no sound, just a different one.
I tried moving the camera ogg (whatever the actual name is) from the UI folder, rebooted, took a pic and the sound was still there. Then I noticed something interesting, the one I moved isn't even the same sound But I don't mind that one...so is there any way to make that one my camera sound? And where is the sound file that is playing when I take a pic if it's not the one I moved from the UI folder? I am running CM6 with DarkMod if that has any effect on anything...
The file you're looking for should be in /system/media/auido/ui/ called camera_click.ogg or something similar.
You said you removed that though?
kyouko said:
The file you're looking for should be in /system/media/auido/ui/ called camera_click.ogg or something similar.
You said you removed that though?
Click to expand...
Click to collapse
Yup. Well, I moved it completely out of the UI folder onto the SD card, then rebooted, snapped a pic and it was the same sound, but the camera_click.ogg and the actual sound are not even the same when the file is in place. I am confused...
ranger61878 said:
I would prefer just a "click" or camera shutter type sound, not the loud beep it makes now.
Click to expand...
Click to collapse
Ahh didn't notice this before, are you referring to a noise that sounds like the volume rocker up/down noise? The beep you hear is the auto focus, you can either turn auto focus off or turn focus to touch to get rid of it, otherwise I believe that beep is generated by the camera app itself, if I have time I'll take a look at it.
Edit
You can see it here on Github. Do a text search (ctrl+f) for "tonegenerator" and you'll see where it initiates - focusing.
Should be a relatively simple edit for those of us who know how to compile from git or smali edit. I'd do it if I had the time to, but unfortunately as of right now I have wayyy too much do deal with :/
Brilliant! That's what it was. Switched to touch focus and the annoying loud beep sound is gone. Thanks.
Sent from my FroYoed Sprint Hero
My system is 2.2.( v12 )
The camera shutter sound to delete.
Deletion of the system / media / audio / UI / camera_click.ogg cannot delete.
How can get rid of the camera shutter sound.
I haven't tried this on an X8 yet, but it should work:
1. Use an audiorecorder (the built in audiorecorder from Windows should do it) and record 1 second of silence.
2. Convert the audio file to ogg and name it camera_click.ogg.
3. Put it on your sdcard.
4. Use root explorer and overwrite the default camera_click.ogg with the new one you created.
@502281994: Did you remount the system to r/w?
It's better to replace the sound with something silent as Guhrasoh said because if you delete it, when the system wants to play the sound after you take a picture, it will not find it and that may result in system instability. Do it the Guhrasoh way
Oh,I don't want to delete the sound,so I don't know this better way
Thanks for let me take a lesson
that short beep when you press the camera button to tak e a picture before the shutter sound? I went into the media/audio/ui folder but I see no sound file to rename/delete for that phone sound. Does anyone know where I can find it?
thanks!!!
rename/delete all starting with cam that would fix it i guess not sure
Nope, there is no CAM files now. My phone is rooted and I deleted the shutter files for good. There doesnt seem to be any files listed regarding that sound
Hi,
I'm unrooted, stock V10h.
After noticing that the stock camera photos are very compressed (8MP photos never go above 3MBs) with no option to change that, I installed Camera Zoom FX. All seemed good, but then on a sunny day after taking *lots* of photos, noticed I couldn't view some of them on the phone, although thumbnails were there. Came home, transferred to PC, opened and noticed that the ones the phone couldn't display were corrupted. All of them, had a gray bar at the bottom, some more, some less. Obviously the compressed jpg stream was broken after some point.
Thought it was Camera Zoom FX's problem, because this never happened with the native camera app. Uninstalled.
Still wanting better quality, installed Camera ICS. Great too. But same problem too (on some photos again).
Went on to install Camera MX. Same.
Finally narrowed it down to this:
if resulting photo is > 5MB (more precise: if > 5130 KB) then it's corrupted
(and that's why the native camera doesn't have this problem: there's no way to choose better JPG quality for it to make 5MB photos).
I thought: memory speed problem. But then again, the photos were saved in the phone internal memory. Internal memory is not supposed to have speed problems. Anyway, I tried saving to Class 6 and Class 10 SD card, and the results were the same.
Anyone know about this?
Also, please report if your >5MB pictures are fine (in case you shoot at that quality), and what app you use to take them.
Note: the problem seems to be there with jpg photos in general, irrespective of device. Here's a link of someone experiencing the same photo corruption on a normal camera (Casio EX-F1). The problem with my photos is exactly as in the photo he posts a bit later in the thread.
Ok noone seems to know anything about it.
Could someone at least please report if you can get photos equal to or above 5Mb in size, whatever camera app you are using and whether the photos are ok?
(to get that quality, you must select 8 megapixels and then the highest quality in some other setting. For example camera zoom fx and camera mx have a percentage slider (set it to 100), while camera ICS names the quality (select ultra). Also a steady shot and lots of light is needed for the pictures to go up to 5Mb even in these settings.)
EPa said:
Ok noone seems to know anything about it.
Could someone at least please report if you can get photos equal to or above 5Mb in size, whatever camera app you are using and whether the photos are ok?
(to get that quality, you must select 8 megapixels and then the highest quality in some other setting. For example camera zoom fx and camera mx have a percentage slider (set it to 100), while camera ICS names the quality (select ultra). Also a steady shot and lots of light is needed for the pictures to go up to 5Mb even in these settings.)
Click to expand...
Click to collapse
Just tested with Camera ICS.... Same issue as you. Photo was 5,266,434.00 bytes.
Using V10h Euro Open.
i had the same issue on deodexed ICS i had a week after purchase, and after i installed this mod:
http://forum.xda-developers.com/showthread.php?t=1855818
i tought the mod broke my camera, but i guess it was this bug/limit.
Thank you both for reporting. At least now we know it's an (LG implementation?) android bug.
Really annoying to me, as I would like to use the camera's full potential. Hope this gets fixed in the upcoming JB for 4X.
(although in order for something to be fixed, LG would have to know. And this problem surely hasn't received attention since it seems I am the first one to bring it up).
It would be interesting to see what would happen if someone with v20a tested this.
Yes indeed.
On another note, I also checked GeoCam and sometimes it gives an error (not enough memory or something). The photos that it saves with no problem are maximum < 5 Mb, so I assume it is the same problem. But this app demonstrates that there is a way for the programmer to know that during saving the photo something did not go as expected.
Where exactly the bug lies, is another matter.
EPa said:
Yes indeed.
On another note, I also checked GeoCam and sometimes it gives an error (not enough memory or something). The photos that it saves with no problem are maximum < 5 Mb, so I assume it is the same problem. But this app demonstrates that there is a way for the programmer to know that during saving the photo something did not go as expected.
Where exactly the bug lies, is another matter.
Click to expand...
Click to collapse
i might try the mod in official 4.1 when it's out and someone releases a deodexed version, just to check if it works on JB.
this is quite a strange problem we have on our hands, i did some search on google, and haven't found many similar problems.
Flying_Bear said:
i might try the mod in official 4.1 when it's out and someone releases a deodexed version, just to check if it works on JB.
Click to expand...
Click to collapse
I too am anxiously waiting for the official 4.1 and was hoping that it would not have this problem.. just wishful thinking..
i already know it a long time ago, and i asked about this at the camera MOD thread by ksekhar http://forum.xda-developers.com/showthread.php?t=1855818. but no one seems to bother
iceddeath said:
Ale-xs said:
Hello ksekhar. I found a problem in the LG firmware, it appears in your mod too.
In third-party programs (ICS camera+) and in your camera mod of the compression quality jpeg minimum, maximum file size.
In some conditions, such as the leaves in the sun, the size of the file begins to exceed 5 megabytes. Then the problems start.
This file is written to the error (broken jpeg file). I've been thinking why this is so and finally got it.
In your version, you just increase the compression quality to any situation the file size is not more than 4-5 MB.
Also, if you is not difficult, please do me a version (as we did earlier) which fixes only compression jpeg,
but the quality of compression should be a cross between the standard version and your version.
Or tell me how I myself can change the quality of compression.
For example (like photoshop - compression level from 0 to 12)
Original LG camera - compression 9
Your mod - compression 12
The required - compression 10.
Link to example of broken jpeg file: http://narod.ru/disk/61445464001.4b4c982386ce7c47b2214e33a90a25aa/bug_IMG_20120923_124127.jpg.html
Click to expand...
Click to collapse
i have this problem too
when photo taken exceeds 5MB.. it is broken...and it happened too often. any solutions?
Click to expand...
Click to collapse
Ok, that's bad...
For now, I check whether the thumbnail of the just taken photo appears correctly (inside the photo application). If not, it's a sign the photo has exceeded 5 mb. Then I go to settings, reduce the quality, reshoot.
Or, one can use Camera MX and set the quality slider to 90-95. Then the photos are better than stock camera, and they don't exceed 5 mb.
Since noone cares for this problem I can only hope the new firmware automagically hasn't got this problem. If it does.. we'll see then...
Bad news... Just updated to official V20a, and the same issue persists. a 5.02mb JPEG resulted in an image which was half ok, half greyed out and corrupt.
Only hope now a mod, or a custom ROM..
Ok, is there a way mother LG can be notified about this? (and don't tell me phone support in my country, they can only handle basic stuff. They won't understand what I'm talking about and respond like "use the official camera application"...)
Insomniac535 said:
Bad news... Just updated to official V20a, and the same issue persists. a 5.02mb JPEG resulted in an image which was half ok, half greyed out and corrupt.
Click to expand...
Click to collapse
thanks for the info.
yeah, my country doesn't even have proper support for LG devices. we could try mailing them?
I just noticed this problem yesterday. Is there any fix for this?
lm007 said:
I just noticed this problem yesterday. Is there any fix for this?
Click to expand...
Click to collapse
Not that I know of.
i have no idea why, but yesterday i took some pictures with my 4x (with the stock lg camera app!).
the most pictures had around 1,5-2,5mb , one hat 4,7mb and one 5,05..
the ->5mb pic is corrupt..
never saw this error on stock, im using stock camera app on my CM
Anyway, i reported this bug to CM on the 4X forum, lets see if they can help. would good if more people confirmed this bug on CM forum..
I have a little experience about this bug.
Last time I flashed google's camera 4.2 with photosphere, camera.tegra.so and libnvmm_camera.so (modded to disable denoise filter) and stock camera. The result was that wherever camera I used (stock, cm, google's) the pic were corrupted (taking photos in dark). Just few of them were OK.
Here are modded .so files - works with CM10.1 (made by me, if you want i can made thread for them):
http://db.tt/2Lfxuehq - camera.tegra.so pasted to /system/lib/hw
http://db.tt/LXdwvJUZ - libnvmm_camera.so pasted to /system/lib
Sth more I will say when I come from holidays.
Since there was no fix, provided by Realme, for the quality of the audio in videos recorded with the stock camera app, and unlocking the bootloader is still not available for the RMX3311 (EU) the only way to improve the audio was to modify another camera app, without loosing stock camera features, like 60fps, stabilization, etc.
So, I've decompiled and modified the GCam port from SHAMIM (SGCAM) and changed the audio source from "Camcorder" to "Voice recognition" (see https://developer.android.com/reference/android/media/MediaRecorder.AudioSource), is not perfect but much better than stock.
I've also included the configuration xml for SGCAM 8.4 with basic settings for Realme GT2 so the quality of photos and videos be similar to the stock camera.
Working (after importing my config xml) :
- Back (main) camera: FHD videos 30/ 60fps, 4k 30fps, image quality equal to stock camera
- Improved sound quality in video recordings for front and back camera
- Front camera 60fps
Not working:
- Slow motion (works partially)
- Aux cameras (wide and macro)
- HDR+ or HDR+Enhanced if activated the colors are bad, inaccurate, too artificial. Can be improved but I personally like the results without hdr+, so I don't care to make them work.
I've created two builds because the recorded audio channels are reversed, (android 13, fw c.06), you can check using stock sound recorder, if you speak to top mic the sound plays on bottom speaker, mono for current situation (with reversed channels) and stereo for when (if) they will fix the channels order.
Install instructions:
1. Download the modified SGCAM from here:
mono: https://uploadnow.io/f/G4Ctrh7
or
stereo:
https://uploadnow.io/f/lJBRS1t
2. Download the Realme GT2 config file for SGCAM 8.4: Lcfg1.xml (attached to this post)
3. Install SGCAM, open once, allow permissions, (needed to create folders for configs)
4. Copy Lcfg1.xml to [phone internal storage]/SGCAM/XML/Lcfg1.xml
5. Import Lcfg1.xml by double tapping the blank space between shutter button and switch camera button (see the attached screenshot)
6. Leave a message if it helped you
reserved
Will test, nice work. Still angry at Realme for crippling the device like this.
This is sooooooooooo much better
In case if someone wonders, there is a xml for the GT 2 Pro, which the ultrawide camera works with, and it also works on our GT 2, but the picture quality is very low and noisy.
https://forum.xda-developers.com/t/gcam-for-realme-gt2-pro.4429173/post-87701663
It is in the attachments.
@hdavid1 For the aux cameras (wide and macro) to work you need GCAM, with package name com.ss.android.ugc.aweme But those have an issue, the photos taken with the main camera are shifted to the right (they have a black border on the left) - tested only on my GT2.
hdavid1 said:
In case if someone wonders, there is a xml for the GT 2 Pro, which the ultrawide camera works with, and it also works on our GT 2, but the picture quality is very low and noisy.
https://forum.xda-developers.com/t/gcam-for-realme-gt2-pro.4429173/post-87701663
It is in the attachments.
Click to expand...
Click to collapse
just tested that xml file and it's not working. My SGCAM build is not derived from the com.ss.android.ugc.aweme package, because of the reason posted above.
wizard8400 said:
just tested that xml file and it's not working. My SGCAM build is not derived from the com.ss.android.ugc.aweme package, because of the reason posted above.
Click to expand...
Click to collapse
hi there i have the gt but the 1 with the same audio issue i can open the bootloader so i can fix it but i dont know how can you provide me some guidence pls?
@alex61194, I didn't understand your request. Can you rephrase, please. And use punctuation, it really helps
wizard8400 said:
@alex61194, I didn't understand your request. Can you rephrase, please. And use punctuation, it really helps
Click to expand...
Click to collapse
sry, tipped too fast, i have the realme gt 5g, and have the same issue as your phone but in my case i can open the bootloader and be root, but i dont know what i have to change to fix the mic issue(i saw i have to edit mixed_paths.xlm), honestly i dont care about video but about voice recording in general
post here your mixer_paths.xml and I'll have a look, I don't think it's the same as on the gt2
Have you tried out other Audio Sources and if that changes anything or is Voice Recognition the best for this device?
@smashda Yes I've tried them all, and voice recognition is the only one with acceptable results. Sources like unprocessed is too low, voice com. has too much noise canceling, etc.
wizard8400 said:
post here your mixer_paths.xml and I'll have a look, I don't think it's the same as on the gt2
Click to expand...
Click to collapse
here you go https://mega.nz/file/8odHXDSB#IhmdD1ntn4fMyeRpMVZnNj-uiSBNUG9kOuseiC8bBjo
@alex61194
*!!! have a backup so you can restore from custom recovery, just in case.
1.make sure you are editing mixer_paths.xml from /vendor/etc
2. modify the file according to the instructions from the screenshots.
3.after saving the file verify/set the permissions to be rw-r-r (like before)
4. reboot the phone, check if the modifications are still there
5. try a recording see if something changed. Do not expect to fix or improve something. This is just a test to see if we are on the right path.
6. tell me the results.
@wizard8400 bruh we have GT 2 Indian variant RMX3312 with an unlocked bootloader. We, unfortunately don't have TWRP. Can you give some suggestions?
@Ptathavi I think is possible with magisk:
first you need to flash a patched boot image (patched by magisk) to have root
and then something like: https://forum.xda-developers.com/t/how-to-change-files-in-the-directory-system-with-magisk.4454489/
or try searching something like "edit system file with magisk"
wizard8400 said:
@Ptathavi I think is possible with magisk:
first you need to flash a patched boot image (patched by magisk) to have root
and then something like: https://forum.xda-developers.com/t/how-to-change-files-in-the-directory-system-with-magisk.4454489/
or try searching something like "edit system file with magisk"
Click to expand...
Click to collapse
Thank you bro, much appreciated. I'll try. Since I've root there's posibility
Ptathavi said:
Thank you bro, much appreciated. I'll try. Since I've root there's posibility
Click to expand...
Click to collapse
How did you root it? Did you flash the patched boot img from magisk?
Prinve said:
How did you root it? Did you flash the patched boot img from magisk?
Click to expand...
Click to collapse
Join our group for help
Mod. edit: social media link removed. alecxs
What!!! I have been searching for this for so long but i couldn't find it, searches only showed Neo 2 and Pro and as there were no posts in XDA i thought development hasn't started yet so i was learning/trying to build twrp and build device tree for it. Thanks for the link