yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] terr:
I have modified the code as well and compiling it right now. Whats the library that is affected by this change so I can test it when the build finishes?
[Nexus 4 Android Development] mohit1234:
Just a heads up - you will have to edit both the ACodec.cpp and the OMXCodec.cpp file. Both contain the same code for forcing baseline.

Just compile the files inside the libstagefright folder, no need to compile the entire thing.

You should end up with a bunch of libstagefright_something.so files. Afaik, you just need to replace the libstagefright.so and the libstagefright_omx.so, but if you want, you can replace all of them just to be sure.

I'm still having errors in compiling, not sure why. How are you compiling it? You're using the Android.mk to build, right?
[Nexus 4 Android Development] tanjiajun_34:
Does this reduce the amount of noise in the photo? I don't have a N4 yet just checking out....
[Nexus 4 Android Development] mohit1234:
Yup.
[Nexus 4 Android Development] abnormalreply:
I've been using this mod for over a week now and honestly, I notice no difference in image quality, as I expected. It's a bitrate mod which should only affect video--which is very noticeable. JPEG compression is a whole different animal. The encoder profile clearly states that it's for .mp4 encoding which mentions nothing of raw image processing. I'd be inclined to more rigorously test the differences if someone post before and after pictures in the same lighting with consistent ISO / shutter speed / aperture that shows a clear reduction in JPEG artifacts due to compression.

Just my 2 cents.

---------- Post added at 01:06 AM ---------- Previous post was at 12:59 AM ----------

Images will not be more than 8MB. If the phone was giving us completely uncompressed raw images, 8MB would be the theoretical max size because it is an 8 megapixel sensor. However, the images are compressed, so you'll never get more than say, 3-4MB or so from a picture due to the compression.
[Nexus 4 Android Development] mohit1234:
Firstly, I released the updated MOD on the 18th, that's not over a week.. That's barely even 2 days! :rolleyes:

If you are referring to my first MOD, yes that does not have any effect on the images. That only affects the video quality.

You can try flashing the new one and check yourself whether or not the image quality has changed. May have been a placebo, may have increased, that's your wish to decide.
[Nexus 4 Android Development] Vash22345:
Hi just wanted to know. Does anyone see a noticeable difference in audio quality of the videos?
[Nexus 4 Android Development] 3dawg:
Can I flash the "Update 2" zip over the first one?
[Nexus 4 Android Development] abnormalreply:
Here are two pictures that I took before and after flashing the mod after a 100% crop. My point is, there really is no discernible difference, and even if there is, it can be attributed to the fact that the camera is fully automatic, and even with a consistent light source, it can easily use various combinations of aperture, shutter speed, and ISO to achieve the same exposure value which can lead to different amounts artifacts / noise in the image and the overall quality.

I'm not sure if I made it clear in my first post, but I'm really not asserting anything--only trying to present some reasoning behind why I think image quality isn't affected. But after some years of photography and and a fair amount of experience in image processing, I'm inclined to think my reasoning might hold some water. If someone notices their images to be markedly better, hey, more power to them :good:

But anyways, thanks once again for taking the time to create these mods.

Edit: oops, forgot to attach the pictures. derp.
[Nexus 4 Android Development] mohit1234:
The recording bitrate for the audio has been increased. So technically, there should be a small increase in audio quality.

Yes.

Yeah then it could possibly be a placebo.

However, the same mod on other devices has increased image quality and reduced noise. Hence, it should do the same on this device as well, but can't say why it isn't having much effect.

Anyways, I'll try and investigate further if anything can be done.
[Nexus 4 Android Development] Martin_Ro:
Sorry, but I think there is some error in your thinking.

8MP say's there are 8Million Pixel not 8Million Bytes (or to be more correct 8x1024x1024 Bytes).

Every Pixel has it's Colorinformation in a 24Bit (3 Bytes) Array(RGB), so we have 8MPx3Byte = aprox. 24MB Raw-Data for every Picture.

So, if there is some cap at 20MB there obviously is some need for compression on raw data in some way.

And after that comes the JPEG compression with a current rate of aprox 10:1 (because the pictures are around 2MB in Size).

So if you allow the camera now to use 40MB instead of 20 for every Picture is quite a little bit overhead but would prevent from any precompression... if this Size Setting works as expected.
[Nexus 4 Android Development] t3xboar:
mohit1234

DUDE !! Holy f**kin sh** !!!! this mod is wicked good ! :good:

Took a before vid of my desk at work real quick, applied the mod, took an after and its night and day... wow...how this is not factory settings I have no idea... it is crisper and takes much less time to autofocus on new objects..

