yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 General] medimel:
After more search video encoder take its source directly from sensor at 1280*720 aka 720p res.before to encode it aplly some heavy filters.

maybe usefull by poor light conditions but in optimal ones it reduce spatial resolution too much and create some aliasing on lines and fine details.

The results is video just a bit more detailed than a good 480p.

here a sample of it in source code documentation :

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

Name	CX2341X_ENC_SET_DNR_FILTER_MODE

Enum	155/0x9B

Description

Assign Dynamic Noise Reduction operating mode

Param[0]

Bit0: Spatial filter, set=auto, clear=manual

Bit1: Temporal filter, set=auto, clear=manual

Param[1]

Median filter:

0=Disabled

1=Horizontal

2=Vertical

3=Horiz/Vert

4=Diagonal

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

Name	CX2341X_ENC_SET_DNR_FILTER_PROPS

Enum	157/0x9D

Description

These Dynamic Noise Reduction filter values are only meaningful when

the respective filter is set to "manual" (See API 0x9B)

Param[0]

Spatial filter: default 0, range 0:15

Param[1]

Temporal filter: default 0, range 0:31

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

Name	CX2341X_ENC_SET_CORING_LEVELS

Enum	159/0x9F

Description

Assign Dynamic Noise Reduction median filter properties.

Param[0]

Threshold above which the luminance median filter is enabled.

Default: 0, range 0:255

Param[1]

Threshold below which the luminance median filter is enabled.

Default: 255, range 0:255

Param[2]

Threshold above which the chrominance median filter is enabled.

Default: 0, range 0:255

Param[3]

Threshold below which the chrominance median filter is enabled.

Default: 255, range 0:255

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

Name	CX2341X_ENC_SET_SPATIAL_FILTER_TYPE

Enum	161/0xA1

Description

Assign spatial prefilter parameters

Param[0]

Luminance filter

0=Off

1=1D Horizontal

2=1D Vertical

3=2D H/V Separable (default)

4=2D Symmetric non-separable

Param[1]

Chrominance filter

0=Off

1=1D Horizontal (default)

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

This review sample seems to confirm lowest spatial resolution.

http://www.gsmarena.com/showpic.php...galaxy-s-vs-iphone-4/samples/gsmarena_016.jpg

I m not sure this is the values to tweak but sure video capability of our device is not fully exploited.

dont know how to recompile them to do some tests.

May someone can recompile them disabling all those filters and enable a better 720p output...

edit: again workin on it to find a way to recompile it for disabling filters to do some tests
[Galaxy S I9000 General] Maddmatt:
Is this about video recording? I noticed that it was nowhere near 720p when I copied a test video I made and watched it on my PC. It was very obvious that it was 480p at most and just saved at a higher resolution.

I guess this is why the default setting is 480p.

Looks like you just proved some blatant false advertising by Samsung.

Man they really screwed up the software bad. Well at least now I know that there is no point recording at a higher than 480p resolution, the higher resolution just a waste of space and to cover up false advertising.

Edit: Or are you talking about video playback? Maybe I'm reading this wrong. 800x480 does match the screen's resolution.
[Galaxy S I9000 General] medimel:
yes speaking about video recording
[Galaxy S I9000 General] android53:
Interesting...
[Galaxy S I9000 General] tarzanug:
Very interesting if possible to recompile with these settings upped to 720p.

But most probably it will not record it, frames lost etc are expected as I think samsung obviously set is as is now because the 720p didnt work... why else?
[Galaxy S I9000 General] R4yn0r:
Why did samsung add their **** framework? Same question, we don't know what samsung thought while doing that ****...
[Galaxy S I9000 General] dupel:
Its probably true for all 5 megapixel phones. Its just not enough for 720. Possibly 8, but really 12. Nokia and Sony always produced best camera phones and they almost never used 720p till 8/12. It stands for a reason.
[Galaxy S I9000 General] medimel:
iphone 4 is 5 mpixels too and u can see in first post review it managed to maintain 720p resolution.

think samsung decrease resolution to make video process easier (less is the resolution less visible noise artifacts become) instead of really optimize it.

Trying to desactivate this process and output raw 1280*720 video without filters may make video noisier but it deserve some tryings
[Galaxy S I9000 General] Maddmatt:
You assume this based on the Galaxy S only or have you looked at other phones too?

The iPhone 4 does true 720p from the samples I've looked at. It's still not that great and the colour seems a bit off, but at least the specs aren't a blatant lie.

