Log in

View Full Version : DV Captures and colorspace question


jfcarbel
17th March 2003, 01:09
I have some DV analog captures from my Matrox RT2000 of TV Shows from Satellite (DV AVI files).

I want to encode these using Divx5.03. I am going to be using AviSynth for processing.

From reading the guides and FAQ. I believe that AviSynth 2.5 will handle RGB inputs like my analog captures and it will output YV12 which DivX encoder can handle. Is this correct, am I missing any steps?

Also some of my encodes will be from interlaced MPEG2 sources, that is original DV captures that I encoded with CCE. But I want to use DVD2AVI and AviSynth to reencode this using DivX. Is it okay to use AviSynth 2.5 and the newer MPEG2Dec3 for this?

jfcarbel
17th March 2003, 01:14
Oh yes forgot, the only filters I will be using are:

Convolution3D (YV12 version - I think it works in RGB as well)
PeachSmoother
Decomb for deinterlacing

Wilbert
17th March 2003, 10:43
You will have to convert it to YV12 yourself and deinterlace first before you are going to do add. filtering. As can be seen in the faq: convol. requires YV12 and decomb YV12 or YUY2. So I guess you must convert it to YV12 first.

jfcarbel
18th March 2003, 00:19
Why would I need to convert? I'm confused.

I thought Avisynth can handle any inputs whether it be RGB, YUY2, or RGB. Can someone please confirm.

So as long as I use the correct filters for YV12 which is the output of the mpeg2dec3.dll then I should be fine - correct?

Wilbert
18th March 2003, 09:55
Why would I need to convert? I'm confused.

I thought Avisynth can handle any inputs whether it be RGB, YUY2, or RGB. Can someone please confirm.
True, but as you noticed below not all the plugins (and even the internal filters) work with these color formats.

So as long as I use the correct filters for YV12 which is the output of the mpeg2dec3.dll then I should be fine - correct?
Correct!

jfcarbel
18th March 2003, 19:03
Wilbert thanks for all your help clarifying things for me.

Okay that answers the MPEG2 encoded questions. But I still am a little unclear on the DV side. It is also difficult to research how DV video is done using Avisynth since the search term "DV" is too short and not accepted by the forum search tool.

I know that DV can be loaded using the AVISource(). I assume that it will be decoded by my Matrox DV codec and will be RGB. So since its RGB do I need to do a convertToYV12 to use the newer filters or do most filters support RGB?

Wilbert
19th March 2003, 10:20
I know that DV can be loaded using the AVISource(). I assume that it will be decoded by my Matrox DV codec
Yes.

and will be RGB.
Probably, but not necessarily. You can check that with the script

AviSource().info

What does it say?

So since its RGB do I need to do a convertToYV12 to use the newer filters or do most filters support RGB?
Most filters (and plugins) require YUY2 or YV12. See: filters (http://www.avisynth.org/index.php?page=FiltersByCategory), plugins (http://www.avisynth.org/index.php?page=Section+3%3A+Filters+and+colorspaces#q3.4).