Log in

View Full Version : Can't read an odd-resolution WMV properly


yukichigai
21st February 2007, 12:24
I'm having some difficulty with a WMV clip I'm trying to load up in AviSynth. It's encoded using WMVA and has a width of 426 (not divisible by four), but the WMVA decoder forces it to output in YV12, which causes serious problems. Even if I do a color conversion I get a "diagonally slanted" video. I've been trying to figure out a way to force it to load the clip in a different colorspace, but because I'm stuck using DirectShowSource I can't. What are my options?

krisq
21st February 2007, 12:38
428/4=107 :)

yukichigai
21st February 2007, 12:42
428/4=107 :)

Sorry, I meant 426

yukichigai
21st February 2007, 13:28
Attached are two images showing what I get when trying to render the file in AviSynth and what I get when just playing the file in MPC. The "diagonal distortion" output happens regardless of if I crop/don't crop, convert to whatever color space, etc.

IanB
22nd February 2007, 04:19
DirectShowSource(..., pixel_type="...") # 2.5.7 FeatureTry YUY2 and RGB

yukichigai
22nd February 2007, 04:35
DirectShowSource(..., pixel_type="...") # 2.5.7 FeatureTry YUY2 and RGBDamn, I didn't know 2.5.7 was out. Thanks, that did the job nicely!

IanB
22nd February 2007, 04:56
Okay, DSS currently assumes YV12 rows are mod 4 aligned in memory like BMP's are.

Looks like either this assumption is wrong.

Can you upload a small sample (<10 frames) of this file for testing.