Log in

View Full Version : YV12 4:2:0 DV vs MPEG and Cedocida


2Bdecided
20th March 2008, 13:03
I understand that DV and MPEG use 4:2:0 colour space differently...

http://www.mir.com/DMG/chroma.html

It seems that many DV decoders output YUY2 or RGB, while Cedocida gives YV12 "DV" or "MPEG".


What is involved in converting between DV 4:2:0 and MPEG-2 4:2:0?

Would there be any advantage to using "smarter" conversion methods, e.g. passing the blurred DV chroma image to awarpsharp, and then sampling the new MPEG-2 chroma image from the result?

Finally, why does selecting anything other than DV sampling in Cedocida (i.e. MPEG 2 non interlaced and MPEG 2 interlaced) cause decoding to crash on my machine? Can anyone else make it work?

Thanks!

Cheers,
David.

cedocida
20th March 2008, 22:35
>>What is involved in converting between DV 4:2:0 and MPEG-2 4:2:0?
For all output formats but "YV12 DV", the frame is converted to YUV 4:2:2 where only the missing chroma parts are linear interpolated per field. The luma and the existing chroma samples are unchanged.
Then this 4:2:2 frame is converted to the MPEG2 4:2:0 format respective, where the chroma is linear interpolated in the vertical direction according to the spec. Luma is unchanged.

>>Would there be any advantage to using "smarter" conversion methods, e.g. passing the blurred DV chroma image to awarpsharp, and then sampling the new MPEG-2 chroma image from the result?
Maybe yes, but have in mind that the sharpness is dominated by the Luma part. Also, proper resizing of interlaced content requires motion detection/compensation.

>>Finally, why does selecting anything other than DV sampling in Cedocida (i.e. MPEG 2 non interlaced and MPEG 2 interlaced) cause decoding to crash on my machine? Can anyone else make it work?
This is a known issue of some distributed binaries, which are broken. Please get a working version from neuron2 (see the link on the first page of the sticky "Announcement" thread)

2Bdecided
21st March 2008, 15:57
Thank you! That's really helpful.

I wish I received this level of support for some of the commercial software I paid money for!

EDIT: Just to confirm that the binary from here...
http://forum.doom9.org/showthread.php?p=653851#post653851
...has solved the problem. Thanks again.

Cheers,
David.