yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] harmohn:
Awesome dedication on getting this working mate! Looking forward to it developing :) ....anyway of donating a drink? ;)

-------------------------------------

Sent from my Nexus One
[Nexus One Android Development] dsixda:
Continue discussion here:

http://xdaforums.com/showthread.php?t=698287
[Nexus One Android Development] charnsingh_online:
After loads of research, i can confirm nexus one does support the 720p encoding, most probably the hardware drivers havent been shipped or android is unable to use it.
[Nexus One Android Development] dirtyhank:
Encoding is a much more complex process than decoding. I don't have the exact figures but I'd say we're talking about an order of magnitude here. Honestly, I don't think the N1 can encode 720p video unless you use a highly optimized codec (probably GPU assisted).

But i tell you what, 480p at 30fps (no dropped frames) would be very nice too ;)
[Nexus One Android Development] charnsingh_online:
EVO 4G chipset= N1 chipset. Yes the N1 can encode 720p. It may be a driver, codec or android limitation right now. Hardware is all perfect. Dropped frames come only in dark conditions in full light conditions i have achieved max of 28 fps though it is a 12 min video me going to my school and it is around 160mb, it could be more fps but the light was dim and if it would be bright we would see around 30fps or more
[Nexus One Android Development] lch920619x:
I'm not sure if 1Ghz CPU can encode 720p well if there is no hardware optimization(the encoded mode affects a lot also), and BTW, encoding costs much more resource than decoding...:)
[Nexus One Android Development] lch920619x:
720P or 480P?
[Nexus One Android Development] dsixda:
I think you're right... On the Milestone the picture gets sort of fuzzy (ISO increased, less noise reduction?) but the frame rate is still constant at 24fps. It still looks decent and is better than what we get on the N1 for indoor videos, where the picture quality is better but the frame rate is crap, like 11 fps. Eww ;)
[Nexus One Android Development] bengrulz:
I thought I read the Evo had a newer snapdragon processor in it...

What's funny though, on the Nexus one spec page, google says "Video captured at 720x480 pixels at 20 frames per second or higher, depending on lighting conditions"

Wouldn't it be nice if that were true!! I think it drops to less than 10fps pretty easily...
[Nexus One Android Development] dsixda:
Yeah I don't get that.... that's faulty advertising. I can easily get 9 fps indoors, and outdoors I can get up to 26 or 27 fps. They should say 9 frames per second or higher ;)
[Nexus One Android Development] coolbho3000:
In the s5k3e2fx driver: http://android.git.kernel.org/?p=ke...5;hb=1a299d63e5183793c6f06f918836380fa3b77940

Change

#define REG_PLL_MULTIPLIER_LSB_VALUE 0x90

to

#define REG_PLL_MULTIPLIER_LSB_VALUE 0xA0

for 29fps capture by the camera. Warning: this "overclocks" the camera (really!). :eek:

Also see commits http://android.git.kernel.org/?p=kernel/msm.git;a=commit;h=ce8d6201f9eb273f3b8a09006f02c30be0abaae1 and http://android.git.kernel.org/?p=kernel/msm.git;a=commit;h=cca4e0a142888068e64ccef87682f347e1051b21
[Nexus One Android Development] charnsingh_online:
Nice find ;). Maybe it can solve other problems like encoding too if they are in the source. Will look into them
[Nexus One Android Development] charnsingh_online:
No android phones record more than 24fps. How r u getting 26-27.
[Nexus One Android Development] charnsingh_online:
Anybody wanna test overclocked camera .

Should we stop at 26-27 fps or go higher it will result in camera oc.
[Nexus One Android Development] jlevy73:
Be happy to :)
[Nexus One Android Development] y2whisper:
Im up for it.
[Nexus One Android Development] jblazea50:
will test it out
[Nexus One Android Development] infinityhombre:
id be happy to test it out as well.
[Nexus One Android Development] WebghostDK:
Re: [THINK TANK] 720p encoding on nexus and improving video quality [UPDATE]

sign me up for a test aswell please!

Sent from my Nexus One using the XDA mobile application powered by Tapatalk
[Nexus One Android Development] charnsingh_online:
No testing today, have some internet problems, for those who can compile here is the source

http://github.com/charansingh/Nexus-one-Video-Qualtiy

it is yet to be cleaned only for testing, experimental

i take no responsibilities
[Nexus One Android Development] chunga:
I don't understand why you guys keep saying that is 720p video. :confused:

