Slashdot Mirror


On NTSC Video, Blue Blurring, Chroma Subsampling

NEOGEOman writes "Something I've been fascinated with for a long time is video signals. On my website I've spent over six years collecting video and other hacks for game consoles. I've recently put together the fourth revision of my video signal primer and it's expanded to six pages now, including strange subjects like chroma subsampling, horizontal colour resolution and rather interesting revelation: your eyes suck at blue."

44 of 308 comments (clear)

  1. Uhm... by the+unbeliever · · Score: 3, Funny

    Can anyone possibly tell me why the hell this site is listed in my company's web filter as pornography?

    1. Re:Uhm... by NEOGEOman · · Score: 3, Informative

      There are some boobs on the mainpage (nfg.2y.net). They're the only ones on the whole site, but apparently it makes it unworksafe for a lot of people.

      You can alternatively try http://nfgman.ath.cx - it's the same server, different name.

  2. Suck at blue something horrid. by danamania · · Score: 4, Interesting

    My eyes suck especially badly at blue. a pure-blue image is something my eyes completely refuse to focus on. I can see the image is there, see that it's blurry, but whatever makes my eyes focus just doesn't work on blue. Light a room with pure blue light and I'm almost blind. gah!.

    Add some other colours and I'm fine. Curiously, given a red line of text, a green line of text and an off blue line of text, I have to focus differently for all three. (Fully blue is, of course, a complete waste of time :)

    1. Re:Suck at blue something horrid. by Xzzy · · Score: 2, Interesting

      What I find especially straining is the default colors for ls --color, at least under fairly recent linux distros.

      Compressed files get a bold red, directories get a slightly dimmer blue. I use a black background on my xterms, and I've found that when I try to read a directory that has a lot of both I'm constantly having to refocus when I go between blue and red areas.

      It's annoying enough that on any new machine the first thing I do is change my alias for ls to no colors. :p

      I wonder if this is something that could be considered a genetic defect of some sort, or does everyone react that way to blue/red?

    2. Re:Suck at blue something horrid. by robwmc · · Score: 2, Interesting
      The color blue exists at the low end of the spectrum of visible light. The bluer the color, the harder it is to focus on. The wavelengths are so short that they won't focus on the retna properly, hence blue is blurry.

      It is a common thing to see a deep blue color and not be able to distinguish edges but notice a "glow" around the colors.

      Oh great, now I can't find my keys.

    3. Re:Suck at blue something horrid. by zakezuke · · Score: 3, Interesting

      Wavelenth issue? As in better manual focus lenses have an infrared mark on them that basicly you focus normal, and step it back a notch for IR to be in focus. Whether or not the human eye much focus diffrently for objects closer up showing diffrent wavelenghs is beyond me.

      I do know that in order to detect red from green I see the effect of the surrounding, as in green reflects more light then red does... as in green leds are annoying cause they make the whole room bright... but the red ones do not.

      Being color blind, i've studdied this quite a bit. I find that i'm fond of purple text rather then blue dispite the total lack of contrast between the two. I'm the one who made purple british flags in gradeschool didn't understand what I was doing wrong. Stupid unlabled markers. Red text on black is my worst color combo, can't see the contrast usually.

      I find i'm better with blues then others, but never the less, i'm familar with this lack of focus esp when the blue is on contrasting background, yellow/green/red. I know on my old amiga... my text colors were hard for others to see, as I picked what I considered to be high contrast in my eyes... blue / black / green. No other bugger could read the blue I picked.

      --
      There is no sanctuary. There is no sanctuary. SHUT UP! There is no shut up. There is no shut up.
  3. Once again, Europe is ahead by whoever57 · · Score: 2, Informative

    RGB is standard on most equipment as it is included in the SCART connector usually found on any TV/VCR/DVD sold in the last decade.

    --
    The real "Libtards" are the Libertarians!
  4. False positive by tepples · · Score: 4, Informative

    You may want to read a report on misbehaving censorware. Blocking the the article as "pornography" is misbehavior. If your company's business has anything remotely to do with video production or video games, ask your IT department to review gamesx.com (the site on which the article is hosted) and consider whitelisting it.

  5. Girl by Anonymous Coward · · Score: 5, Funny

    who's the girl? She's hot ;)

    1. Re:Girl by NanoGator · · Score: 3, Funny

      "who's the girl? She's hot ;) "

      Shit! I'm gonna RTFA now! Glad you mentioned that.

      --
      "Derp de derp."
  6. Obvious Physics by rbruels · · Score: 5, Informative
    If NEOGEOman had bothered with a freshman-level physics or astronomy course, the conclusion that "your eyes suck at blue" would have been obvious some time ago.

    It's well known; as our eyes drift to the blue and red end of the spectrum, we lose our sensitivity, off by many orders of magnitude from say, yellow. This is why you see blue, and more commonly, red, lights as "night" light sources.

    The general reasoning: our eyes evolved with a single primary light source: the Sun. Which has quite the yellow tinge to it. Our eyes adapted to this, and as such, gave yellow the highest sensitivity and drifted off in a rough bell curve from there.

    It was an interesting article, and certainly put the RGB sensitivity into perspective, but ... it's not entirely new or surprising, either. Nor does the human eye really respond at RGB -- its response curves (beta, gamma, and rho) more closely correspond to blue, green/yellow, and yellow/orange.

    That all being said, thanks for letting us meet Traci. ;)

    --

    "All your base are belong to this file I send in order to have your advice."
    1. Re:Obvious Physics by Anonymous Coward · · Score: 5, Interesting

      You have been misled.

      It is in fact BLUE at 445nm that the eye is most sensitive to. Blue receptors are the most sensitive.
      This "sucking at blue" thing has nothing to do with sensitivity of the receptors, but with the fact that only 2% of the cone receptors are the blue sensitive ones, so you have no resolving capability in the blue part of the visible spectrum.

      This is an issue of resolution NOT sensitivity.

      Furthermore, I have been researching vision for about 10 years now, and I can tell you that the curve you linked to is totally fucked up. The leftmost curve is not far enough to the left at all. 445nm, which is what your blue cones are sensitive to is far more purple than that stupid graph would have you believe.

      You need more reputable sources.

    2. Re:Obvious Physics by kaphka · · Score: 2, Interesting
      It's well known; as our eyes drift to the blue and red end of the spectrum, we lose our sensitivity, off by many orders of magnitude from say, yellow. This is why you see blue, and more commonly, red, lights as "night" light sources.
      No. Red lights (certainly not blue) are used in low-light situations, e.g. a ship's bridge at night, because the photoreceptors that are used in scotopic conditions are most sensitive to short wavelength ("blue") light. If you stepped out of the starlight outside and into a room with a blue (or white) light source, the rods in your eyes would immediately be saturated, and it would take up to a half hour of darkness before your night vision was fully restored. However, red light is way over at the other end of the spectrum, so it has no affect on your night vision.
      --

      MSK

    3. Re:Obvious Physics by NEOGEOman · · Score: 2, Insightful

      OK, so you're saying our eyes don't suck at blue, or that they suck for different reasons? The end result as I see it is exactly the same - we still perceive very low resolution in blues, and we can reduce the detail in an image's blue channel without a noticable drop in image quality. This is proven through the pictures I provided. Is there more to the story? There sure as hell is! Am I the world's leading comprehensive source for Eyes+Blue information? Nope, nor do I claim to be.

      What you say is fascinating, but beyond the scope of my tiny little primer which aimed to prove one point (And I think succeeded). As for the chart I linked to, you might be best to take up your crusade with them. ;)

    4. Re:Obvious Physics by NEOGEOman · · Score: 5, Funny

      I actually chose this image because it was more or less neutral, with a primarily white/grey image. All the other images I have of Traci have far, far more flesh colours in them. ...

      I've said too much.

    5. Re:Obvious Physics by utahjazz · · Score: 3, Funny

      All the other images I have of Traci have far, far more flesh colours in them.

      You mean like this one?

  7. Wow, what a small world... by IpSo_ · · Score: 3, Interesting

    I realise this competely off topic, but is it ever a small world... I went to high school with the lady in the picture laying on the car (Traci). A year after high school I moved 400km's away to a large city and about 2.5 years after that I ran to her working at the Red Robin a block from my house. Now I see her picture on Slashdot of all places, whats the chance of that happening? :)

    To top it off, the guy who apparently owns the website (gamesx.com) runs (or ran?) a console game rental store in my home town, and used to date my sister!

    --
    Open Source Time and Attendance, Job Costing a
    1. Re:Wow, what a small world... by NEOGEOman · · Score: 4, Funny

      Yeah, that's me. I did own a gamestore, Traci's on the hood of her car in front of the store in fact. ...

      Who's your sister? =)

  8. Wow. by TheSHAD0W · · Score: 4, Interesting

    I'm red-green colorblind, and the pictures on the LEFT, with the low-resolution red images, look as good to me as the original or the one with the low-res blue. Does anyone else notice this?

    1. Re:Wow. by NEOGEOman · · Score: 2, Interesting

      I'm not colourblind at all, and I consider my vision to be pretty good. The difference on the red-reduced image is less noticable than the blue. It varies though depending on the source image and reduction method, where green is always noticable and blue almost always invisible.

  9. Irises and Pupils by tsanth · · Score: 3, Informative

    IIRC, the irises are actually opaque; the only light that gets through to the retina passes only through the cornea and pupil. Colored contacts, likewise, don't color light because they have a transparent "dot" in the middle of the lens.

    Beyond that, I also remember reading that it's actually the brain that does all of the color (and gamma) correction; nothing in the eye's machinery--it's all done in the (pre?) processing.

  10. Even better reason... by K8Fan · · Score: 4, Interesting

    Our eyes suck at seeing blue for an even better reason - there are very few blue things that:


    1. You can eat.
    2. Can eat you.

    From an evolutionary perspective, that's the most important thing. We're get good at seeing green, because many green things are edible, and some things that want to kill us are good at hiding in green areas. So people who were especially good at seeing movement in green areas, and finding edible green things tended to survive, while those who didn't died out.

    --
    "How perfectly Goddamn delightful it all is, to be sure" Charles Crumb
    1. Re:Even better reason... by Anonymous Coward · · Score: 5, Funny

      What about blueberries and smurfs?

    2. Re:Even better reason... by K8Fan · · Score: 4, Funny
      What about blueberries and smurfs?

      As the greatest philosopher of our time, George Carlin pointed out: "Blueberries? You know they're purple. Blue cheese? That's just white cheese with a bunch of mold in it. And a bluefish? You cut one of them open, and they're every color of the rainbow."

      Smurfs are poisonous, thus don't count.

      --
      "How perfectly Goddamn delightful it all is, to be sure" Charles Crumb
    3. Re:Even better reason... by Xenothaulus · · Score: 2, Funny

      1. Blueberries 2. Smurfs

    4. Re:Even better reason... by rabidcow · · Score: 3, Funny

      Smurfs are poisonous, thus don't count.

      Until a pack of them attacks and tries to eat you.

  11. SCART != RGB by JazFresh · · Score: 4, Informative
    I always see people saying things like "I connect via a SCART socket, so it's RGB."

    Not necessarily.

    SCART connectors are huge chunky things that can handle a number of video formats, including RGB, S-Video and Composite (maybe others too). But that's not the same as saying that a given SCART cable or socket will support all those formats. Many cheaper cables only support Composite (fewer wires means cheaper cost). And on some high-end TVs with multiple SCART inputs, only some of those will support RGB.

    So if you're playing your PS2 or whatever through a SCART cable, the TV might be using the SVideo or Composite signal rather than RGB.

    The lesson is, be sure to check your TV inputs, and always buy good quality cables!

    1. Re:SCART != RGB by Jeff+DeMaagd · · Score: 2, Informative

      The article seems to be a little uneducated or assumes a lot.

      "Using it instead of RGB makes your DVD player cheaper by about $0.02 and that's significant savings! On the other hand the price of your TV goes up with the extra equipment needed to decode this component signal."

      This complains too much of the cost of converting component to RGB and no explaination is given to why it costs more to integrate comp->RGB into the TV than it would in the DVD player.

      Where the conversion to RGB happens doesn't matter that much that I can tell, and it really doesn't raise the cost of the TV, it is cheaper than being composite or s-video compatible, which is dirt cheap in TVs. While separate transcoders cost $80 or more, to be integrated in a TV, I really doubt it costs any more because most of that circuitry is there anyway.

      I do share the disgust over Macrovision.

      Another thing to keep in mind is that the digital broadcast video standards are 720x480 for NTSC, when output as progressive scan RGB, a lot of digital display devices assume that RGB at 480 scan lines is 640x480, which is worse than the component / RGB difference can ever be.

  12. It's NOT RGB. by dtfinch · · Score: 3, Informative

    It's only RGB after decoding.

    NTSC video uses the YIQ color space, very similar to YUV (used in PAL, JPEG, DVD, & stuff). Y is the brightness, which gets the highest resolution, and I & Q (or U & V) are the chroma values, which can be greatly subsampled because they have no effect on brightness (when everything's working correctly).

    Most lossy image compression formats involve first transforming the image to the yuv color space. The RGB->YUV transform is also used by many paint programs for things like estimating differences between colors for color reduction & such.

    First match on google for "YIQ YUV":
    http://astronomy.swin.edu.au/~pbourke/colour/conve rt/

  13. The limits of NTSC by Animats · · Score: 2, Informative
    NTSC has so little color bandwith that you can only change the color through its full range about ten times horizontally across the screen. Try narrow RGB color bars on an NTSC receiver and see how bad it really is.

    JPEG also relies on this. But JPEG could provide considerably more compression if it didn't introduce those highly visible high-frequency artifacts.

  14. Nice Work NEOGEOman by PostConsumerRecycled · · Score: 2, Insightful

    NEOGEOman, I just wanted to say gret job on the signal primer. I had always been a bit curious about video signals, though I had never looked into the subject. So I just wanted to to thank you for making an easy to understand document that covered everything I wanted to know (and more).

    --

    There is no dark side of the moon really, matter of fact it's all dark
  15. Fun and depressing by pc486 · · Score: 3, Interesting


    After fooling around with video for quite some time now, I have came to the same conclusion that NEOGEOman gets: Macrovision and the entire industry blows. Sure, we all know that the MPAA sucks, but the drop so low that to mess with the video to the point of almost unwatchable is absurd. Here's a small list of things they do to mess up composite video (NTSC):

    - variation of the black level (confuses AGCs)
    - phase modulation of the color burst (later macrovision versions, like DVD players)
    - removal of lines from one field and putting them on the other field.
    - bursts in the VBI

    And then the industry refuses to move on until they can get some other "protection" on the video feed. Who do they worry about? The "Casual copier," "hobbyist," "hacker," "small scale pirate," and the "professional pirate" (DDWG powerpoint presentation [http://www.ddwg.org]). The cost? Remotely decent video and your right to fair use.

    Arg!
    </rant>

    As a side note, if you're interested in chroma sampling and how it can go wrong, check out this page: http://www.hometheaterhifi.com/volume_8_2/dvd-benc hmark-special-report-chroma-bug-4-2001.html

    It's an interesting read.

  16. If you looked at the image on an oscilscope.... by fozzy(pro) · · Score: 2, Informative

    you would realize that most of the image data is infact in the blue range on NTSC M RGB sysytems Blue holds nearly 85% of the image data.

  17. Re:Good explanation but... by NEOGEOman · · Score: 4, Interesting

    The author knows he knows nothing, but knows more than the hundreds of info-starved fanboys on forums the world over, and knows enough to put together a primer (And I'm repeating myself here) that is an introduction to a subject, not a comprehensive guide.

    Also, as far as I know no one pumps "NTSC DV" through an svideo cable, unlress they're way off spec. Svideo is analogue, not digital. Or are you using a non-spec definition of "DV"? ;)

  18. Re:Digital camera invalidates the demonstration by NEOGEOman · · Score: 3, Insightful

    Alright, I'll tell you exactly that. I used a digital camera, and reduced the image to 25% using an interpolated scaling to create an image much closer to 'balanced' than a raw digital image would be. By scaling it this way the image was resampled to the new size by combining and averaging the pixels, negating any effect the camera's CCD had.

    According to the histogram the colours are very nearly the same but for some variation in the highs.

    What you say is irrelevant for the discussion, really, because a digital camera also uses JPG compression which, as we've discussed, creates a high-res green and low-res red + blue image. That's the other reason I resampled it, it negates the JPG effects and creates a (very lovely) new image without effects from the CCD or JPG compression.

    Does that satisfy you?

  19. Re:NTSC by srmalloy · · Score: 3, Funny
    Never The Same Color twice.

    Actually, it's Never Twice the Same Color. A little less of proper English, but the initialism works cleaner.
  20. It's due to wavelengths by SirNarfsALot · · Score: 5, Interesting

    You have to focus on different colors differently because red, green, and blue light are all different wavelengths and therefore are refracted slightly differently by your eye (shorter wavelengths, i.e. blue, refract more, longer wavelengths - red - refract less). You have to focus closer in on a red light than a blue light for it to be sharp, if you can even do so.

    Something I don't understand is that blue light seems to exaggerate my mild astigmatism; I have a Logitech mouse that drives me crazy if I try to focus on the blue taillight. Red lights I can focus on quite clearly and from further away (I am also nearsighted) than any other color lights.

    Fun related trivia bit (and forgive me if this is common knowledge):
    If you have a decent old 35mm SLR camera with a normal lens (other lenses may have this too) look at the focus ring. There is a marker for where to line up the focus ring in normal conditions, and then there should also be a little red dot a fraction of an inch to the side of it to show where to line up the ring when shooting on infrared film. You have to focus the lens closer for infrared than for visible light, because longer wavelengths refract less.

    This is all related the prism rainbow effect, too.

  21. hopefully going away... by captaineo · · Score: 2, Informative

    The slow merging of HDTV and film technology is pushing to eliminate subsampling and Y'CbCr (YUV) color space entirely. George Lucas, after shooting Episode II in 4:2:2 Y'CbCr, insisted that Sony develop 4:4:4 RGB equipment for Episode III.

    I *hope* this will continue to the point where Y'CbCr can be dropped entirely (there isn't much use for it aside from chroma subsampling), as well as interlacing. These things cause serious problems in computing... Every time you see stair-step artifacts, improper telecine, mis-matched black levels, banding in gradients, or black rectangles in screenshots of media players, you can thank interlacing and Y'CbCr color space.

    (but they *are* quite effective as compression algorithms, and also clever hacks, in their time - how *else* are you going to send full-color motion video in 6MHz of radio bandwidth using 1950's technology?)

  22. Words by cirby · · Score: 2, Interesting

    I have one odd little hobby... I collect foreign language dictionaries. One of the funny things you notice when you browse through languages is that the less "sopisticated" ones have fewer color words. Some of the lesser-known tribal languages have one word that stands for both blue and green, because the difference is really not very important to the average guy living way out in the middle of nowhere.

    The more urban/technical a culture is, the more words for color the average person knows.

  23. Other advantages to Y'CbCr by benwaggoner · · Score: 3, Informative

    Oh, I think we've got decades of Y'CbCr to look forward to. it's really an advantageous format in a lot of ways.

    First, a 4:2:0 Y'CbCr is half the bandwidth of 4:4:4 RGB. We're a long way away from having half the processing power required, bandwidth, storage, etcetera simply not mattering. My RAID is 2 TB formatted, but I regularly have projects that take up over 50% of the space.

    Second, Y'CbCr is a better native space for video processing, since the channels align better with what we want to filter. Luma filters like gamma or contrast are more than 3x faster in Y'CbCr than in RGB, since only one channel needs to be processed. Saturation is more than 6x faster in 4:2:0, since only two channels, each at 25% bandwidth, need to be processed. Plus a lot of filters have to convert from RGB to another color space to run. Y'CbCr is closer to those other spaces, and often doesn't require any conversion. You can say whatever you will about Moore's law, the difference between 4 and 8 real-time layers will matter for a while. Even the audio guys, who have it a lot easier, still run into performance limits with enough simultaneous tracks and such.

    Lastly, our entire video infrastructure is build around subsampled Y'CbCr. Never underestimate the lock-in of standards like this. If computer people couldn't kill interlaced video in HDTV, they're never going to kill subsampling for lots of applications. Color video has always been Y'CbCr, and that's how everyone works and thinks for decades now.

    That said, Hollywood is likely to pick a >8-bit RGB solution for digital projection. For digital projection, bandwidth is a non-issue, and quality, and quality like that of film. Film guys live in RGB. Plus, it's a win for that industry to have digital cinema be as INCOMPATIBLE with consumer digital video tech as possible, in order to reduce the ease of piracy, and to maintain an advantage of the theatrical experience over home theater.

    FWIW, I'm a member of the SMPTE groups working on both video compression and digital cinema.

  24. Re:PAL vs. NTSC by NEOGEOman · · Score: 2

    That's a pretty good layman's comparison. PAL kind of gets a more stable, vibrant and sharper picture in exchange for a little flicker. 50Hz video flickers just enough to annoy me, but I'm sure I could get used to it.

    As for the question "why is it that a lot of (even really cheap stuff) PAL-gear can also play NTSC, but not the other way around?" the answer is simple:

    With few exeptions we already have all the good content and you PAL losers users are constantly importing content, far more than an NTSC user imports PAL content. Also, I think it should be said that by and large North American consumers are stupid and wouldn't know quality if they choked on it, so why give them more than they're lining up to buy?

  25. Re:Chroma off by one frame? by NEOGEOman · · Score: 2, Interesting

    Sounds like your Tivo works like my capture card, which only captures at 30fps. This makes it very difficult to get clean results for anything but normal live-action video, because every second frame is blurred together with the first. What you describe could be the next frame blurring into the previous one, ahd perhaps a de-interlacing controller is eliminating sharper details and leaving only the blended colour?

  26. Re:Hogwash by Paradise+Pete · · Score: 2, Funny
    We have much better ways of distinguishing whether they're editable

    Sure. You could click on them to give them focus. If they're editable, you'll get a carrot.

  27. Re: ABBE Numbers... by partridge · · Score: 2, Informative

    The difference you're seeing with glasses is due to the ABBE number of the materials.

    Glass has the best ABBE numbers , but most people these days go for plastic lenses. The cheap CR-39 lenses actually have the best rating of the plastics, but they're also big, thick, and heavy. My guess is that a lot of people are wearing polycarbonate lenses, because they're light, have a relatively high index, and are VERY impact resistant. Downside? Really crappy ABBE number. I just switched to trivex lenses which have a slightly better ABBE number and there is a noticeable difference. (similar to polycarb in safety and thickness, can be drilled for rimless frames, but much better lens characteristics)