Side note/question though...

both videos are the same length (13 seconds) and both total 11.4Megs ??

shouldnt the after-mod video be much larger in size ?
[Nexus 4 Android Development] mohit1234:
Haha cool thanks! :)

Just took two videos of the same thing, one with and one without the mod. Both 20 second videos, one is 30mb, the other is 40mb. I'm getting the after-mod video size definitely larger than without the mod. Not sure why you're getting both as same.. :confused:
[Nexus 4 Android Development] abnormalreply:
Thanks for clearing that up. But even if we do get that extra bit of raw decompression, wouldn't the JPEG compression be largely unchanged? And isn't that where most of the IQ issue comes from anyways?

---------- Post added at 11:32 AM ---------- Previous post was at 11:31 AM ----------

Meant to quote you in my previous response.
[Nexus 4 Android Development] 3dawg:
Does this need to be reflashed after CM nightlies?
[Nexus 4 Android Development] raikesy:
I'd say yes.. But I have been wrong before :D
[Nexus 4 Android Development] chavo360:
Can someone post a before and after pics for those who are thinking of doing this mod. Thanks
[Nexus 4 Android Development] a5ehren:
This is a video mod. As far as I can tell, there is no difference in still picture quality.

---------- Post added at 12:15 PM ---------- Previous post was at 12:11 PM ----------

Did you flash V1 or V2?

If you did V1, the video bitrate will not have changed and most of what you're seeing would be a placebo effect. If you do V2, the file size should be notably larger due to the 66% higher bitrate.
[Nexus 4 Android Development] terr:
I just finished compiling the libraries with the code change. I haven't had a chance to put it on my phone to see what happens but I am still not sure what libraries to put on.

I used the standard build environment defined by Google. I installed Ubuntu and all the dependencies. Synced mainline and build mako (make libstagefright).
[Nexus 4 Android Development] terr:
I put the new libstagefright.so on the phone and tried it. I didn't get a video recorded (even though the App was showing me recording). Also looking through logcat I saw that it still limited it to profile=1 (Baseline) even though my .xml is set to 8 (Highline).

I am not sure if I need other libs to be copied over (ill try that now).
[Nexus 4 Android Development] IAmAN00bie:
Did you also change the relevant line in media_profiles.xml on top of modifying the code in libstagefright?
[Nexus 4 Android Development] terr:
If you mean the ones at the bottom of the media_profiles.xml file, then yes. I set it to highline (integer 8).
[Nexus 4 Android Development] t3xboar:
K there is a problem then.. I flashed the zip for the2nd one. called "increase bitrate"

@ mohit1234

hmm.. same file size.. I was on stock rooted only... then i realised that it might be me. (though i admit that the quality/clarity does improve regardless of the bitrate issue that im having after flashing your mod. the pre-videos are much muddier)

so thinking it's me doing something wrong (still possible lol) I was on a rooted only stock... I remember that it's odex'd.. derp...

So i just crack flashed stock deodex + franco + new gapps. booted. took a video.

reboot to recovery, flash the "increase_bitrate" zip file. reboot take another video.

clarity is much better - but umm... bitrate still the same? wtf ?!?! this is for either 720p video or the 1080p.. both look just ok on non-flahsed bitrate.. and very clear after flashing this... im stumped why the bitrate isnt changing at all, or the file size.

Ideas ? now that im de-odex'd should i manually edit the files and see?:confused:
[Nexus 4 Android Development] IAmAN00bie:
I would go into media_profiles.xml and see if the bitrates changed, just to see if the flashing worked.
[Nexus 4 Android Development] terr:
I have a number of libraries but can't seem to figure out how to get them in the /system/lib folder.

How do I create an update . zip file?
[Nexus 4 Android Development] mohit1234:
Use the flashable zip that's there in the OP. Create a folder called lib and place all the libraries there. Then copy that folder into the system folder in the zip file from the OP.

Then just flash in recovery.
[Nexus 4 Android Development] t3xboar:
Hmm looks like it flashed properly?? Is this the only place you have to do edits if you are manually entering all of this? Or is there something to compile + edits??

I've attached the XML sheet from after the flashing (rename and remove .txt.. forum wouldnt let me upload the xml for some reason)

can someone take a look? im very curious about this.
[Nexus 4 Android Development] terr:
I was able to put the new libraries on my phone and it fixed not being able to record video but it still says baseline. There might be another spot in the code where it limits it to baseline, I will keep looking.

I really would like to make this video camera better. The HTC One X+ camera blows the Nexus 4 out of the water.
[Nexus 4 Android Development] a5ehren:
Edit this block:

