clydd2004
26th April 2004, 13:28
Hi I dont quite know how to begin because i've posted in so many forums about the same topic but cant find an answer.
Im hoping the very involved group here will be my breakthrough.
In short: Im into 3d video the spk-kids kind (red-cyan) or anaglyph video as its called. Well the problem here is that no matter how good your source quality video and how high your mpeg2 encoder is set at, everytime you encode video that is in anaglyph format there is an "embossing" artifact that crops up. Now this embossed look or fringe or "halo" cant be seen with the naked eye, but the moment you put on the red-cyan glasses the horrid thing is visible.
Its even worse on areas of the scene that has high contrast, such as a building silloutte against a clear sky bakground.
The Long Explaination as I have posted it on the virtual Dub forum and some on-going debate with the experts there is tabulated here:
http://neuron2.net/ipw-web/bulletin/bb/viewtopic.php?t=398
Sorry if this post gets long and out of hand.. im just desperate for an answer and am convinced it can be cracked within the existing Mpeg2 framework. Heres the longer explaination....
--------------------------**from neuron's VDub board***--------------
Hi All,
Im a newbie to video processing and my expierence on this is to put it politely.... 2%.
I work with 3d video and have taken up the challenge of doing full color 3dvideo for DVD using the red/cyan glasses made popular with various movies.
A brief backgrounder (forgive me if you all know this)..
Anaglyph 3d video (the red-cyan glasses type) is very good at reproducing stereo left right views as long as its in some uncompressed codec or codecs like HuffyUV or Mjpeg with 4:4:4 colorsampling.
With Mpeg2 encoding, what happens is there is some artefacting on high contrast areas in a scene. As you know the entire scene of an anaglyph video is a superimposition of a Left and right view as recorded by 3d cameras...so the final composition is a superimpositing of the two images as viewed via a red filter and cyan filter.
Thus you have an image with Red and Cyan color fringes around it.
Now what happens is... as long as the avi is uncompressed all is fine, but MPEG2 encoding leaves an "embossed" in areas of contrasting detail in the scene where the red-cyan fringes were.
Meaning you cant see the embossed effect with the naked eye, but with the red-cyan glasses on it looks terrible.
No matter what bitrate i encode at ..even at 15mbps and greater this embossed look is still present.
I want to know a few things..
1) Does anyone know wether this effect is beacuse of mpeg sampling algorithm? meaning cause its 4:2:2 or 4:2:0 or is there some other reason?
2) Is there a filter that will smoothen or eliminate this effect in VirtualDub?
Answers by Others:
VeryWetPaint: clydd2004,
Anaglyphic 3d is a tall order for MPEG, but surely there must be some room for slop.
With red-cyan 3d, information will be concentrated in the Y and Cr channels. (Depending on sign and intensity, the Cr channel turns white into either red or cyan.) There is only one Cr sample for every four Y samples, so there must be decode errors unless all four pixels in each subsampled group have identical Y values to go with a single Cr value. That is, all four pixels in each 2x2 grouping must be identical after decoding.
To accomplish this in a 720x480 image, there must be 360 congruent pairs of pixels on each line and 240 congruent pairs of pixels in each column. That is, the image must be a 360x240 matrix of 2x2 pixel-groups. A simple averaging filter won't accomplish this.
Hmm.
Try pixelizing it with VirtualDub, using TWO resize filters in series. First resize the image to 360x240 using your choice of resampling (bilinear, bicubic, etc). Then resize it to 720x480 using "nearest neighbor". It'll be ugly, but it just might encode correctly at really high bit-rates.
I'll keep my fingers crossed.
---------------------------------------------------------------------
Hoping for a solution
Regards All,
Clyde
Im hoping the very involved group here will be my breakthrough.
In short: Im into 3d video the spk-kids kind (red-cyan) or anaglyph video as its called. Well the problem here is that no matter how good your source quality video and how high your mpeg2 encoder is set at, everytime you encode video that is in anaglyph format there is an "embossing" artifact that crops up. Now this embossed look or fringe or "halo" cant be seen with the naked eye, but the moment you put on the red-cyan glasses the horrid thing is visible.
Its even worse on areas of the scene that has high contrast, such as a building silloutte against a clear sky bakground.
The Long Explaination as I have posted it on the virtual Dub forum and some on-going debate with the experts there is tabulated here:
http://neuron2.net/ipw-web/bulletin/bb/viewtopic.php?t=398
Sorry if this post gets long and out of hand.. im just desperate for an answer and am convinced it can be cracked within the existing Mpeg2 framework. Heres the longer explaination....
--------------------------**from neuron's VDub board***--------------
Hi All,
Im a newbie to video processing and my expierence on this is to put it politely.... 2%.
I work with 3d video and have taken up the challenge of doing full color 3dvideo for DVD using the red/cyan glasses made popular with various movies.
A brief backgrounder (forgive me if you all know this)..
Anaglyph 3d video (the red-cyan glasses type) is very good at reproducing stereo left right views as long as its in some uncompressed codec or codecs like HuffyUV or Mjpeg with 4:4:4 colorsampling.
With Mpeg2 encoding, what happens is there is some artefacting on high contrast areas in a scene. As you know the entire scene of an anaglyph video is a superimposition of a Left and right view as recorded by 3d cameras...so the final composition is a superimpositing of the two images as viewed via a red filter and cyan filter.
Thus you have an image with Red and Cyan color fringes around it.
Now what happens is... as long as the avi is uncompressed all is fine, but MPEG2 encoding leaves an "embossed" in areas of contrasting detail in the scene where the red-cyan fringes were.
Meaning you cant see the embossed effect with the naked eye, but with the red-cyan glasses on it looks terrible.
No matter what bitrate i encode at ..even at 15mbps and greater this embossed look is still present.
I want to know a few things..
1) Does anyone know wether this effect is beacuse of mpeg sampling algorithm? meaning cause its 4:2:2 or 4:2:0 or is there some other reason?
2) Is there a filter that will smoothen or eliminate this effect in VirtualDub?
Answers by Others:
VeryWetPaint: clydd2004,
Anaglyphic 3d is a tall order for MPEG, but surely there must be some room for slop.
With red-cyan 3d, information will be concentrated in the Y and Cr channels. (Depending on sign and intensity, the Cr channel turns white into either red or cyan.) There is only one Cr sample for every four Y samples, so there must be decode errors unless all four pixels in each subsampled group have identical Y values to go with a single Cr value. That is, all four pixels in each 2x2 grouping must be identical after decoding.
To accomplish this in a 720x480 image, there must be 360 congruent pairs of pixels on each line and 240 congruent pairs of pixels in each column. That is, the image must be a 360x240 matrix of 2x2 pixel-groups. A simple averaging filter won't accomplish this.
Hmm.
Try pixelizing it with VirtualDub, using TWO resize filters in series. First resize the image to 360x240 using your choice of resampling (bilinear, bicubic, etc). Then resize it to 720x480 using "nearest neighbor". It'll be ugly, but it just might encode correctly at really high bit-rates.
I'll keep my fingers crossed.
---------------------------------------------------------------------
Hoping for a solution
Regards All,
Clyde