User User name Password  
   
Monday 29.9.2025 / 18:25
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > archived forums > divx / xvid > virtualdub error, caused by non mod 16 resolution?
Show topics
 
Forums
Forums
VirtualDub error, caused by non mod 16 resolution?
  Jump to:
 
Posted Message
Blighter
Member
_
26. January 2006 @ 10:21 _ Link to this message    Send private message to this user   
Hey guys,

My DVD to Avi's have been going ok recently, but i got a new problem today :

I resized one of my videos in VirtualDubMod to 688x384, but there was a black border bit on the left hand edge, so i cropped it using the Null Transform filter, and consequently, that changed the resolution to 688x383. When i tried to start encoding with Xvid, i got an error : "Cannot start video compression : An unknown error occured (maybe corrupt data)..."

I wasn't sure what was wrong at that point, however i decided to play around a bit and discovered that if i undo the crop (in other words, leave the resolution at mod16), it works fine. It's only when the resolution gets changed from 688x384 to 688x383 that the error happens. Strange thing is, i swear i've done the same crop on the video before and it's worked fine in the past? What's wrong now?

Cheers guys,

Blighter
Advertisement
_
__
Blighter
Member
_
26. January 2006 @ 10:30 _ Link to this message    Send private message to this user   
Sorry, got that wrong, i cropped it to 683x384

cheers

Blighter
Blighter
Member
_
26. January 2006 @ 10:43 _ Link to this message    Send private message to this user   
Got it wrong again!! It seems to dislike any odd number (eg 683x384, 685x384) but likes even numbers...is this supposed to happen? I assume it's to do with XviD encoder rather than VirtualDub?

So assuming i can't put in an odd number for resolution, is there any other way i can crop the video without cutting out any of the movie and leaving a black border on the video?

Cheers guys,

Blighter
celtic_d
AfterDawn Addict
_
26. January 2006 @ 16:30 _ Link to this message    Send private message to this user   
XviD like other MPEG-4 codes uses YV12 colourspace, when means mod2 for vertical and mod4 for horizontal. You really are better off sticking with mod16 though. RGB is the only way to get odd resolutions.

So it is neither VDub or XviD, it is a simple matter of colourspaces.
Blighter
Member
_
27. January 2006 @ 05:28 _ Link to this message    Send private message to this user   
Ah, fair enough. So cropping isn't really a good idea as it changes the resolution and therefore makes the video non mod16?

Cheers,

Blighter
celtic_d
AfterDawn Addict
_
27. January 2006 @ 16:35 _ Link to this message    Send private message to this user   
Well encoding black borders isn't a good idea either.
Advertisement
_
__
 
_
Blighter
Member
_
28. January 2006 @ 14:32 _ Link to this message    Send private message to this user   
Lol ok, finally found the solution...

I was being single minded. I kept resizing, then cropping - when infact the answer is to crop the video, then resize to the desired resolution. Just posting incase anyone else has similar problem...
afterdawn.com > forums > archived forums > divx / xvid > virtualdub error, caused by non mod 16 resolution?
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork