yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] r4yN:
To tease you? Idk :P

Here you go:

http://xdaforums.com/showthread.php?t=2159076

(I hope it's the right link, did this via tapatalk )

Unfortunately the dev is quite lazy / busy / inactive / whatever, but what he's aiming at is incredible (1080p video recording at 60fps would be a revolution, because AFAIK there's no phone that can do that) :/

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Android Development] ankit.johnny:
this works but dont increase bitrate too much as it will burn ur cmos chip
[Nexus 4 Android Development] mohit1234:
I don't think the bitrate can go over 20mbps. I'm using 20 and it seems to be perfectly safe and stable.
[Nexus 4 Android Development] Master&Slave™:
How does the file size go up without the quality going up?

If more data is being added then the quality should be higher, even if it is a slight improvement.

What type of data is being added to the movie files that doesn't allow it to increase quality?

Looking forward to hearing from you.

P.S - I work for Nikon Inc so I'm extremely interested in this stuff.
[Nexus 4 Android Development] imeem:
maybe it does increase the quality, but some of us can't tell the difference. Maybe it's the same with audio format. For me, i could not tell the difference between CD/.wav and 128 kbps mp3 for music.
[Nexus 4 Android Development] Master&Slave™:
Listen to a song in 128 and then listen to the same song in 256 or 320.

You will surely hear the difference.

:)
[Nexus 4 Android Development] imeem:
i don't. I used to, or at least i think i used to notice the difference. Nevertheless, i still try to get high quality music files.
[Nexus 4 Android Development] KCRic:
I'd say it has more to do with the ratio of file size vs. quality improvement. On the Galaxy SII that limit was around 25Mbps. It would handle 30 but with almost no improvement in quality but a huge jump in file size. Furthermore, I can easily make a 5GB file with absolutely no data in it so its very plausible that no real useful data is being written - I would hope Nikon would be highly aware of both those facts as I'm sure they are since they make great cameras.

Lastly, has anyone actually looked at the video bitrates after they recorded it? Is it more than stock? Is the average even close to the limit you set on high quality? If so - then its not a placebo effect.
[Nexus 4 Android Development] mohit1234:
As you can see in the screenshots in the OP, the video bitrates, as shown by windows, is higher that stock and quite close to the value that's there in the xml file.
[Nexus 4 Android Development] imeem:
did this mod cause any one;s phone to crash and restart?
[Nexus 4 Android Development] KCRic:
Fair enough. For some reason the XDA app wasn't showing the OP's screen shots so I was a bit ignorant there.
[Nexus 4 Android Development] SHiFT!:
??

Who can update this camera mod using this and all experience in this question
[Nexus 4 Android Development] imeem:
isn't it the same thing? the OP said he got help from mohit123, which is the OP of this thread.
[Nexus 4 Android Development] r4yN:
it would be the useless anyway since the sprint Optimus G has got another camera (a 13MP one)...

Our N4's is probably the same as the AT&T's Optimus G (therefore the link to the thread should be THIS ONE )