I don't want to sound like a troll, I really like this phone. But major software issues and false advertising just gets to me and kills my respect for Samsung.

Not that their competitors are any better overall.
[Galaxy S I9000 General] spandsbab:
WTF?

Well as this seems true, I hope some Devs can come up with something...

Our phone has a lot of potential but yes Samsung sucks at it...
[Galaxy S I9000 General] freakfingers12:
Hmm, interesting. We've been had. Yeah Samsung, way to go!
[Galaxy S I9000 General] Daemos:
That doesn't make sense at all...720p is like 0.9 megapixels...if the sensor is 16:9 ratio for sensor area size.
[Galaxy S I9000 General] troppxda:
Pay back Samsung

If it's a false advertising then there should be a rebate or a complete refund from Samsung for misleading customers. For me, one of the reasons to buy SGS was its video capability...
[Galaxy S I9000 General] The_Double:
The only limitation is data processing speed, in terms of bandwidth and compression.

I suppose the same is true for the HTC phones, 480 looks better than 720p videos taken with my dad's Desire.
[Galaxy S I9000 General] Qazz~:
720p has a resolution of only 1280x720 which = 921'600 pixels. 1million pixels = 1 megapixels so theoretically even a 1mp camera can record 720p videos which is indeed true as there are camcorders which are only 2mp that can record 720p videos.

Only thing limiting it is software and/or image processing speed which is definitely not a problem for out Sgs
[Galaxy S I9000 General] spandsbab:
Hhhmmm... Then it can be modded?
[Galaxy S I9000 General] medimel:
iphone 4 manage to do it with very similar platform.

samsung think we cant see difference between real hd and wvga videos upscaled.

i dont want a dedicated camcorder result but they can do really better.

think devellopers had taken a short cut to make things easier.

lesser base resolution ,agressive noise reduction softening fine detail, 720p scaling and a bit of sharpening to make it "hd look".To finnaly compress it in h264 10mps (most popular format in hd and supported by phone hardware) for useless big files / real resolution ratio.

but if sensor seems able to manage 720p output let s someone trying to recompile it(not able to do it) and if not may we can obtain a good 800*480 video recording with smaller file results.
[Galaxy S I9000 General] vinclar:
:mad:If this is true, its a SCAM like the 512MB ram we only can use 464MB.

Shame on Samsung, specially in the software development department.
[Galaxy S I9000 General] spandsbab:
This seems like a very logical way to go, great thinking!:D
[Galaxy S I9000 General] The_Double:
I did a small comparison. Phone placed against my bedroom window to minimize movement, 2 video's taken without repositioning. It's really clouded, so light conditions aren't optimal.

The top stills are downscaled to the same size using the 480p shot as a baseline. The lower 2 upscaled to 720p (this one is unfair, because photoshop has some HQ upscaling algorithms.)

They definitely don't use the same output. unless Samsung uses some really crappy upscaling techniques.
[Galaxy S I9000 General] vinclar:
480p video seems to be much more focused than 720p, on 720p there are a lot of artifacts
[Galaxy S I9000 General] Preslavcho:
.../media/video/ ... sounds to me like its PLAYBACK ... not recording... idk
[Galaxy S I9000 General] medimel:
great demo The_Double !!

this is exactly what i noticed.made some 480p vs 720p match before searching issue in source code.
[Galaxy S I9000 General] medimel:
it s about recording and playback in jpg drivers because its a codec ( encode and decode) then fimc directory is the camera driver
[Galaxy S I9000 General] Rawat:
I'm no expert, but that's what i thought too.
[Galaxy S I9000 General] Gingerbred:
Lol

You really think these phones can record true 720p. The lenses are just not good enough. Galaxy S "720p" output still destroys HTC
[Galaxy S I9000 General] medimel:
ok for the lens but how do u explain poor match between 720p and 480p.

im not telling we can make it better than a dedicated camcorder but just that there s no real 720p recording in software process.

just a poor upscale to name those videos "hd"
[Galaxy S I9000 General] freakfingers12:
Yeah, medimel, that's disappointing on the software part. That's a good comparison of 480p and 720p. It's upscaled pretty bad. Damnit, I knew there's something wrong with the 720p. So disappointed man.
[Galaxy S I9000 General] KMino:
True lens is crap but the sensor is 5MP, more than enough. Do the math like someone already did a few posts back. Galaxy S 480P output destroys it's own 720P, so HTC must be verrrrry bad because 720P is crap on SGS. :eek:

