PDA

View Full Version : Clip with odd resolution - cannot open


Tommy P
5th June 2006, 15:50
Hi everybody,

I have an AVI clip (Xvid-encoded) that has some odd resolution; something like 642x422. It plays no problem in Win MediaPlayer, but my hardware player refuses to play it, so I wanted to re-encode it into DivX.

When I open it in Nandub or VDubMod directly, the video is all garbage. (Is it related to the odd resolution, or is it something else?)

When I try to open it through AviSource or DirectShowSource commands, the warning is that the size is not mod-4, so need to use crop. But how can I use crop on a clip that I cannot even open???

What do I do? :(

Thanks a lot!
Tom

Pookie
5th June 2006, 16:16
Run it through the beta version of GSPOT and verify the file's settings. Be certain what you're dealing with :)

Tommy P
5th June 2006, 16:29
Run it through the beta version of GSPOT and verify the file's settings. Be certain what you're dealing with :)

Pookie,

Thanks for the suggestion; that was the first thing I did: XviD with BVOP and NVOP. Looks kosher to me. :)

My hunch is the resolution is the culprit. Frankly, this is the first clip I'm seeing with height and width not being multiples of 4.

Thanks!
Tom

foxyshadis
5th June 2006, 16:40
If it opens in DirectShow, use DSS. Make sure ffdshow's doing the decoding, and force it to resize to a mod-4 or whatever resolution. Make sure "resize always" is selected when you turn resizing on. Then you should be able to load and process it normally.

Wilbert
5th June 2006, 18:33
Try to force it as RGB:

AviSource(blabla, pixel_type="RGB24")

Tommy P
5th June 2006, 18:43
foxyshadis, Wilbert,

Both your ideas are excellent; thank you very much!! I'll try them out tonight.

:thanks:

Tom

Tommy P
6th June 2006, 13:19
Just wanted to thank everybody one more time for your ideas. Opening the clip with AviSource and setting pixel_type worked... but:
pixel_type="RGB24" => garbage video
pixel_type="RGB32" => normal video
pixel_type="YV12" => garbage video
pixel_type="YUY2" => normal video

Not sure what it tells me though... :confused:

:thanks:

Tom