PDA

View Full Version : Odd colours when encoding


fixer
6th April 2003, 11:25
Over the past week I have experimentet with converting from DIVX to SVCD using VirtualDub and DVD2SVCD.

And so far I have not encountered great problems untill now. When I encode this movie it screw up the colors. Blue become red and the other way around. This goes for all the colors.

When I extract the DIVX to a uncompressed AVI with Virtual the colors are still right. But after the conversion to MPEG2 the colours are all wrong.

So what is wrong :confused:

BTW. I use Cinama Craft Encoder as (big surprise ;)) encoder.

Thanks

Update: It's now all movies that make odd colours. Even movies that I earlier had no problems with. I realize that it must be a setting that i have screwed, but I can't figure out what! HELP!

homerjay
6th April 2003, 13:21
i have just put on th latest build 2 and previewed the avi and noticed that all the peoples faces are blue

again like you i can play the divx fine via divx player or similar it seems to only be in dvd2svcd

have you loaded the latest version too ?

fixer
6th April 2003, 13:34
Yes, I just downloaded the newst build of DVD2SVCD a few days ago. But the wierd part is that I had no problems with it 2 days ago - with the same version. The problem first showed up today, so there must be something I have changed, but I can't figure out what it is.

manono
6th April 2003, 14:38
Hi-

I've seen the problem once, but not other times, when converting .avi to SVCD, so I'm not sure what triggers it yet. I assume you're all using AviSynth 2.51. If so, the solution is to insert:

SwapUV()

into the .avs. From the AviSynth2.5 Filters.html:
SwapUV swaps chroma channels (U and V) of a clip. Sometimes the colors are distorted (faces blue instead of red, etc) when loading a DivX or MJPEG clip in AviSynth v2.5, due to a bug in DivX (?). You can use this filter to correct it.

fixer
6th April 2003, 14:56
Thanks for the answer - it looks like i could work. But I'm a newbie so I don't quite get it.

Can you give me an example? So I can see how it works.

Thanks :)

manono
6th April 2003, 15:51
Hi-

In the FrameServer Tab, tick "Edit as part of video encoding", and when the audio is done, the .avs will show up on your screen, and then you add the line to the .avs (I don't think it matters where).

If you're clever, you can probably add it to the dvd2svcd.ini file, so you don't have to stop the process, but I don't know how to do that. Maybe someone else can help.

So, when you're done, the .avs might look something like this:
AVISource("D:\SERVER~1\SHAOLI~1\SHAOLI~1.AVI",False)
ConvertToYUY2()
LanczosResize(480,360)
AddBorders(0,60,0,60)
SwapUV()
AddAudio()

fixer
6th April 2003, 16:03
I doesn't works :(

When I paste the "SwapUV()" in the text box and hit OK it starts Cinema Craft Encoder and then Cinema Craft Encoder creashes. So I think there sould some parameters in det ().

I checked out AviSynths homepage an it sayes (http://www.avisynth.org/index.php?page=Swap):
SwapUV(clip clip)
But i don't know what to write instead of clip

manono
6th April 2003, 16:27
Hi-

No, you don't need parameters, but the location in the .avs does make a difference (I should test these things first before recommending them). Make sure it's right after the AVISource line (and before ConvertToYUY2(), if that line's in there already):
AVISource("D:\SERVER~1\SHAOLI~1\SHAOLI~1.AVI",False)
SwapUV()
ConvertToYUY2()
LanczosResize(480,360)
AddBorders(0,60,0,60)
AddAudio()
Sorry for the confusion.

homerjay
6th April 2003, 17:28
would this be right anyway if before you start encoding and do a preview frame you are getting the same blue faces?
also have gone back to build 1 and faces are normal again:confused:

manono
6th April 2003, 18:07
To tell you the truth, I don't know what DVD2SVCD's showing you. I tested by opening the .avs in Nandub or VDubMod (as you can also) to see that the problem was fixed. I didn't make this fix up. You can check:
This Thread (http://forum.doom9.org/showthread.php?s=&threadid=50214&highlight=swapuv), or:
This Thread (http://forum.doom9.org/showthread.php?s=&threadid=49213&highlight=swapuv), or:
This Thread (http://forum.doom9.org/showthread.php?s=&threadid=48593&highlight=swapuv), or:
This Thread (http://forum.doom9.org/showthread.php?s=&threadid=47606&highlight=swapuv), or:
This Thread (http://forum.doom9.org/showthread.php?s=&threadid=46715&highlight=swapuv), or any one of a dozen others. It's got nothing to do with DVD2SVCD or CCE. It's some bug in DivX (3.11 and 5.02, I think) that manifests itself when doing .avi conversions using AviSynth 2.5x.

fixer
6th April 2003, 20:00
Thanks manono

It looks like it solved my problem :D

manono
6th April 2003, 20:28
Whew! I was starting to wonder. Thanks for reporting back fixer. Good luck.