yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] Shaky156:
Hi releasing a quick kernel to test the camera quality

Compiled for Android jellybean 4.2.1 & 4.2.2

Ive tested it needs more modified but ive activated high profile & level.

For testing the boot.img boot in fasboot mode in terminal via fastboot boot boot.img

Test and post results thank you

Log outputs this

OMXCodec: [OMX.qcom.video.decoder.avc] AVC profile = 100 (High), level = 51, ive changed kernel and set the level to 4 for now.

High profile avc h.264 has been achieved along with changing of profile level upto 5.1.

Now my focus/attention is on FPS attempting to achieve 60FPS recording

This is a quick kernel based off motleys for testing purposes on camera quality so thank you motley! :D

Downloads & Changelog in post#2
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

Downloads:

Changelog:

V0.1 initial release

Activated AVC H.264 High profile

Level now set to 4 on AVC

V0.2
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

Reserved for other work
[Nexus 4 Original Android Development] farhanito:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

Interesting.

So this kernel has everything from Motley, plus your Camera modification?

And what kind of feedback do you want us to report? :D

[N⁴][CarbonRom][Motley]
[Nexus 4 Original Android Development] nick34609:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

I've downloaded and will flash later. Will give you feedback.
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

Log tells me its set to high and level 4 so thats a definite but i might need to modify more to get it running good also ive attempted to get it running at 60fps camera does look smooth to me, but need confirmation of camera quality and smoothness improvement, didnt have time so couldnt check the fps of video i made
[Nexus 4 Original Android Development] Rafase282:
Since it is for testing a I recommend a

"fastboot boot boot.img" to test without flashing, just in case something goes bad, then you just need to reboot.
[Nexus 4 Original Android Development] nick34609:
Flash went well. Going to try some pics and video and then compare to stock and let you know. Colors need adjusting, does this support gamma changes?

---------- Post added at 10:08 AM ---------- Previous post was at 09:58 AM ----------

It does support gamma changes. Just restored my display settings. Now to test out the camera.

---------- Post added at 10:13 AM ---------- Previous post was at 10:08 AM ----------

Image quality looks good. Recording looks smooth. How can I check the fps on the video?
[Nexus 4 Original Android Development] banesi:
If you're using MPC HC just press CTRL-J during playback, I'm curious to hear if frame rate is close to 60, it will be very nice breakthrough, in theory, hardware supports this...
[Nexus 4 Original Android Development] nick34609:
1080p video is at 30.77 fps. Let me take a 720 video and check that now.

---------- Post added at 11:04 AM ---------- Previous post was at 10:58 AM ----------

720 is at 27 fps.
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

Okay thanks for testing ill attempt the fps again, but the encoding/decoding high profile level 4 has been achieved

2 things have been achieved so ill attempt fps
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

Since ive used motleys kernel you can use motleys as a direct comparison for video quality etc
[Nexus 4 Original Android Development] nick34609:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

Which version did you use? Post the link and I'll flash it.
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

Pulled from motleys github so its his latest release
[Nexus 4 Original Android Development] nick34609:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

30 fps for 1080, 720, and 480. That's with motley from 2-20-13
[Nexus 4 Original Android Development] alanwyl:
Actually is it possible to enable HDR video? Or is it a ROM-level thing not kernel?
[Nexus 4 Original Android Development] halluci293:
This is awesome news if it works. I followed this thread: http://xdaforums.com/showthread.php?t=2039553

but they seem to have reached a dead end in terms of actually improving quality, rather than just file size. I'm curious how you managed to enable high profile AVC, since the last I heard, it seemed to be locked in the driver somewhere (http://xdaforums.com/showpost.php?p=35804435&postcount=160)

Also, I don't think there's hardware support for 60fps 1080p, only 60fps 720p.
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

I did set thw framefrate as 60fps can someone use a modded profile.xml and test fps??
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

Thats one thing i definitely want on this device i dont think its impossible the hardware is there afaik it can handle hdr video
[Nexus 4 Original Android Development] nick34609:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

I flashed the XML from the other thread and it actually lowered my fps to 24. And it made video look choppy for some reason.
[Nexus 4 Original Android Development] AdamUpNorth:
Question....

In doing research on the differences between AVC medium and high profiles, it appears that HP is preferred because of higher bitrates (max 25 vs 20), better compression ratios and better algorithms (i.e. stuff don't understand like 8×8 vs. 4×4 transform adaptivity and Quantization scaling matrices).

Having little experience in comparing MP and HP my question is should we expect a significant increase in video quality by switching to HP on the N4?
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

Use this media profile

http://db.tt/gmKTXiqQ

Should be accessible just copy it over anndddd give it a test

Ive done some more work so there may be an update sometime...
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4) (kernel)

