View Full Version : File is not recognized as being YV12


Zarxrax
1st May 2003, 04:26
I have a video that is encoded in MS-MPEG4 V2. I am almost certain that this codec stores data in YV12 format, does it not? I try to use decomb on the file though, and I get an error saying that the video must be in YV12 or YUY2 format. Is this some sort of bug? Should I use ConvertToYV12() and process the file like that? Will it actually be changing the video data in any way (if its already YV12 I mean)?

Guest
1st May 2003, 05:18
What does Info() report? I get RGB32 for anything encoded in that codec.

Zarxrax
1st May 2003, 06:32
Hmmm, it reports RGB32, but is that correct? I was under the assumption that since it was based on mpeg-4 technology and such it would be YV12 as well?

sh0dan
1st May 2003, 10:02
Info is always correct ;)

Anyway - it depends on the codec, what colorspace you are being given. If MS MPEG4-v2 insists on delivering material as RGB, there is nothing AviSynth can do.

sungey
5th May 2003, 18:23
i have the same experience with Mpeg4-v2 sources ... i normally just use ConvertToYV12 and start filtering .... most divx3 sources are also reported as RGB32 in Info() ...

ErMaC
5th May 2003, 20:29
The problem with those VFW codecs is that they only deliver RGB data, regardless of the fact they internally store YV12. What I did when I needed to get source from those files is I used FFDShow and DirectShowSource (install ffdshow, bind to mp42 playback, use dshowsource in script). FFDShow by default returns YV12 to the filter chain.