Since it has been proved not to be working on our N4 it's weird to see different results in the AT&T Optimus G's thread... seems like there might be hardcoded changes compared to the AT&T Optimus G... maybe some dev could look into it? (Because AT&T Optimus G & N4 are basically the same device with some small exceptions like microSD-card slot, etc so it's weird the mod works with the G but not with the N4)
[Nexus 4 Android Development] 0.0:
I did see a couple of users in the thread that don't see a difference

Even the pics that were taken for comparisons, it looks like the focus was in different positions. I believe it is placebo

Sent from my Nexus 4
[Nexus 4 Android Development] edworkscomputing:
Increase fps

Is is possible to increase fps from 30 up to 40 or 50???
[Nexus 4 Android Development] mohit1234:
Not with this mod. I tried but it didn't work.
[Nexus 4 Android Development] nawoa:
The phone records in MONO. Not STEREO. One channel, not two is what that means.

Stereo 192 kbps means 96 kbps per channel.

What you're advocating with a 128 kbps bitrate is LOWER than what it's actually recording at. 192 kbps stereo (96 kbps per channel, ie, identical quality per channel to 96 kbps mono) is widely agreed to be almost transparent, especially with AAC.

And you're talking about the microphone on a PHONE for goodness sake.

Don't involve yourself in things you have no understanding of.
[Nexus 4 Android Development] tonytober:
Got that too

I also have that problem.

However, in my case, to make the camera focus, I have to hold the phone REALLY still to make it focus during video recording (720p/1080p).

If I move slowly left and right, back and forth a little bit, it would keep the same focus range until I make the N4 stay still.

Does focus, but takes around 2 seconds of staying still and waiting before it starts focusing.

After all, Camera is stable, takes very nice shots, video sound awesome. Video quality perfect, just the focusing problem that itches a bit :p

Hope that there is a fix :confused:

Keep up the good work

Tony
[Nexus 4 Android Development] mohit1234:
Thats weird. I've been using this mod for quite some time and I haven't faced any such issues. :confused:
[Nexus 4 Android Development] Haomuch:
This only changes the video quality but can't improve the picture. Anybody know how to improve the quality of pictures? Especially for the front camera. The current quality is just over denoised and the picture is not sharp at all.
[Nexus 4 Android Development] laxin:
actually it also improves the picture quality. does it not work with your nexus 4?
[Nexus 4 Android Development] Haomuch:
Of cause no. How did you find it improved the picture quality? The mod only changes the bit rate of the video file and has nothing to do with the picture quality. You can have a look of the same picture you may take from one scene. And you will find the file size has no change at all.
[Nexus 4 Android Development] AcmE85:
Search for the strings and change the values accordingly

The picture file size does increase. If there is any improvement...idk.
[Nexus 4 Android Development] FeintDoxx:
I saw some picture quality increase. Not S4 quality but the pictures seem more crisp and sharper.
[Nexus 4 Android Development] metal571:
This is interesting. Has anyone tried the effect of using mono (channels="1") AND 288 kbps? The bigger problem I see is that the phone has HEAVY noise reduction which makes almost all audio sound terribly watery. On top of that, there is no automatic mic gain control implemented here, causing anything loud to distort like crazy. (recording concerts is pointless with this phone as a result, but newer devices like the S4 and One handle loud volumes very well)
[Nexus 4 Android Development] ultrapirate:
Thanks for this great thread.
[Nexus 4 Android Development] Naprzod:
In my old Xperia Mini pro sk17, in a ICS mod, we only change this:

<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">

<Video codec="h264"

bitRate="12000000"

width="1920"

height="1080"

frameRate="30" />

<Audio codec="aac"

bitRate="96000"

sampleRate="48000"

channels="1 THIS FOR 2" />

</EncoderProfile>

We change the channles 1 for 2, i dont know the other values...

and i know that it isnt the same in all the phones..

EDIT: XMP values <AudioEncoderCap name="aac" enabled="true"

minBitRate="128000" maxBitRate="128000"

minSampleRate="48000" maxSampleRate="48000"

minChannels="1" maxChannels="2" />

Look at this thread too http://xdaforums.com/showthread.php?t=1569309
[Nexus 4 Android Development] ciarpame:
Really? On this German site (http://www.mobiflip.de/nexus-4-qualitaet-der-kamera-verbessern-root/) there is a side by side comparison with two pictures taken with different jpeg quality settings (95 and 100) and I cannot tell which is better. The two unscaled pictures are downloadable via a dropbox public link.
[Nexus 4 Android Development] fusioncoast:
http://www.xda-developers.com/android/xperia-x10-camera-mod-brings-camera-improvements-and-more/ can we take some.help.from this thread i had a x10 trust me the cam quality was the best i have ever seen
[Nexus 4 Android Development] sMtt:
This one sounds good. I hope some devs care with it.
[Nexus 4 Android Development] sidhaarthm:
Hi ya'll,

Can anyone confirm this mod will work on the latest 4.3 stock ROM? I just want to be sure before I start flashing stuff.. :p
[Nexus 4 Android Development] metal571:
More importantly has the stock 4.3 media profiles file changed at all? It would be interesting if Google did any tweaking in there. Has the video quality improved at all either, specifically the audio recording quality? It is really in need of improvement
[Nexus 4 Android Development] Primey0:
I compared the stock media profiles file which is linked in the OP with my 4.3 media profiles and saw no difference.
[Nexus 4 Android Development] sidhaarthm:
So if I understand correctly, flashing this mod would/should make a difference as the quality/audio settings are the same in 4.2.2 and 4.3 stock media profiles?
[Nexus 4 Android Development] Primey0:
Yeah
[Nexus 4 Android Development] :
Work on 4.3?

Enviado de meu Nexus 4 usando Tapatalk 4
[Nexus 4 Android Development] mohit1234:
I don't think the media_profiles xml file has been modified since 4.2.2, so it should, but I have not tested it yet. I'll test it out in the next couple of days and push an update if required.
[Nexus 4 Android Development] Hypoxic1:
WOW! Huge difference in both video qualities (720 & 1080) AND STILL IMAGES (pictures)!!

There is more dynamic range in both video & picture modes, colours are much warmer, and the white balance seems to be much more accurate.

I ran into no issues flashing this on stock 4.2.2 ROM with 4.3 camera app.
[Nexus 4 Android Development] l92:
Works with 4.3?
[Nexus 4 Android Development] french-anonymous:
it didn't change anything for me, except files sizes.
[Nexus 4 Android Development] [Antonio]:
I made different tries, the only microphone that works during the recording is the one on the bottom of the phone... i think the only way to change this thing and make both mics working is to compile a custom kernel and i'm not able to do it :D the distortion with high volumes is still there
[Nexus 4 Android Development] CoolApps:
Does this work with PA 3.99?
[Nexus 4 Android Development] l92:
No
[Nexus 4 Android Development] AcmE85:
Yes, it works with every rom!

If it actually improves image quality is up to you...
[Nexus 4 Android Development] CoolApps:
Ok, I did it and I got really good results.

I am just going to delete that nandroid backup. :)
[Nexus 4 Android Development] un.droid:
does flashing a new rom overrides this mods settings?
[Nexus 4 Android Development] CoolApps:
Yes because it will replace that file which you have modified.
[Nexus 4 Android Development] anitgandhi:
just wanted to make sure...i'm running cm 10.2. flashing this should work fine right?
[Nexus 4 Android Development] DirgeExtinction:
This would be awesome.
[Nexus 4 Android Development] The Zel:
Yeah, thast would be great, but It seems that nexus 4 devs don't really focus on camera developing
[Nexus 4 Android Development] perun:
Is it work on stock 4.3?
[Nexus 4 Android Development] mohit1234:
For me its working on stock 4.3.
[Nexus 4 Android Development] sidhaarthm:
Howdy!

Any plan to make a flashable zip for the stock 4.4 ROM KRT16M? I'm looking forward to customising my Nexus 5's camera :)

