PDA

View Full Version : Question about colorspaces


Serbianboss
16th September 2006, 13:05
1. If we using Panasonic dv codec as decoder for making dvd(capture are in dv format) it will be:

yv12-rgb-yuy2 (am using CCE for encoding to dvd)

2. but if we using panasonic dv codec as decoder to make divx in virtual dub it will be:

yv12-rgb-yv12 (but yv12 if select fast recompres and if dont use internal VD filters).

is this right?

Wilbert
16th September 2006, 17:21
1. If we using Panasonic dv codec as decoder for making dvd(capture are in dv format) it will be:

yv12-rgb-yuy2 (am using CCE for encoding to dvd)
YV12->RGB24->YUY2->YV12 (the last conversion is made by CCE)

2. but if we using panasonic dv codec as decoder to make divx in virtual dub it will be:

yv12-rgb24-yv12 (but yv12 if select fast recompress and if don't use internal VD filters).
Selecting 'fast recompress' makes only sense if you deliver YV12 or YUY2. In the former case nothing happens and in the latter case the video is converted YV12 by VDub.

If you use VDub's internal filters, VDub converts it to RGB first and after applying the filters it is converted to YV12. Remember DivX/Xvid/DVD always stores the video as YV12.

Serbianboss
16th September 2006, 18:39
You want to say that if i have Panasonic dv decoder and want to make divx its not possible to be in yv12.

My script for making divx(source is Dv avi interlaced,PAL) and i am using panasonic decoder.




LoadPlugin("DeGrainMedian.dll")
LoadPlugin("LeakKernelDeint.dll")
avisource("C:\Documents and Settings\My Documents\Video 1.avi")
ConvertToyv12(interlaced=true)
LeakKernelDeint(Order=0,threshold=1,sharp=true)
degrainmedian(limitY=5,limitUV=7,mode=0)
LanczosResize(512,384)

Wilbert
16th September 2006, 19:46
You want to say that if i have Panasonic dv decoder and want to make divx its not possible to be in yv12.
Could you clarify what you mean here? The panasonic dv always outputs RGB24. If you want to stay in YV12 in the whole filterchain, you need to use a different DV decoder.