720p (HD ready) is the number of pixels in height. :rolleyes:

The phone may possible record 720p width / 480p height so its called SD video ;)
[Nexus One Android Development] hypersonicx:
Re: [THINK TANK] 720p encoding on nexus and improving video quality [UPDATE]

from what I understand I thought the op in this thread was trying to achieve 1280 by 720 pixels which is 720p
[Nexus One Android Development] bhuachua:
You are only thinking about the screen resolution which is limited to 480p. Just think when you take a 5 Megapixel picture its 2560x1920 resolution.

Screen and Camera resolution are separate.

On the topic: Two thumbs up on the development. I got a Google IO edition Nexus for testing the software (if it makes a difference). Waiting anxiously for next development.
[Nexus One Android Development] charnsingh_online:
it is not 720p video i told it earlier too, first thing make the 480p better then start 720p with those mods
[Nexus One Android Development] charnsingh_online:
added new files to my git repositories, i am out for now, worked 4 hours straight on it. New additions, for those who can compile just compile and test the changes
[Nexus One Android Development] MaxiJavi:
Amazing that you register just to post that ...

I hope it made you feel clever :-)

Now, how about you read the thread ??

The screen shot was of MediaInfo, not of the Nexus one (!), showing the resolution and attributes of the captured video ...

Read and think before assuming someone is retarded.

I believed the title of the thread was misleading at the time.

But I very much buy into the objective.
[Nexus One Android Development] chunga:
:eek: wow ! that's amazing, good luck with developing :p
[Nexus One Android Development] lch920619x:
If even 480P is recorded at only 9fps(it is so on my N1), then I don't think a good 720p is possible without revolutionary progress... The reason might be the lack of a specialized encoding chip...
[Nexus One Android Development] charnsingh_online:
No wars please, if u start a war in this project its dead then. If u want to help or contribute just do it and if someone wants to help me in it add me on gtalk

charansingh.online@gmail.com . only if u want to help me. i have reached quite far till now finding the files controlling the audio, i have too many ideas but time i have is too less so if u want the cyanogen mod repo synced and want to help then add me. I have like 20 more ideas for sounds if u get it but i cant test them on single devices waiting each time for it to compile its gonna take ages so if u can help me

PEACE
[Nexus One Android Development] timmymarsh:
Respect the XDA Rules.

Gents,

As Charansingh has said, there is no need to start any flame wars, nor does a difference of opinion give you the right to disrespect another member, whether they are new or not!

Please post with respect; no one wants to be flamed and i dont want to have to hand out the bans (you know who you are!!)

Stay on topic and everybody is happy.

Cheers,

Tim.
[Nexus One Android Development] charnsingh_online:
found something very interesting, in the directory /mach-msm/qsdp5 we find video encoding setting, minimum FPS was set to 8 and in amrnb.c it is only for decoding i think, though i edited some values there, compiling the kernel, if anyone has any knowledge of it or can help finding amr encoding file it would turn out great and good news 16khz audio support unlocked, getting some error at command 13(dont know what it is) gotta go now will come back home and fix. Will try to go highest possible
[Nexus One Android Development] kolobok01:
Can any one post a update file or the code. I can't find it.
[Nexus One Android Development] alijavaid:
me nither find any thing
[Nexus One Android Development] rheza02:
http://github.com/charansingh/Nexus-one-Video-Qualtiy
[Nexus One Android Development] craig0r:
No you didn't. A 480x800 display is incapable of displaying 720x1280.
[Nexus One Android Development] charnsingh_online:
Haha. How do u display a 5m picture on the phone
[Nexus One Android Development] stuff:
Correct me if I'm wrong, but it will just display it at a shrunken version? Why couldn't a camera record at 720p, with lack of resolution on the screen? You're most likely going to put it on something like a computer with a higher resolution anyway.
[Nexus One Android Development] dsixda:
I must have been using the cyanogen kernel when I made my Rom that time, but I did get at least 26. (In the stock camcorder app, just view the settings of the video and it'll tell you the fps).

Anyways, great work.. I would love to help out but my pc crashed and it will take a while to get back up and running. Please post a working zImage if you get it running stable. :-)

EDIT: With the stock kernel, I noticed I had shot an outdoor video at 26fps two days ago.
[Nexus One Android Development] charnsingh_online:
it is a limitation in the android source for the max fps be 24 fps no more than that, i lifted it to 60 and its 60 coz it would make a phone achieve anything above 24-30 which is possible right now, i can attain more but that would be risking the sensor, currently it is clocked at 72 mhz i can go to 80 or 88 but that would just cause some instability.