Shot from Nexus 5 via XDA Premium HD
[Nexus 4 Android Development] SHiFT!:
My mod for Nexus 4 and nexus 5(tested on 4.4).
[Nexus 4 Android Development] The Zel:
It the video/photo quality increased?
[Nexus 4 Android Development] SHiFT!:
Make video on stock settings and see results
[Nexus 4 Android Development] :
does this work in Pure Speed X Rom? Is it already implemented? it would be nice if someone did the same photo without the mod and the mod so everyone of us can see :)
[Nexus 4 Android Development] SHiFT!:
Version 2.0 + 98%(on the average) total bitrate compared with stock
[Nexus 4 Android Development] Qwerty123 \m/:
Downloading!
[Nexus 4 Android Development] elderap:
could someone post a practical outcome with and without the camera mode?
[Nexus 4 Android Development] The Zel:
+1
[Nexus 4 Android Development] kekko986:
Is there a revert zip for 4.4? Is it the same using zip in OP?

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Android Development] cmax24:
an update for 4.4??
[Nexus 4 Android Development] mironiko:
[MENTION=292567]shift[/MENTION]

Is this latest camera2.zip file better than the first file, in the OP, in terms of the image quality..?

Thanks for the answer!

TT via S2
[Nexus 4 Android Development] SHiFT!:
i don't know, but bitrate better
[Nexus 4 Android Development] mironiko:
Anybody else, tried both..?

TT via S2
[Nexus 4 Android Development] Tusnal:
Whatsapp audio recoding sounds horrible, is it anyway to fix this? n4's mic sucks badly!

Sent from my Nexus 4
[Nexus 4 Android Development] SamS1989:
anybody try the cameras on 4.4 kitkat ? in the nexus 4 toolkit the only way to increse the bitrate / pictures quality the media_profiles.xml mod.

but this is not increse any stuff, what i need to do ?
[Nexus 4 Android Development] matthewgwilt:
I tried the new version (a few posts back). The quality of videos is hard to do compare because the mod breaks auto focus.. But the video files are almost twice as large.. Same for photos too although auto focus works fine for photos.. I think photos do have a slightly better clarity but again its hard to tell... To be honest the lens on this phone is rubbish and as the saying goes.. 'You can't polish a turd'.

