Log in

View Full Version : MJPEG with Avisynth 2.5


Frisco
28th January 2003, 23:02
Hey

I an using Pinnacle DC10 to captured MJPEG-AVI. When I Decompres to DivX, in VirtualDub, I use the Morgan MJPEG codec. Whit this avs :

avisource("d:\video 2.avi")

In Avisynth 2.07 there is no problem, but whit Avisynth 2.5 the picture is blue.

Thanks Frisco

Guest
28th January 2003, 23:06
Don't know about Morgan but I do the same thing with the PicVideo MJPEG codec and everything is fine. Make sure that your Morgan codec is the one actually being used.

sh0dan
28th January 2003, 23:12
Use the SwapUV() after you loaded the file. Morgan has swapped the UV channels.

Guest
29th January 2003, 01:11
You're absolutely right, sh0dan. Sorry I missed it. I just now went to approve attachments and saw there was one and it is a clear case of swapped UV.

Frisco
29th January 2003, 22:36
It is working. Thank you, for the quick answer.

Frisco

sh0dan
29th January 2003, 23:16
It's also known as the easiest way to make humans look like aliens. :)

Bidoche
29th January 2003, 23:49
LOL :)

sh0dan
29th January 2003, 23:53
Just say "This Island Earth" as part of Mystery Science Theatre 3000 - The movie. They actually use this trick to make a foreign planet look even more foreign! Don't know how they did that on film, however.
Just a curiosity though. ;)

adamschroeder
14th August 2003, 19:26
I know this is an old thread but I recently ran into the same problem. While the SwapUV() function fixed the color, the quality of the clip was still much less than if I would have opened it in Virtual Dub.

I don't know if it is just my machine but forcing the AVI source to decode in RGB instead of YUV fixed both the color problems and the quality problems.

So if anyone else runs into this problem using the Morgan codec try using this as you AVISource command.

AVISource("d:\video source name.avi",true,"RGB32")

Kb_cruncher
27th January 2004, 11:06
Thanks for the fix adamschroeder, i was going out of my mind trying to find a solution for this.

sh0dan
27th January 2004, 14:49
Morgan has Released a 3.0.12 beta which fixes the YV12 output bug. If their forums are up it can be found there.

btw - you should get correct data by using pixel_type="yuy2". No need to go RGB.

acrespo
27th January 2004, 16:49
The morgan multimedia forum have problems and don't show all messages. I already tried download this new beta version but I didn't have success and support email didn't respond any email I send.
:(

sh0dan
27th January 2004, 17:46
I put it up at: http://cultact-server.novi.dk/kpo/avisynth/morgan_m3jpegV3beta312.exe

I'll leave it there until they officially release it.

Kb_cruncher
29th January 2004, 03:45
I still get undesirable yv12 output with 3.0.12 beta.Instead of blue face aliens i get green virtical stripes now that look a bit like window blinds:mad: :D

[EDIT]I am using avisource and when i comment out "CovertToYV12" i still get the same effect.Does this mean it is not a YV12 bug afterall?

Of course pixel_type="yuy2" fixes the issue thankyou sh0dan

BlindWanderer
29th January 2004, 08:31
Originally posted by sh0dan Just say "This Island Earth" as part of Mystery Science Theatre 3000 - The movie. They actually use this trick to make a foreign planet look even more foreign! Don't know how they did that on film, however.
Just a curiosity though. ;)

if the film was shot in Technicolor maybe they swapped the channels (Technicolor shoots onto 3 reels simultaneously).

Mug Funky
29th January 2004, 12:57
technicolor 3 colour dye transfer is RGB though, with the green channel copied as black and white onto the rest for extra contrast (kinda like luma).

this would give a similar but different effect to swapped UV i think...

sh0dan
29th January 2004, 14:38
Originally posted by Kb_cruncher
I still get undesirable yv12 output with 3.0.12 beta.Instead of blue face aliens i get green virtical stripes now that look a bit like window blinds:mad: :D

[EDIT]I am using avisource and when i comment out "CovertToYV12" i still get the same effect.Does this mean it is not a YV12 bug afterall?

Of course pixel_type="yuy2" fixes the issue thankyou sh0dan

It is because of faulty chroma upsampling in preview. The data inside AviSynth is correct - however the data is converted wrongly after it leaves AviSynth. To get it viewed correctly in vdub for instance, use ConvertToRGB24(interlaced=true). If your material is ending up in CCE, you should use ConvertToYUY2(interlaced=true).

If you deinterlace your material at some point in your script you won't have this problem.