Someone didn't read the thread ;)
[Galaxy S I9000 General] Gingerbred:
Too much noise and grain to capture in 720p. Iphone has better sensor and optics capturing more detail.
[Galaxy S I9000 General] milsjg:
You either not know what you talking about or just trolling. Simple test before you start an argument.

Put your SGS in 720P record.

Take som shots.

Save.

Transfer it to your PC.

Open VLC or another videoplayer that can read and give information about the codec.

Play the video in VLC.

Stop the video.

Goto tools.

Choose Codec information and read. The reading will be

Resolution: 1280x720

Codec: H264 - MPEG-4 AVC (part 10) (avc1)

Of course you can not view that resolution on a screen that is 800 X 480. You can not view 720P on an Iphone either even if you may think so.

Make some research before trolling so you at least has the basic knowledge before trying to argument about a subject you clearly do not know.
[Galaxy S I9000 General] imparator:
Just take a good look at the screen of your SGS while in video mode but not yet recording. Set the resloution to 640x480 en focus on an object. While focussed on that object change the resolution to 1280x720 an be aware of what you notice.
[Galaxy S I9000 General] seven2099:
This is absolutely correct.

I dont think the OP has any idea of what he's really looking at.

Obvious troll is obvious
[Galaxy S I9000 General] milsjg:
Well maybe there is a not so good implementation or bad lenses but the question is do it record in 720p? The answer is YES. By the way if you read the review that is mention in the first post the conclusion is that video and photo is better on SGS then iPhone 4 so why bother.
[Galaxy S I9000 General] BronzedDroid:
He's talking not talking about what resolution the video files recorded are. He is talking about what the camera actually records, and he's claiming that it records in a lower resolution and then scale it up to 720p just to make it bigger. What that means, is the the resolution will be bigger but the quality should, in theory, be just the same as 480p. The video samples people have provided in this thread seem to indicate that 720p on the SGS actually have less details than 480p.
[Galaxy S I9000 General] milsjg:
Well lets do it again. Now take a similar video in 480p and save it. Transfer to a PC and judge visually besides that the codec tells you that it is in 480p. What do we see? Well, a less sharp and more fuzzy video on the 480p then the 720p. Well it is somewhat frustrating with people that try to make something out of a feather. The problem may (or must likely come from) the fact that 480p is more "like" the resolution of the screen. When viewing in 720p the SGS has to rescale the video to fit into 480X800 which means that it has to throw away information. Well we our now back into the beginning. Take a video in 720p transfer it to the PC.........................
[Galaxy S I9000 General] android53:
Your totally missing the point, do you understand what upscaling is?
[Galaxy S I9000 General] milsjg:
Try to do the video experiment described above before posting more disinformation. There are other things to discuss about the SGS other then the video that is top notch (better or if you are iPhone fanboy equal to iPhone4).
[Galaxy S I9000 General] BronzedDroid:
I was being neuteral and I only retold what OP said. There was one person earlier in this thread posting snapshots where it seemed 480p was just as sharp, but I have tested it myself and it seems 720p actually is somewhat sharper.
[Galaxy S I9000 General] milsjg:
So upscaling is when you take a 480p video and re-render it to 720p for example. So i know quit well what it is. I think the posts in this forum just claims things without any knowledge . Read my post above. Do the experiment and come back if you do get just an upscaling from 420p to 720p. Do not throw away your time on discussing a problem that is not there. I will considering you as presumably trolling if you do not do the very simple experiment which I described above. If you get a worse and less detailed video with 760p your phone is broken = return it to Samsung.
[Galaxy S I9000 General] evil-doer:
uh. someone did that a couple of pages back in this thread. and the 480p videos looked MUCH SHARPER.
[Galaxy S I9000 General] freakfingers12:
You lost me, milsjg. Go back to your room and feel content about yourself for spilling crap here. Read the last post in page 2.
[Galaxy S I9000 General] milsjg:
Yes, I did read it and I did not believe it. So I did it myself and voila there is a clear differences between 480p and 720p. You and others just trolling and certainly not capable of doing your on experiment. If it is because you not have a SGS or because you are not interested in facts but just want to complain, I really do not know. The experiment takes 5-10 minutes and it will answer the question.