It will make a difference noticeable to the eye
[Nexus 4 Original Android Development] Pheno.menon:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

Is it possible to improve picture quality on the camera? I'm not very happy with mine.

Transmission sent from my badass Nexus 4.
[Nexus 4 Original Android Development] cguru:
Any chances, we get in touch with the source?
[Nexus 4 Original Android Development] wtfshouldidonow:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

And can instant HDR pictures be achieved anytime soon?
[Nexus 4 Original Android Development] Crisisx1:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

60 fps no way
[Nexus 4 Original Android Development] KCRic:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

Not sure about some of it but I can tell you that the higher bit rate helps with limiting the grainy video you see at times. 25Mbps is really about all you need at 1080p, any higher only makes for large files but no better quality.

60fps? Negative. Honestly we can all get into a long debate over it but I'll save you the trouble - its dumb. No need for it in video. This isn't a high action game. Even the cinema standard is 24fps. Besides our hardware caps at 30. Just like most other phones. Drop to 30 again - the software drops frames anyway so you'd need to record Bruce Lee fighting to test and see if we can hit 60fps at all.

The source would be great since the media encoding is embedded in the kernel it seems. Not in the .apk like the "old" days. Maybe see if we can get the audio sampling up to 192 or 320, instead of the lackluster 96 (seriously Google, wtf...)

Lastly, there should be options for the FFC. What can we for for that?
[Nexus 4 Original Android Development] Logi_Ca1:
60fps is a matter of opinion. Personally I deinterlace all my 30i media to 60p, and it looks great. 24fps (or rather, 23.976fps) in cinema is just a matter of tradition, rather than any technical superiority. We might see this trend changing soon with The Hobbit being recorded at 48fps.

Anyway, the Padfone 2 with the same APQ8064 is capable of 720p at 60fps, so unless the hardware limitation you are talking about is with the camera module, the hardware encoder in the APQ8064 should be capable of 720p 60fps recording.
[Nexus 4 Original Android Development] ChongoDroid:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

Agreed^^

60fps works be very handy on a phone.. since I'm not recording a feature length film lol

Sports, action, tons of stuff could benefit.

Hell 60fps slow motion would be bad ass!
[Nexus 4 Original Android Development] header2k:
The xiaomi mi2 can record 720p 90fps and it has the apq8064. The camera module may not be capable of more fps, the processor is good enough. But I didn't find anything about it in the internet.
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

At work so Ill sit back and patiently wait for you guys final decision, until then v0.2 is on hold
[Nexus 4 Original Android Development] IAmAN00bie:
720p video @ 60fps would be amazing. That plus higher bitrates and AVC high profile would finally make the video recording worthwhile. I sincerely hope you figure this out, OP!
[Nexus 4 Original Android Development] Girn:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

HDR video HDR video HDR video. I would give you money if you got that working :)
[Nexus 4 Original Android Development] eRajesh:
So umm is AVC High profile Level 4 confirmed? What is the current bitrate? 1080p@60FPS might be too much, but 720p@60FPS is possible.

Besides, we should look into improving the image and video quality instead of just bumping the FPS.
[Nexus 4 Original Android Development] calyxim:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

So the phones should not be designed to shoot your nephew's football match.

I'll tell him to play chess then. Less blurry memories...

End of sarcasm time.

You Sir are as dumb as Sarah Palin. If not more.

Should your kind disappeared, no one would have ever noticed it.
[Nexus 4 Original Android Development] Vangelis13:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

^^ Why attack other members like that, no need for it. Just disagree with an argument, makes you cooler..
[Nexus 4 Original Android Development] cguru:
do we have a baseline/highline nexus4 video encoding example?
[Nexus 4 Original Android Development] Shaky156:
I think yes but I'm not promising anything

yes very soon I hope as soon as I finish the 60fps and few other things, thing is I've hacked it to the point even if you choose another level or profile it wont change only the high profile level 4 is selected need to work on it abit more

Very interesting question something I'll need to look into in my spare time

Yes way! lol

Dont worry you'll be able to limit the fps or atleast I'm hoping to do that so if its not your kinda thing then you can stick to your 30fps ;)

Thank you for the info

Wait for v0.2

Ive been thinking about that feature if i had full net access on my computer i wouldve already done a custom build, i have already done custom binarys built but didnt release that was months ago lkl
[Nexus 4 Original Android Development] SuperStyle:
Can you please make a zip for that kernel ?
[Nexus 4 Original Android Development] alanwyl:
Maybe you could do this

