Log in

View Full Version : swapped UVs


precjednik
9th March 2004, 01:05
Did search but didn't find anything.
And mods please feel free to change the subject of the post, as I don't know what it is, and how to properly describe it.

Please take a look at these two pictures.
Captured material doesn't look color-messed, until frameserved in VDub via avisynth.

Script is simple, just:

AviSource("d:\multim~1\capture\film.avi")

Probably is MorganMJPEG codec which I installed last night. This is first attempt to encode some captured material with Morgan.
Res is 768x576

Pics:

http://web.vip.hr/precjednik.vip/Video/avisynth.jpg
http://web.vip.hr/precjednik.vip/Video/Original.jpg
THX

precjednik
9th March 2004, 01:14
Bah, lucky guess :)))

Solved with:
AviSource("d:\multim~1\capture\film.avi", audio=false, pixel_type="YUY2")

I don't understand, but it works.
If this post is useles, please delete it.

THX anyway :)

qwerpoi
9th March 2004, 05:49
This seems exactly like the divx yv12 bug (see the yv12 faq (http://forum.doom9.org/showthread.php?s=&threadid=37276) , question 11)- using avisource() with any divx encoded avi will result in the color problem in the screenshot. The solution is to add the line SwapUV(). Alternatively you can specify the colorspace to be yuy2 in avisource as you did, but I don't think this is technically correct (use the Info() command to see what the colorspace is supposed to be).

Mug Funky
9th March 2004, 06:28
swapped channels...

you can maintain YV12 processing (and the speed benefits) if you whack in the bugfix filter special for this purpose "swapUV()"

or you could use a different decoder for divx/xvid/whatever codec is decoding in this situation.

sh0dan
9th March 2004, 09:38
Morgan 3.12 beta (http://beta.zenaria.com/kpo/morgan_m3jpegV3beta312.exe) fixes the swapped UVs, and duplicated fields.

[EDIT: New URL]

precjednik
9th March 2004, 13:39
Thx all for reply.
Subject changed.
OK, so I manage to capture in YV12? but I must use different decoder, right?
If I use Avisource without specifying colorspace to YUY2(or YV12), reported colorspace is YV12.

I'll try that tonight, I'm afraid to mess with decoding settings because right now there is about 8 hours left for encoding this capture into divx.

Cheers!