The best improvement is the sound recording on videos... The mod utilises two microphones instead of just one.. Resulting in a less tinny sound and barely any high pitch hiss that you find on stock camera made movies.
[Nexus 4 Android Development] SamS1989:
are you watching the videos on the phone or big screen (tv ?) just becouse when i record last time a sample the video look like gorgeous on the phone, but on the tv...
[Nexus 4 Android Development] kooocko:
Is there a flashable zip to return to stock settings for Kitkat?
[Nexus 4 Android Development] JeanEatsWorld:
Dirty flash your rom.. It should be fine..
[Nexus 4 Android Development] fusioncoast:
Can we port bionz mobile engine like bravia port???
[Nexus 4 Android Development] loki154:
Could we get this updated for 4.2.2?
[Nexus 4 Android Development] vessk0:
and for 4.4.2?
[Nexus 4 Android Development] karthik_316:
This works even on android 4.4.2. There is nothing to do with android version Here .This script will edit media_profiles.xml .

Thank you
[Nexus 4 Android Development] shahkam:
So is this only for video recording or it will increase the camera pictures quality also?
[Nexus 4 Android Development] fusioncoast:
do we have something like engineering mode , i have seen this mode on Micromax a90s there is a camera testing option in which we can capture RAW format & Jpeg format. Its manufactured by gionee i guess.
[Nexus 4 Android Development] shahkam:
Anyone???
[Nexus 4 Android Development] shahkam:
Meant to quote this so is this for recording only or it will improve camera pics also ??
[Nexus 4 Android Development] mohit1234:
Don't think there is anything as such.

I don't believe the media_profiles.xml file has changed between the versions, so this zip should work fine. However, I'll look into it and make another zip for new versions if required.

Its for both video recording and pictures.
[Nexus 4 Android Development] Rishi.:
Hey, Thanks for this flashable Zip mohit. I am on stock JB 4.1 using Optimus G AT&T E970.

In the xml files there is an attribute which allows the user to set custom valus for frame per second too. I am not sure if editing this attribute's value to something higher like 60FPS or 90FPS from 30FPS default will actually help or will it cause issues , or will it simply not work.

I was looking to capture slow mo. videos from LGOG , sinceI feel Adreno 320 is quite powerful enough.

What are the possible values , that maywork ??
[Nexus 4 Android Development] Rishi.:
So I tried flashing the files through recovery , it was successful but I didnt noticed any changed so I went to the location manually to inspect of any change in the code. But couldn't verify any change.

So I used X-plore with all the permissions possible and wrote the perm 777 on the file media_profiles.xml .

Initialized the camera application and tried to capture 1080p video where it suddenly crashed.

Realizing that the change in code was must have went haywire somewhere I tried to flash the .zip file using TWRP recovery. The zip was flashed successfully but the device went in bootloop. I had logcat installed so I was able to see some looping codes at bootup.

Now , to resolve this I tried wiping out everything except /system , but nothing worked.

Well , I had made a backup of the rom a few days ago , will try to see if I can restore it . Fortunately we guys have a SD card facility in LGOG At&T , as my backup resides on my PC!!. :sigh:

Will try this again , unless the device gets hard bricked while restoring or fixing the current issue.( unlikely , but who knows. )
[Nexus 4 Android Development] noidtrue:
waiting for 4.4.2
[Nexus 4 Android Development] playya:
did you read previous posts? Also have you tried to flash it or do you think a special version is needed? If so you can always use notepad ++ and enter the proper code and create your own. I believe this route can be taken... But if not just flash it I did on my 4.4.2 rom
[Nexus 4 Android Development] mohit1234:
Changing the FPS doesn't work. Already tried it but it stuck to 30fps.

The zip attached is only for the Nexus 4. It won't flash on other devices even if it shows successful. The permissions need to be 644 (rw-r--r--) not 777. That's probably the reason its crashing. If you were on any custom rom, you could have just flashed the rom zip file and it would have fixed the issue. Wiping data is not necessary.

Now just try and restore the backup, that should fix the issue. Bricking while restoring is very very unlikely, so don't worry about that.

No need to wait. This mod will work fine on 4.4.2. I just checked the file and its the same, no other modifications were made.
[Nexus 4 Android Development] Rishi.:
Hmmm. So will have to edit the file manually like earlier.

I will try that , with a proper permission set.

--------------------------------------------------------;

I had to re-install the ROM again (stock) , and restore the App+Data using an Ext4. backup file I had earlier.

THe restoration failed for some reasons .

ANyways , I will try this and will report back.
[Nexus 4 Android Development] SamS1989:
Works fine the camera2 on stock 4.4.2, but if i just copy the XML it doesn't work, only way is flashed the zip.