adb reboot-bootloader
fastboot flash boot boot.img
fastboot reboot
[Nexus 4 Original Android Development] Logi_Ca1:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

Shaky: if 60fps capability is kernel dependent how about studying the Padfone 2 or Xiaomi M2 kernel sources for it?
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

It isnt kernel dependant ive hacked the kernel for this to happen theres other ways of achieving the same result
[Nexus 4 Original Android Development] KCRic:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

Well if someone is dedicated to quality so much that they deinterlace video frames and such - I doubt they're recording video at 720p (1080i) when 1080p is an option.

Yes the hobbit was filmed at 48fps but if I recall - it was at test. Hollywood adopts at a very slow rate as I'm sure we all know. So it will certainly be some time before the standard raises above 24. If that were the case then they'd be using other experimental FPS like 100 or higher.

I'm not I'm not saying it wouldn't be cool or that some enthusiasts might would be thrilled about 60fps. I just don't think it will make much of a difference. Just my opinion. Now, certainly there are *some* out there that can hit 60 but MOST can not. The SII couldn't, neither can the LTE SIII. I don't recall the One X being able too either.
[Nexus 4 Original Android Development] Audioboxer:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

Fantastic work, wish you all the best. I'm surprised until now no one has had a real go at the Nexus 4 camera. Patiently awaiting progress.
[Nexus 4 Original Android Development] SuperStyle:
Has someone tested allready the 60 fps option ?

If I installing it how can I know this is working ?
[Nexus 4 Original Android Development] alessa:
thank you for work I hope you'll get stable result as soon as possible ;) thank you again.
[Nexus 4 Original Android Development] r4yN:
i think image quality itself isn'T that bad (I'm talking about still shots, not videos), but the autofocus kinda sucks

btw how come noone posted a comparison video yet? Between a video captured with stock kernel and one captures with this modified one?

Would be good to see if it really improves quality
[Nexus 4 Original Android Development] AdamUpNorth:
OK. Here's my stab at a comparison video.

Two videos. Both are split screen with the main profile on one half and high profile on the other. It's the same footage for both, just reversed sides so you can compare.

I edited the XML file so the bitrate is 20mbps. The footage is all 1080p30. All low light which I think is good because you can see the compression artifacts more.

To keep the timing right I had to clip the footage in places. It may appear that there's skipping but those are just my cuts.

Ignore the colour difference...that was just me accidentally picking the wrong white balance before I recorded.

You can really tell on the shot of the car with the green seat where the compression artifacts are much more visible on the main profile.

Anyway, I hope this helps.

Edit: It's hard to see on you tube because of the recompression. It's much clearer on the original footage that the high is better. To help, crank the res to 1080p in youtube and then full screen it

http://youtu.be/WnF1-XXWaww

http://youtu.be/mjz9MTM13qY
[Nexus 4 Original Android Development] Michealtbh:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

Yep, focus does indeed suck. Please star the issue http://code.google.com/p/android/issues/detail?id=43153&thanks=43153&ts=1359017856
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

Wait for v0.2

Ive been thinking about that feature if i had full net access on my computer i wouldve already done a custom build, i have already done custom binarys built but didnt release that was months ago lkl
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

V0.2 is a flashable zip

This was done in spare time and a hack not really a real go from me lol

Wait for v0.2 n then test 60fps, the forumla is correct so should output 60fps without problems

Thanks to guy who posted comparison video
[Nexus 4 Original Android Development] SuperStyle:
it will be 1080p@60 fps ?
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording(AVC high profile & LEVEL 4 achieved!) (60FPS tests)

1080p 60fp? Ive activated it if it will work is another question

And i have another question regarding audio totally not related to whhat im doing here ive used the phone and my friends always tell me i speak too low when infact i think its the mic, so has there been a fix for this issue?
[Nexus 4 Original Android Development] robifis:
Just flashed it and so far it says 30.32 fps in Premiere. I do hope the 60fps will work in 1080p.
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

I meant its activated in v0.2 not in v0.1
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

If users can answer the question on mic would be awesome as that issues bothering me
[Nexus 4 Original Android Development] alanwyl:
Just a quick question, would fastboot boot boot.img replace my old kernel?

Running Franco kernel now, the power Hal is modified
[Nexus 4 Original Android Development] SuperStyle:
maybe your friend phone has a low speaker ?

I called alot from my nexus and no one complane.

maybe you are by mistake put your funger at the mic when talking ? I dint think there is a problem with the mic
[Nexus 4 Original Android Development] Logi_Ca1:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