anyone know of this error

whenever i go above 8khz i get the error

E/AuthorDriver( 123): Command 13 completed with error -17

E/MediaRecorder( 713): prepare failed: -17

E/videocamera( 713): prepare failed for /sdcard/DCIM/Camera/video-2010-05-01-23-17-02.3gp

i solved the previous error , but this is getting on my nerves, if we solve this 44100 audio is a go ;)

so me being stupid forgot the file i saw with the configuration of amr codec bitrate, have to find it again
[Nexus One Android Development] dirtyhank:
The more I think about this the less feasible it seems. I wish we could get the N1 record 720p video but honestly I think there's not enough horsepower in there.

Taka a look at this x264 benchmark(*), they're encoding a small 720p clip with several system configurations. Notice that only higher end Core 2 Duo and above can encode in "real time", I'm afraid results speak for themselves. I'm aware this benchmark doesn't take into account any kind of hardware acceleration, but even if we could get the GPU to help in the process i still think there's not enough horsepower.

Having said that, anything we can learn in the process that helps improving video quality is welcome.

(*) www_techarp_com/showarticle.aspx?artno=669&pgno=3
[Nexus One Android Development] roastlechon:
Has anyone considered MicroSD card speeds? I know that on my DSLR rig that the SD card has to be faster than class 6 in order to record videos longer than 6 seconds.

This could potentially affect performance..
[Nexus One Android Development] charnsingh_online:
so just saw, google ditched us all by not including encoding for aac and more coz i just checked motorola droid has the aac encoder working fine, i use the encoder setting of motodroid which has 16khz audio and better bitrate but when i use that we get a FC saying

E/PVOMXEncNode( 124): PVMFOMXEncNode-Video_AVC::DoPrepare(): Cannot get component OMX.PV.avcenc handle, try another component if available

E/PVOMXEncNode( 124): PVMFOMXEncNode-Audio_AAC::DoPrepare(): Cannot get component OMX.PV.aacenc handle, try another component if available

E/AuthorDriver( 124): Command 13 completed with error -17

E/MediaRecorder( 679): prepare failed: -17

So i am looking into it again what i can do with it
[Nexus One Android Development] dsixda:
I wonder if the encoder libraries can be copied from the Droid ROM and used on the N1?

Also they have settings in the build.prop for the recording bitrates and codecs. Check Google if you need the info.. sorry, I'm on my phone at the moment.
[Nexus One Android Development] dsixda:
Are you saying the file was stamped with 26 fps even though it was only encoded in 24?
[Nexus One Android Development] charnsingh_online:
No, I edited the camera source lifting the limits. Best video recorder is for Droid with Max 25fps and 16khz aac encoding. Encoders are in kernel and not in nexus kernel source but will look if I can do it
[Nexus One Android Development] dsixda:
No, I am talking about my videos. They say 26 fps in the details but you say they can only be 24.
[Nexus One Android Development] charnsingh_online:
yeah they can be no more than that coz the phone is restricted to not record more than 24fps, it is in the camera source
[Nexus One Android Development] bradsh1:
Really glad to see you guys working on the audio quality. The video quality is plenty good enough for my uses but the audio is just an embarrassment. Hardly even passable. I don't know why Google decided 8khz was "good enough".
[Nexus One Android Development] alphagamma:
Indeed the desire has the same 8kHz limitation, it is really embarrassing.
[Nexus One Android Development] prodigiez:
do u mean that n1 is not capable to playback any video with 1280x720 (720p) resolutions ? ive converted few 1080p movies to 720p/mp2 @8000bitrate/29fps/192mhz-aac and it plays very smooth on my n1 with nemo player.

ive tried 60fps but only black screen with sound
[Nexus One Android Development] mike105105:
You can play it back sure, but it is not 720p quality, it is resized DOWN to the nexus one screen size. For it to be 720p quality the screen would also need to be 1280x720.
[Nexus One Android Development] charnsingh_online:
about the encoding, Samsung Omnia HD with 600mhz cortex A8 can encode 720p at 24 fps and so it should be possible for n1 if we try further
[Nexus One Android Development] mike105105:
That is because the omap3430 processor in the omnia hd has hardware accelerated encoding. When it comes to encoding video there is a whole lot more than processor speed that you need to take into consideration. Encoding is a lot more intensive than decoding, I know on my computer it takes nothing to play HD video, but as soon as I go to encode all my cores fire up. Even playback is a lot for these little processors, which is why they have most of that hardware accelerated as well.