The auto focus delay is not so bad, can we live with this.
[Nexus 4 Android Development] natzy85:
I tested a ROM from the early days of Nexus 4 I think 4.2.2 and I couldn't believe the speed of the camera in comparison to what we have now. I hope that Google releases the new API sooner and that we will also benefit from its speed not just Nexus 5.

Right now it's just not as fast as IOS is and I really hate to loose important moments just because of the auto focus. We already did a quality sacrifice in comparison to what other phone have or what Iphones are using. Not that I will use IOS again. I hate that OS but I love the camera. I also know that our Nexus can't compare to the price of other phones and their hardware but I really think this is an issue of software and not hardware.
[Nexus 4 Android Development] azim0106:
i have spice MI 530, will this mod works in my phone, if i flash your flashable zip through CWM ?

waiting for your reply,

thanks in advance
[Nexus 4 Android Development] mohit1234:
Nope, this is meant for the Nexus 4 only.
[Nexus 4 Android Development] Rishi.:
The flashable zip won't work but I believe a similiar xml file will be found in your device too. You can change those settings in there and see the impact yourself.
[Nexus 4 Android Development] eddvys:
Flashing these files with any other device than Nexus 4 won't work. I tried them on Moto G and on Galaxy Nexus neither worked. Do it manually.
[Nexus 4 Android Development] Ssyyddii:
I flashed the mod on my nexus 4 running cm 11. It seems to be working file sizes of camera and video are much bigger. But I am much more interested in the audio quality. I have a couple of questions.

1. how to I check to see if the audio bit rate has increased to 280 bits? Music sounds the same to me. I am running the ziddey modified Faux sound kernel which has given a big boost to the gain and output. But don't know if the bit rate has infact increased.

2. I can't find the .xml file for the life of me. Permissions set to r/rw. I've searched and searched. Just want to check to see if infact the bit rate was increased by the mod.

3. Do I have to reflash the file when upgrading my ROM? I imagine so.
[Nexus 4 Android Development] aeoveu:
I've read many, many pages (was following this thread silently before) and not once have I seen a before/after shot.

Does this work?

I don't intend to sound cynical, but I'm going to hold off the flashing process unless and until I know it does work, with evidence!

Increasing the file size isn't a qualitative improvement, but a mathematical improvement.
[Nexus 4 Android Development] daglesj:
I'm amazed people are still changing this. It's been long known that all this does is gobble up storage for no appreciable benefit in picture or video quality.

If it did don't you think we'd have plenty of amazing side by side comparison pics and clips?

But no one has ever posted any. I wonder why?

Plus the LG Camera app will let you adjust all the video and audio features without having to flash anything. Not that it does much for picture quality.

Basically it seems the N4's camera is hard locked in some way to certain quality settings and that's it.
[Nexus 4 Android Development] aeoveu:
Precisely my point (but with more detail)! That's what I said in my last post (above yours).
[Nexus 4 Android Development] wildpig1234:
LG camera app doesn't work with my samsung s4. The video is stucked at 15fps no matter what res or settings i choose. also it doesn't select the bitrate accordingly. I don't have a choice aside from media_profiles editing.

I tried editing the media_profiles.xml and save and reboot but my s4 camera still record at high bitrate. anyone can help out? thanks
[Nexus 4 Android Development] KunalKene1797:
Now what can i do?

There is no Media_Profiles.xml :crying:
[Nexus 4 Android Development] k1labban17120692:
Hello, would you set mine to its fullest? Thanks! Happy coding! :)

LINKS:

media_profiles.xml

http://www.4shared.com/document/E2IfBvDgce/media_profiles.html

media_codecs.xml

http://www.4shared.com/document/osTieeUWba/media_codecs.html

---------- Post added at 01:58 PM ---------- Previous post was at 01:55 PM ----------

Additional Info:

HD 1080x720

13 Megapixel rear

5 Megapixel front
[Nexus 4 Android Development] xAthenax:
How many MP is this???
[Nexus 4 Android Development] Lupihaziq:
which one should i flash first? using grand quattro running cm11
[Nexus 4 Android Development] jmudrick:
Save yourself the angst and download lg camera. It provides for the higher bitrates in both audio and video recording is free and just works. Don't try getting frame rate above 30 it won't work and we will muck things up.
[Nexus 4 Android Development] 0.0:
why would we need to use an app when we can just edit, or flash, the media_profiles.xml? i rather use the stock camera with the edited media_profiles instead of a third party one. besides, the look of the LGCamera isnt appealing to me, which makes me avoid it unless i really do need it