No issues with my mic for me. People hear me just fine.
[Nexus 4 Original Android Development] meangreenie:
People have complained about the low mic volume while recording a lot on these forums. Didn't get fixed with 4.2.2, so I don't think it's your phone.
[Nexus 4 Original Android Development] gd6noob:
will this work for 4.2.1 or only 4.2.2?
[Nexus 4 Original Android Development] hp420:
I wish instead of making a full kernel some devs would just release the source to patch the existing kernels with the mod. We've got so many great kernels already that have got insane amounts of mods included....why not let them get their hands on this so we can use the great camera enhancement alongside, say, color calibration improvements, etc.

I really, truly mean no offense by saying this, but since this is a kernel with only the camera improvement I'm going to pass.....but I would love nothing more than to see this implemented in matr1x, trinity and franco!! :D
[Nexus 4 Original Android Development] AdamUpNorth:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

+1

Great idea.

Personally I only really want this camera mod and modules activated in my kernel. Do this idea would be great.
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

It wouldnt replace/flash your current kernel it would temporarily boot it

Thanks ive been looking into that waiting for qualcomm to respond their 44.1/48khz audio is a joke i think its set to that due to a hardware problem but im changing it soon to test since they havent replied to my tweet

Works on both 4.2.1 and 4.2.2 but its better to wait patiently for another test v0.2

I am in no way doing this to distribute a kernel with and make it better than others without releasing source, if you had read the thread you would actually understand that, this is a hack it isn't the right method ive done the right way before but its difficult without the internet as i need to pull aosp and build custom binarys, im looking into maybe switching it from kernel to binary modification something i have done in the past. This also hasnt been finished, once 60-90fps is achieved on 720p it can be implemented in all kernels.
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

Pretty excited for you all to test 60fps, will give it a little test first to see if v0.2 works
[Nexus 4 Original Android Development] tommmtom:
Hope v0.2 works!!!!! :D
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

Not working yet
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

I can do 60fps but it might take a week
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

Anyone know the Cmd to pull aosp cyanogemod jellybean for mako??
[Nexus 4 Original Android Development] gd6noob:
take your time man... cant wait to see the next version.
[Nexus 4 Original Android Development] hp420:
I'm sorry if I came off as accusing you of anything. That's not what I meant. I greatly appreciate your work on this, and I'd love to try it out. All I was saying is that it would be nice to have the source out so that other kernel devs could utilize it. It's not that I don't think your work is worthy or anything....I just like the features that are in some of the big-name kernels from devs who have been in the nexus family for several generations (trinity, franco, matr1x, etc.) If these "big 3" (I'll call them) had this feature rolled in I'd find it far more appealing because these are the kernels I'm comfortable with, and that offer me every feature I want.
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

spent alllllll dayyyyyyyy on this wasted lots of time on this! Never again! But yes v0.2 its still a hack tried another method and it didnt happen So had to revert if 60fps = achieved then source code released and no more from me or maybe ill do more later god knows
[Nexus 4 Original Android Development] hp420:
Why never again? Your work is appreciated by all of us. Thanks for your time! I'm looking forward to seeing that source :)
[Nexus 4 Original Android Development] Shaky156:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

I got so much personal work n studyin to do
[Nexus 4 Original Android Development] alanwyl:
Re: Nexus 4 camera recording v0.1 (AVC high profile & LEVEL 4 achieved!) (60FPS tests

So development will be halted or somebody takes over? It's sad but its your call.:(
[Nexus 4 Original Android Development] Shaky156:
From the log : Init Profile/Level setting success

only setting bitrate fails so thats the last thing i need to fix as far as Im aware the profile/level/ and framerate is successfull. Might require more hard work and time by the looks of things if it fails with successfully setting encoding birate, think I know where the issue lies, if it requires more work then ill leave it for someone else to finish off
[Nexus 4 Original Android Development] ermacwins:
Any sample videos vs stock available?
[Nexus 4 Original Android Development] hp420:
I can respect that :) Real life should always come first. This should never be more than a hobby unless the work you do here can support you.
[Nexus 4 Original Android Development] AdamUpNorth:
Here are the actual files from my previous post. This compares the main and high profiles at 20Mbps. Again, you can really see the compression artifacts on the shot with the car with the green seat. Compare the wall in both videos. The High profile looks much better.

https://www.dropbox.com/s/p9eiroe1l0z71ub/Main-High.mp4

https://www.dropbox.com/s/jz85kbvssiaw0bt/High-Main.mp4
[Nexus 4 Original Android Development] tocirahl:
I don't know man, high just looks yellower to me?