Mike
[Nexus One Android Development] veldargk:
Word on the street is the Sony X10 is going to be able to record HD video with future updates. It is running the same processor with no separate GPU. This leads me to believe it IS possible on the N1.

Keep up the good work. Will gladly donate to the cause if you can pull this off.

Cheers,

Jim
[Nexus One Android Development] :
The QSD8250 has native support for 720P encoding.

Re: HTC Desire

.

Source
[Nexus One Android Development] sonyxperia2:
I found this video, it seems recorded with nexus one, and, in my personal opinion, it seems HD recording.. am i wrong? Black bands for me are the prove of hd recording, and the quality at my eyes appear pretty much better than actual one.. what r u thinking about?

http://www.youtube.com/watch?v=M79GIl6PbQI
[Nexus One Android Development] L10nH34Rt:
This is not HD. HD is either 720p or 1080p. This is 480p.
[Nexus One Android Development] sonyxperia2:
I am not talking about the 480p that is ported on youtube, i am looking at the quality and at the balck bands. Look at others nexus one videos and look at their black bands. An look at desire video black bands, these are definelly higher than the video i posted. This, in my opinion, mean higher resolution. Look at black bands on omnia hd recording: black bands are at the same positions. Does not matter in which resolution it is shown on youtube.. in youtube you can find a tousand video of omnia hd (hd recording) that are streamed on 480p... I mean, look at bands, quality, and frame... to me it seems hd. I hope that is a (hide) preview of what we can expect from froyo 2.2 for the nexus one.. hope for 19 may at google i/o..
[Nexus One Android Development] L10nH34Rt:
Could be, but on Omnia HD we already know that it can record @ 720p. On the other hand Nexus doesn't and I can only assume that if somebody got it working @720p he would surely upload the video at the highest res available..

I guess we'll just have to wait and see :)
[Nexus One Android Development] mike105105:
http://seinsider.com/?tag=snapdragon-qsd8250

That is about "the brain of the x10", and it specifically states 720p decode, if it did encoding too I am sure they would be bragging.

The thing that is neat is from the snapdragon wikipedia article about the upcoming processors:

Now I cant wait for devices with those :-)

Mike
[Nexus One Android Development] sonyxperia2:
He he, you are in wrong mate, Sony Ericsson has just announced to give this autumn HD recording to x10 :), this means that snapdragon are capable of recording in HD, nexus one included!

http://blogs.sonyericsson.com/produ...on-xperia™-x10-to-get-uxp-upgrade-in-q4-2010/
[Nexus One Android Development] antoniouslj:
I see it this way...

If you were to shoot an uncompressed HD video at 720/30, you'd need ~83MB of bandwidth available just to transfer the data to memory (whether it be to internal phone memory or SD card (which we all know wouldn't work on microSD because most of us don't have class 80 cards).

Now we all know that this is why hardware encoders are utilized. They cut down on the CPU load needed to do on the fly coding just so the data can be written to memory.

From Wikipedia:

This above is why the Snapdragon struggles. Now if we could somehow get the camera to shoot uncompressed HD video at 720/30, we could probably get a good 3 second clip before we ran out of memory! :p
[Nexus One Android Development] :
1. Same aspect ratio as HD does not = HD

2. thats pillarboxing....16:9 recording would have letterboxing on 4:3 480p

you are not going to be recording raw video...it will be compressed after its processed. it does not go straight to the SDcard...it goes to the RAM and cache before its stored....
[Nexus One Android Development] antoniouslj:
Wooooooosh!
[Nexus One Android Development] charnsingh_online:
720p encoding without any camera source using gpu is impossible. There will be hellot optimization before it is made possible on n1 n its far too much to do for a casual coder. Wat I can do at Max is improving video quality which is being made possible now. Good results are achieved till now and I am trying to do more. Next I am trying is fix the 8fps lower limit. Will try doing it tomorrow as I am too busy today. If anyone can fix the 720p or help me with the 8fps limit u r more than welcome to help me
[Nexus One Android Development] :
if/since this is kernel level stuff... just wait for the desire's update that will include HD recording. when they release the source, you can use their code since the desire has the same exact chip as the N1.

