Log in

View Full Version : AVISynth 2.5 and CCE 2.64 Color Distortion


Pratticus
21st February 2003, 23:59
I am using AVISynth 2.5 to framserve a DivX4 .avi to CCE SP 2.64.

The script is:

LoadPlugin("h:\windows\system32\MPEG2DEC3.dll")
avisource("m:\CT.avi")
BiCubicResize(720,272)
AddBorders(0,104,0,104)
selectrangeevery(1200,12)
ConvertToYUY2()

It seems to work, with the exception that the colorspace is incorrect, as shown in the following pictures. For some reason, it appears the RGB is out of whack.

Correct: prior to CCE encoding. (http://www.imgmag.com/images/pratticus/rightcolor.jpg)
Incorrect: following CCE encoding. (http://www.imgmag.com/images/pratticus/wrongcolor.jpg)

Can anyone suggest how to fix this? I am sure it's a very easy solution...

Guest
22nd February 2003, 00:01
SwapUV()

Pratticus
22nd February 2003, 00:13
Changing my script to:

LoadPlugin("h:\windows\system32\MPEG2DEC3.dll")
avisource("m:\CT.avi")
BiCubicResize(720,272)
AddBorders(0,104,0,104)
selectrangeevery(1200,12)
#ConvertToYUY2()
SwapUV()

Shuts CCE down as soon as I try to encode it...

Pratticus
22nd February 2003, 00:19
Oops...

LoadPlugin("h:\windows\system32\MPEG2DEC3.dll")
avisource("m:\CT.avi")
BiCubicResize(720,272)
AddBorders(0,104,0,104)
selectrangeevery(1200,12)
SwapUV()
ConvertToYUY2()


Was what you were getting at :D .

Thanks man.

Guest
22nd February 2003, 00:50
I didn't want to make it *too* easy for you. ;)

You're welcome man.

Pratticus
22nd February 2003, 06:08
neuron2,

Can you suggest any filters I could add that would increase the speed and/or the quality of my output?

*Edit* neuron2, I have perused your work, and it appears that you have created a few filters that would be very useful to the DV community. I would like to know the applicability of dup, msharpen and msmooth to normal video. I have noticed that many of my clips are:

Blurred at the edges. This leads to a smooth picture, but at the cost of lack in definition for edges,
Blocked artifacts. High contrast edges appear to have a noticeable "halo" and distort the background image as a result.

To this end, would you be so kind as to elaborate on the effectiveness of your msharpen and dup filters?

sh0dan
22nd February 2003, 09:22
Just for reference - it is DivX that decodes the colors wrong - it is not related to CCE.

Pratticus
22nd February 2003, 09:43
Very odd, I had been using AVISynth 2.07 for the longest time and never had this problem, including previous passes on this very source. They only appeared when I upgraded to AVISynth 2.5.

Guest
22nd February 2003, 13:29
Originally posted by Pratticus
Can you suggest any filters I could add that would increase the speed and/or the quality of my output?For speed, get a faster computer. For quality, I can't comment without knowing your criteria of quality and seeing your source material.

EDIT: Both MSharpen and MSmooth require low-level optimization. When that is done they will be faster.

I would like to know the applicability of dup, msharpen and msmooth to normal video. I have noticed that many of my clips are:

Blurred at the edges. This leads to a smooth picture, but at the cost of lack in definition for edges,
Blocked artifacts. High contrast edges appear to have a noticeable "halo" and distort the background image as a result.

To this end, would you be so kind as to elaborate on the effectiveness of your msharpen and dup filters? Dup is probably not useful for normal video. It only helps when there are many content duplicates in a clip, and such clips are usually anime. For normal video, use a traditional temporal smoother.

MSharpen and MSmooth can both be useful for normal video. The edge effects you see may be either mosquito noise, which MSmooth can help, or intentional edge enhancement added during mastering. There is currently no decent way to remove EE.