<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" maxBitRate="12000000"
minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1080"
minFrameRate="15" maxFrameRate="30" />

to this:

<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" maxBitRate="20000000"
minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1080"
minFrameRate="15" maxFrameRate="30" />

That's why your bitrate isn't changing. Or just flash the zip under "Update 2" in the OP - it contains this fix as well.

OP, you should delete the modified ZIP from the first update so that people don't flash the wrong one. Just keep the stock and latest.
[Nexus 4 Android Development] t3xboar:
Wow I feel silly lol... Didn't even see the updated link... I assumed when people said the second one it was the second one down in order.... not the V2.. lol

flashing the V2 in a few minutes. gonna check.. thanks...

Edit: yep that did it. everything good now for file sizes.

In my personal opinion though the quality of 720p is almost the same before/after edits... only the 1080p is brilliant after edits with very very noticable difference in quality...

how about for you guys?
[Nexus 4 Android Development] terr:
So I can't seem to find anywhere else that would cause the profile to be Baseline when its set to Highline in the xml file. I keep getting the following message in logcat. Whats interesting is that I have my video set to 1080p but this message is the only one that mentions Baseline (profile1) in the log.

E/OMX-VENC-720p( 164): get_parameter: OMX_IndexParamVideoProfileLevelQuerySupported for Input port returned Profile:1, Level:2048

I tried to search through the code to find where this type of message gets outputed so I could modify that code but I didn't find it. Anyone else know where this message gets written out?
[Nexus 4 Android Development] domenukk:
If it's not in the codebase it's in the drivers. OMX-VENC seems to belong to the video encoder. (BIG SURPRISE)

A quick google turned up following things:

http://processors.wiki.ti.com/index.php/OMX_VENC

https://developer.qualcomm.com/forum/qdevnet-forums/multimedia-optimization-qdsp/12520

tl;dr omx-venc is the interface that takes arguments and raw images and spits out an encoded video.
[Nexus 4 Android Development] tsekh501:
What about still images?

Is it possible to do a mod that can change the JPEG compression ratio of still images (and configurable ISO setting?) ?
[Nexus 4 Android Development] terr:
Thanks for the heads up. Looking into it I found the TI OMX source code. I see it only defines Baseline in that code. Do you know if I modify the static table that defines the profile and levels to what I want it to, assuming the hardware can do it, would that be the only place to modify it?

I see in that table the level only goes up to 3 even though according to the logs we get level 4 from AVC. SO I am not sure if its the right spot to change.
[Nexus 4 Android Development] lovelymobile:
you have read that there is' written here? http://xdaforums.com/showthread.php?t=1844702

Also, now you must find the 720P and modify it, put it 60FPS

( and dont forget to adjust the bitrate to 25mbps if you want 60FPS )

Quote:

<EncoderProfile quality="720p" fileFormat="mp4" duration="60">

<Video codec="h264"

bitRate="25000000"

width="1280"

height="720"

frameRate="60" />

<Audio codec="aac"

bitRate="128000"

sampleRate="44100"

channels="2" />

</EncoderProfile>

you can not go to our phone at 60 fps putting the bitrate 25000000?

has anyone tried to contact | ErosizeD | for help? : D
[Nexus 4 Android Development] 0.0:
Does this work for 1080p as well? Have you tested this out?

