Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st February 2007, 12:24   #1  |  Link
yukichigai
Registered User
 
Join Date: Jun 2004
Posts: 47
Can't read an odd-resolution WMV properly

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?

Last edited by yukichigai; 21st February 2007 at 12:42.
yukichigai is offline   Reply With Quote
Old 21st February 2007, 12:38   #2  |  Link
krisq
Registered User
 
Join Date: Dec 2003
Location: Poland
Posts: 171
428/4=107
__________________
(!sig)
krisq is offline   Reply With Quote
Old 21st February 2007, 12:42   #3  |  Link
yukichigai
Registered User
 
Join Date: Jun 2004
Posts: 47
Quote:
Originally Posted by krisq View Post
428/4=107
Sorry, I meant 426
yukichigai is offline   Reply With Quote
Old 21st February 2007, 13:28   #4  |  Link
yukichigai
Registered User
 
Join Date: Jun 2004
Posts: 47
Just so you get an idea of what I'm talking about

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.
Attached Images
  
yukichigai is offline   Reply With Quote
Old 22nd February 2007, 04:19   #5  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
Code:
DirectShowSource(..., pixel_type="...") # 2.5.7 Feature
Try YUY2 and RGB
IanB is offline   Reply With Quote
Old 22nd February 2007, 04:35   #6  |  Link
yukichigai
Registered User
 
Join Date: Jun 2004
Posts: 47
Quote:
Originally Posted by IanB View Post
Code:
DirectShowSource(..., pixel_type="...") # 2.5.7 Feature
Try YUY2 and RGB
Damn, I didn't know 2.5.7 was out. Thanks, that did the job nicely!
yukichigai is offline   Reply With Quote
Old 22nd February 2007, 04:56   #7  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
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.
IanB is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:06.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.