To just believe someone that posted something and not try to look for the answer yourself is just plain stupid, special when it is so simple. It reminds me of followers in some obscure religious sect that do not want to see for themselves but just follow something that others preaching.

Well I have said enough and I know that you will continue complain and not be constructive. By all means do not look for yourself but continue follow the trusty knowledgeable leader.
[Galaxy S I9000 General] freakfingers12:
Post up your facts, then. Thanks for your advice mate.
[Galaxy S I9000 General] milsjg:
You really do not grasp it do you. It is you that should look it up for yourself not following others. This conversation seems to be more and more like the talks I have with my sons when I trying to get them to be independent adults not trusting everything that is said, specially on the net.
[Galaxy S I9000 General] pingling:
May I ask you how much experience you have in C coding and a/v field? For now you've just quoted some identifiers from the jpeg codec. As the SGS display is an RGB device I'm not surprised seeing 800*480 as MAX_RGB_RESOLUTION.

How do you know that the 720p video recorded by SGS is a stream of JPG frames? And even if it is - why would max rgb resolution be used (well, I don't see it being used anywhere in the camera files) instead of max jpg resolution? BTW, fimc.h has the following:

#define FIMC_HD_WIDTH	1280

#define FIMC_HD_HEIGHT	720

#define FIMC_FHD_WIDTH	1920

#define FIMC_FHD_HEIGHT	1080

Shall I now announce that SGS is capable of FullHD recording?

If you did some in-depth analysis then please provide it here. Quoting some values taken out of context is not enough...
[Galaxy S I9000 General] BronzedDroid:
My results

I saw the comparison that someone posted earlier. I wanted to try it myself and this is my result. People can make up their own mind.

Edit: XDA converted and scaled down my image. Here's an alternate hosting site:

The room may have been a bit too dark to be optimal, so I guess there would have been less noise in the photo with more light. Also this was done with hardcore's kernel, which has less RAM dedicated to camera, so I am not 100% sure how representative these results are.
[Galaxy S I9000 General] CampGareth:
My own test images

Proof of what, I shan't say until after the images:

imgur.com/tiDGu.jpg

imgur.com/Sw4XL.jpg

(still under spam prevention rules, if someone could embed the images it'd be much appreciated)

Now that to me looks like conclusive proof that the phone records video in what is quite probably 720p when told to do so, or at the very least it's higher quality than 720x480. Unless there's some very impressive image upscaling going on I find it unlikely that extra text definition is being conjured up.

On a separate note, I've just noticed that there's a greater viewing angle on the 480p picture than the 720p one, after testing the two modes it turns out that this is an effect caused by the phone though I don't know why. I can assure you both pictures were taken from the same location as I used a lamp to steady myself.

Printed paper is better as a photo target than houses due to a very un-subjective nature, the text is very clear cut and intentionally so.
[Galaxy S I9000 General] EarlZ:
We gotta admit the camera on the SGS is pretty crappy so 480p or 720p barely batters anyway.
[Galaxy S I9000 General] Mopral:
Here is what I think:this file seems to be the Galaxy S settings for photo

first: max resolution for sensor -> 3072*2048=6291456Pxl

second: max resolution for thumbnail

third: max resolution of the Galaxy S screen (the software must know which is the screen résolution available on the device)

I DO NOT say that 720p video is real HD but if it is just upscaling from 480p, I do not think that the explanation is here...

My two cents...
[Galaxy S I9000 General] Rawat:
Done.

/10 char
[Galaxy S I9000 General] Ibanez33:
I'm not sure what to think...

But on those last too images the clarity is a lot better on the 480 screen shot..

Edit I resized the 480 image to 1280x720 as a comparison...
[Galaxy S I9000 General] Prankey:
I COMPLETELY FAIL TO UNDERSTAND WHAT THE OP WANTS TO CONVEY QUOTING MAX RGB VALUES FOR THE DISPLAY!

I have made TRUE 720p videos on my SGS and have NO DOUBT that it is INDEED 720p and NOT UPSCALED. I can compare with all the SD sources and if we could make something out of this rather VAGUE thread, I could run some test. Otherwise this thread seems to me as a waste of time mate.

We should spend time trying to improve on the microphone sensitivity issues which messes our vids in loud environments.

On a side note, while the stills are not great on this phone, vids are quite good (surprisingly) in 720p.

I can't even imagine that Samsung will be such silly to first record images in 800x480, COMPRESS them as JPEG and than UPSCALE to 720p using h264. Can someone agree to such logic? :D
[Galaxy S I9000 General] xan:
Well, there is no need to go h264 -> yuv -> jpg -> resize -> jpg -> yuv -> h264.

Its rather h264 -> yuv -> resize -> yuv -> h264.

I doubt its the case here, second screencap with a document on it proves its quite "native" 720p
[Galaxy S I9000 General] medimel:
im not complaining about samsung but just sharing my feeling about 720p recording on my sgs (yes i own it)

i got a good experience in video treatment and restoration so im familiar with some effects or artefacts on videos.

didnt made my conclusions on my sgs screen but on a 19" with video treatment software.

yes i know what is video codec info and sure final video is 720p.

u can encode qvga video in 1080p if u want but spatial resolution still the same.

im againn searching what s causing this loss of spatial resolution.

there s something in video process who eat fine details :

- first way lesser resolution in capture to minimize data flow and video artefact

- second way real 1280*720 video frame size but with very n constant agressive noise reduction (usefull with poor light conditions but not in daylight)

- 3 it seems video is encoded by a suite of jpeg file sent to h264 encoder .may compression of this stills are too heavy for preserving ram usage and at expense of crispness(like on mjpg codec).

- there s others way but prefer to work on it before to speak about

try something

mplayer classic with ffdshow decoder

in filters put unsharp sharpen mask to the max.

u will see sort of aliasing on line or small objects.

measured this aliasing and its near the double that it should be with a 1280*720 vid.

my only goal is too tweak sgs video recording.

just feeling like others there s something wrong.

im not a dev and maybe this is not the right line of code who manage video limits.

im just sure it can be really better and gonna make my best to prove it

if a dev can take a look sure it will interess many people
[Galaxy S I9000 General] oswade:
Seems lie this was a false alarm after all lol. Moving on...
[Galaxy S I9000 General] Maddmatt:
Instead of just looking at numbers, open your eyes and look at the actual video on a high res screen. It may be saved at a 720p res but there is little if any more detail in there than 480p.

I still don't believe this phone is capable of 720p. There is definitely not 720p of detail in the video. The fact that recording in 480p actually produces better quality just goes to show that the inclusion of a 720p mode is just a trick for marketing purposes.
[Galaxy S I9000 General] wouwout:
@bronzedroid thanks for the comparison, but this should be done in daylight. I'll have a look at it today.
[Galaxy S I9000 General] pingling:
I second the opinion that there should be a daylight test in really good light conditions. Otherwise we'll be testing noise reduction algorithms which have a big impact on the real quality of image/video.

Unfortunately it's been raining since Friday here in Brussels :(
[Galaxy S I9000 General] xan:
dont forget to pick keyframes...
[Galaxy S I9000 General] Maddmatt:
Here is a screenshot from a daylight (late afternoon so maybe not idea) video at 720p.

This was done a while ago on a 2.1 firmware, maybe Samsung improved it a bit by now.

I used Windows Media Player and made sure the video was scaled too 100% so the screenshot is accurate pixel-by-pixel. I also saved at 80% Jpeg quality in Gimp so compression artefacts have little to no effect, that's what you see when watching it.

720p my ass:

http://www.picdrop.net/uploads/sgs720p.jpg

Even if the code the OP found has nothing to do with it, you can see the videos with your own eyes.

You can search the net for sample videos from other people, you can see they don't look like 720p. The difference is very obvious to anyone who knows a bit about resolution and has seen HD video before.
[Galaxy S I9000 General] brunes:
Yes and this makes perfect sense as this is the resolution of the display.

This is the first thing I thought when I saw those values. "Hrmm strange coincidence this is the exact size of the display"

IE this thread is likely much adieu about nothing IMO
[Galaxy S I9000 General] brunes:
Anyone who thinks they are going to get high quality HD video from a phone has rocks in their head. The lens and CCD in a cell phone simply is not good enough.

Has anyone compared to an iPhone4? It's HD is also total crap. As expected.

People seem to think that just because something is "HD" means it is high quality - HD is just a size of video. It is the lens and the CCD that matters. And unfortunately a nice lens and a cell phone can not co-exist.
[Galaxy S I9000 General] mdalacu:
For the cpu it's way harder to compress 720p frames instead of 480p frames plus common upscaling algorithm. So, I too think that Samsung it's fakeing it.
[Galaxy S I9000 General] ro4sho:
Yes it looks upscaled