Sent from my Nexus 4
[Nexus 4 Android Development] lovelymobile:
i test the mod 60fps with 720p and camera app crashed :(

not test with 1080p
[Nexus 4 Android Development] 0.0:
If 720p doesn't work, I feel 1080p won't either

Sent from my Nexus 4
[Nexus 4 Android Development] Shaky156:
If you read the article where it was achieved the stock camera app crashes when attempting 720p 60fps so another camera app was used to achieve this, our hardware can handle it, if it requires 25mb them that means we need to take it off basline and put it on highline, only highline can achieve 25mb max
[Nexus 4 Android Development] terr:
I see there are two hardware locations that use Baseline. One is the TI mentioned earlier but that one was odd since the maximum profile level only went to 3.0 when we know that the Nexus 4 can go to 4.0. The other location is the qcom hardware code. This location also defaults everything to Baseline. I want to modify this location to default to High and build the library.

Does anyone know what make target I need to do just to create the qcom hardware library from source? I would prefer to do that then build the entire code base and try to figure out what library I just use.
[Nexus 4 Android Development] nhogblom:
My camera app crashes when im turning on the front camera. Cannot Open the camera app until i clear gallery app data. Any solution? I flashed the flashable zip.

Happy holidays!
[Nexus 4 Android Development] mugabuga:
Are the zips down?
[Nexus 4 Android Development] mohit1234:
Merry Christmas everyone!! :D

Working fine here. Try clearing cache and dalvik after flashing. That might help.

Nope, they seem to be fine from my end. Try redownloading.
[Nexus 4 Android Development] tbman1996:
Will I get all the enhancements by solely flashing the V2 .zip? The first post confuses me a little :o
[Nexus 4 Android Development] mohit1234:
Yes.
[Nexus 4 Android Development] Scoutamis:
Is it me or is the frame rate during video chats in Gchat absolutely terrible? It is FAR worse than my Galaxy S III. Anyone else notice this?
[Nexus 4 Android Development] mohit1234:
I don't video chat via gtalk so I really can't comment on that, sorry. But I've video chatted on Skype and the frame rate there seemed fine to me.
[Nexus 4 Android Development] alanwyl:
Try lgcamera on the Google play store.

In the video camera section, I found that there are choices of bit rates and fps

Tried 60fps 1080P, it does the job well. No choppiness in recording.

EDIT: Not true, 60FPS does not work.

Another observation in this app, there is a scene mode, changing that to action eliminates the low FPS on the viewfinder, probably more noticeable in darker places.

Setting the ISO to 100 also drastically reduce noise. In the same situation, the stock camera app picks ISO500 while it is possible to shot at ISO100 in lgcamera app.

This app is written by an xda member, maybe is it possible to collaborate with him to enhance the stock camera app?

Sorry for being so rude for just throwing ideas but still not able to produce some technical workaround :banghead:
[Nexus 4 Android Development] mohit1234:
60fps at 1080p?? Afaik, the max our processor can handle is recording 1080p at 30fps and 720p at 60fps.

Yes reducing the ISO reduces the noise but is only useful in good light conditions. In low light conditions a greater ISO is needed which then causes noise. Our stock camera has no setting for adjusting the ISO. If this could be added then it would be really useful.

Anyways, I'll check out the app later tonight.
[Nexus 4 Android Development] alanwyl:
Sorry, my bad. I didn't transfer to computer to confirm.

I tried 1080P 30FPS; 1080P 60FPS; 720P 60FPS in that app.

They are all shown as 30FPS in Media Info on my desktop.

But the 720P is at 20mbps though.

Link to the 720P video here.

https://www.box.com/s/augh44rsqfh2vy6m14xo
[Nexus 4 Android Development] Ghisy:
I just flashed the latest version and my pics are BLUE like I applied some kind of filter on them. I'm gonna flash back to the stock settings.

Can the OP take a look at this problem please?

edit: flashing the CameraMOD_Stock.zip did NOT solve my issue. All my pics are still BLUE! Please help?

edit2: oops, my bad, somehow the white balance in the camera app got changed. All is well now, sorry!
[Nexus 4 Android Development] 3dawg:
If it says 30, it's probably 30. Upload a video that isn't 100% stationary/looking at a watch and I may be able to visually verify that it isn't 60.

:good:
[Nexus 4 Android Development] D3m0x:
Guys I think this post must be reorganizated.

I install the .Zip and when i transfer my vids, the details still normal, like if nothing have been patched..
[Nexus 4 Android Development] mohit1234:
I tried the app too. Doesn't go past 30.

That's weird. You're installing the zip which is under update 2, right?

Try reflashing the zip. What ROM are you using?
[Nexus 4 Android Development] abse:
Video sample at cloudy day, with MOD v2:

http://www.youtube.com/watch?v=HmF9s2Shfkc

[YOUTUBE]HmF9s2Shfkc[/YOUTUBE]
[Nexus 4 Android Development] daglesj:
Is it possible to get some decent before and after shots up please?

Plus can I stress that -

1. They are static shots of something moving and vaguely interesting (cars going by on a road etc.) rather than wavey shakey cam which is useless.

2. The before and after shots are of the same scene/location and around the same time for comparison.

If you have to pan the phone around then do it s l o w l y. Folks always make the mistake of moving the cam around too fast. It aint a RED camera.:laugh:

Thanks
[Nexus 4 Android Development] Raul69.atl:
I dont see a difference in the pics/vids

Random reboot when using camera and also can't upload pics to Facebook anymore.
[Nexus 4 Android Development] mohit1234:
My mod has nothing to do with uploading pics on Facebook. I am clueless on how your having an issue.

Plus, did you manually try to mod it, or did you flash one of the zips. And which rom are you using?
[Nexus 4 Android Development] SreePillai:
Can someone confirm this works on stock ROM please.
[Nexus 4 Android Development] DarkhShadow:
Yes it does

Sent from my Jelly Nexus 4
[Fascinate Q&A, Help & Troubleshooting] NomadCF:
So I've just noticed that since flashing (clean) BBB6. That my flash light (torch) does not work, either trying the built in touch control OR trying any 3rd party app. Point of reference the torch does work using CM10 nightly or going back to stock. Any one else seeing this issue. Or better yet have a fix ?

PS. Loving BBB feel ;)
[Fascinate Q&A, Help & Troubleshooting] hhp_211:
Does the widget work?

