PDA

View Full Version : Newbie, Colors all wrong, similar to 35mm color neg?


bratloaf
10th June 2003, 19:44
I am new to avisynth, but not to digital video in general. I've been using virtualdub and assorted filters for a few years, and decided to give avisynth a try. Mostly I want to try some of the smart deinterlacing stuff and noise removal (pixiedust etc).

My source is a vid cap from s-vhs of animation (Futurama episodes). It is as clean as SHVS can be, which is somewhat noisy. I have used 2d cleaner in virtualdub with great results, but encoding to mpeg2 (For DVD) leaves much blockiness (even at the highest bitrates) in the "smoothed" areas.

So, I made a really simple avisynth script and attempted to open it in media player, VD, etc. (Just loaded the file, no filters).

Strangely, the video comes in with the colors all wrong. For instance, the blue "searchlites" at the beginning of the futurama intro are redish orange. Fry's hair is blue rather than orange. However leela's purple hair is correct as is bender's gray. What the heck is going on? Seems as if red and blue are switched.

Source is MJPEG capture from RainbowRunner (dmb1). This machine does NOT have the cap card in it, and is using the Morgan MJPEG codec. These files open fine natively in VD, Media player, etc.

I tried adding a converttoYUV() to no effect.

Can anyone help me out? I'd really like to try some of these filters.

(Using the latest avisynth 2.5?)

Thanks-
Jeff

sh0dan
10th June 2003, 21:09
I bet you are opening a MJPEG (using the morgan codec) or a DivX file. They have bugs, since they deliver swapped UV channels. Use SwapUV()

If you are using MJPEG, try this:

Morgan MJPEG beta (http://www.morgan-multimedia.com/ubb/forum1/clicks_db/download.asp?file=m3jpegV3beta.exe)

bratloaf
10th June 2003, 21:46
I am using the Morgan codec to read the file, it was encoded using dmb1 (Matrox hardware). I tried the swapuv() earlier, but with no fixed results (I.e. no change).

I wonder - why can other apps read the files file without avisynth in the loop? Can anyone elaborate?

Thanks for the suggestion, I will try it again just as a sanity check tonight.

-Jeff

sh0dan
10th June 2003, 21:59
SwapUV() should help. Try the beta in the link above.

Otherwise use AviSource("file.avi",pixel_type="yuy2")

AviSynth opens the file as YV12 - but there is a bug in the codec, so it delivers invalid data.

bratloaf
10th June 2003, 22:00
Thanks! I will try both!

-Jeff

Zarxrax
11th June 2003, 00:56
I have a friend who had to use TWO instances of SwapUV() in order to get a Divx video to look correctly. No idea what was going on there, but maybe this is the case here too?

bratloaf
12th June 2003, 16:41
Got it....

Otherwise use AviSource("file.avi",pixel_type="yuy2")

fixed it. The pixel type had to be set, now its all beautiful. I'm really starting to like avisynth! It is much quicker than the equiv features in VD (Although VD still definitely has a place in my toolbox!)

-Jeff