im pretty sure google will put it in themselves soon enough since one of their project leaders said there was a lot of surprises in store for the nexus over the coming months (and that was in addition to Froyo + things that are already announced)
[Nexus One Android Development] charnsingh_online:
its gonna be too late, gonna take long for the desire HD recording update and the kernel sources
[Nexus One Android Development] mike105105:
Listen, I would love for HD recording, but I highly doubt it will happen unless some hardcore devs at htc do some major magic using the cpu and dsp, and even then I dont think the results would be great. Not one place on qualcomms snapdragon site does it mention our processor doing hd encode, it is a hot bullet point these days so they would put it in. They mention the next gen will do HD.

http://www.qctconnect.com/products/snapdragon.html

As for any other phones that use this exact processor, if they do real 720p then either the devs are really skilled with a lot of spare time, or there is a secondary video codec processor.

Mike
[Nexus One Android Development] charnsingh_online:
even omap3 processor in droid can encode 720p and omnia i910 HD has the exact same CPU and GPU as droid and does 720p so it is even possible for droid and X10 and Desire are getting 720p so it says snapdrgon can do that too
[Nexus One Android Development] mike105105:
Ok, when referring to the omap processor don't say "even" like the omap is a lower class processor. Each of these processors is different, and to be honest the video is superior in the omap. It has IVA 2+ and powervr sgx, both of which are powerful. Like I said, if HD is going to come to our phone it has to come from HTC, it is going to take intimate knowledge of the hardware and the lowest level of access to that hardware.

Mike
[Nexus One Android Development] charnsingh_online:
OMAP3 CPU is inferior, and overall the graphics processing too become inferior due to that, look at the triangles/sec by snapdragon and that my omap3, snapdragon does way more
[Nexus One Android Development] mike105105:
Well that is definately one opinion, but at the same time as far as I know our nexus one does not have a seperate gpu while the omap devices do. But I really have no clue about the 3d performance, what I do know is the omap appears to have better hardware codecs. On monday I will try to put a request in at work for the datasheet on the snapdragon since most of the info I have seen is only sales flyer type stuff not hard, detailed, fact.

Mike
[Nexus One Android Development] charnsingh_online:
You sir are truly mistaken. Snapdragon has a separate gpu called adreno 200.
[Nexus One Android Development] Gslick:
HTC Sense Cam On Cyanogen Rom N1

I record at (WVGA 800 x 480) With amazing sound with HTC SENSE Camera on my cyanogen Rom (nexus one)..?

See attached, it's 3gp format (I would convert it for you guys but I'm at work), (if you like grab quicktime as it can play it on its current format) but if you can play it or change the format to watch it, you can see the slot machine I was playing (counting) So fps must be high as hell and sound is very good and loud. Also go see my vids on youtube, I'll add this 10-11 sec video to my channel as a video cam test (obviously low light as well)

www.youtube.com/user/exclusivegslick
[Nexus One Android Development] charnsingh_online:
It is 16.540 fps exactly and audio again is 8hz which is worse than what we have, i would prefer a standard resolution like 480p, 720p rather than 800x480 and only good we can have with better audio is porting libs from moto droid
[Nexus One Android Development] charnsingh_online:
I am very close to h264 n aac.expect a working mod tomorrow if it works
[Nexus One Android Development] charnsingh_online:
1 step away from h264, n i cant figre out how to remove error, need some help now

Libs is solved, compiled the libs for h264

anyone wanna help
[Nexus One Android Development] Digitalthug:
Hey, first off wanna say man this is an awesome project ur workin on, I hope it gets completed!!

I would ask Kenny Root for help. Maybe he would be of assistance since he's the one who added FLAC audio support to Cyanogen mod.

Here's his website: http://the-b.org/Main_Page

Edit: And maybe Meltus? I'm sure u know of him, he made the Louder Volume Hack app.
[Nexus One Android Development] fiuza91:
Dude if that ever becomes reality, it would be so awesome! I know that there are other android phones with 720p video recording with similar hardware (Galaxy S, Evo 4G and the Xperia X10 will get it with an update) so I really think it is possible on the Nexus.

Unfortunately I have no knowledge on video encoding/decoding nor android development to help you out. :(
[Nexus One Android Development] aujbman:
So, the desire code is out now. Wouldn't that be of some use?
[Nexus One Android Development] leoni1980:
No because audio and framerate on Desire video sucks equally. Only advantage is tap to focus and pre-focus in video.
[Nexus One Android Development] Airbag888:
I'd love Tap to focus on my camera at least
[Nexus One Android Development] spr33:
I always thought 720p was 1280×720, no?