In widgets::: baked actions (long press): torch

Can't remember if torch worked out of the gate or not,,, even within toggles it does work for me though

Here is the aokp torch, I saved, you can download if you need to try,,, i may haved had to install this

https://www.box.com/shared/bibrpp03bizy1ov04klc
[Fascinate Q&A, Help & Troubleshooting] NomadCF:
Okay now I feel dumb, the widget works great ! I never even thought to try it after both the pull down torch control and a few 3rd party apps didn't work.

One note though. it wasn't under widgets. It was under

Home screen => Long press = Shortcuts => BAKED Actions

PS. I couldn't get the aokp apk to install. But thanks anyways !
[Fascinate Q&A, Help & Troubleshooting] hhp_211:
As long as you got there that's what matters but mine was a widget,,, ,,,long pressing home screen pulls up wallpapers for me

View attachment 1552242

View attachment 1552243
[Fascinate Q&A, Help & Troubleshooting] hhp_211:
Oh I see what the difference was,,, I am running the Trebuchet Launcher and not the Apex Launcher

just redid again a fresh clean install BBB6 and mine worked ...

as long as I went into Baked Rom Control | Statusbar | Toggles |Enabled toggles | Torch [and checked it}

course if you use powerwidgets instead ,,, Torch does Not seem to work...

.
[LG Nitro HD] mac20dnangel:
PHONE NOT ENTERING DOWNLOAD OR RECOVERY MODE?

I HAVE FIGURED OUT THE SOLUTION FOR THIS ALMOST IMPOSSIBLE TO FIX ISSUE.

I WILL POST THE TUTORIAL LATER AFTER SCHOOL.

THIS METHOD WORKS FOR P930 / LU6200 / SU640 MODELS.

GOOD LUCK AND HAPPY UNBRICKING.:laugh:
[LG Nitro HD] mac20dnangel:
RESERVED

:victory:
[LG Nitro HD] mac20dnangel:
RESERVED

:laugh:
[LG Nitro HD] devcon69:
This is the way I fix it sir.

TURN OFF the device, remove and reinsert the battery. Don’t turn on yet, hold VOLUME UP BUTTON then connect to your PC, release button when download mode prompt is displayed.

Tested with two units of SU640 and an LU6200.

I think you can also do this with adb and fastboot.
[LG Nitro HD] mac20dnangel:
DEAD POST. Sorry.

I'll post the TUT someday. I'm quite busy.
[LG Nitro HD] moonmoon8:
You are just a Junk!

Hahahaha... Nice Effort Baby

Ok let me help you in my way,

Step1: - Flash Any Rootable LU6200 Version (Example: LU6200 v142)

Step2: - Root and Install CWM Recovery (Already Posted in Forum)

Step3: - For Download Mode, Press Vol+ and Insert USB Cable

Step4: - For CWM Press Vol- and Power On until Phone Viberate and On Logo (Press Power Button Text)

Good Luck! And Post Results

Note: - School Baby Please Keep Away from This Developers Forum! :victory:
[LG Nitro HD] mac20dnangel:
Oh Baby?

Wahahaha... I think you did not understand the Title of this Thread? I think you are the Baby here in XDA.

Your tutorial is not for a dead phone. It is on how to root and install custom recovery for LU6200.

Oh.. Baby Boy what's on your mind. It's full of fantasies. Hahaha
[LG Nitro HD] mijuu:
Do you mean “HS-USB QDLoader 9008” ？ If you can solve that problem, that's a good news~

Could you post it？

Many thanks~~~~
[LG Nitro HD] devcon69:
Check here. Just use google translate.

http://bbs.gfan.com/forum.php?mod=viewthread&tid=4520374&ordertype=1
[LG Nitro HD] vitamindy:
I'm not sure how to follow this guide. I can't seem to make my phone appear on the check box.
[LG Nitro HD] ramica7:
oh yeah! this is what im waiting for! its like JTAG? oh yes! :))) waiting or your instruction!

---------- Post added at 02:48 PM ---------- Previous post was at 02:33 PM ----------

can you please provide download links? no need for jtag?