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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > Capturing Video
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 16th November 2003, 21:47   #1  |  Link
Angelus
Registered User
 
Angelus's Avatar
 
Join Date: Apr 2003
Posts: 511
YUY2 Captured Resolution Not Divisible By 4, Won't Open In VDub...Help!!!

I captured two shows in the past week and stupid me didn't realize that YUY2 needs to have a width divisible by 4. I think I captured at 726x480...cause there's always a black bar on the left of the show and i figured once I crop that out it would be standard 720x480 resolution. I made an avisynth script using crop(6,0,0,0) to get the 720 resolution but when I open it up in VDub the picture is greyed and slanted to the right. Does anyone know how to fix this or will I just have to delete the captures?

Thanks

Angelus

Last edited by Angelus; 17th November 2003 at 19:57.
Angelus is offline   Reply With Quote
Old 16th November 2003, 22:25   #2  |  Link
vhelp
Registered User
 
vhelp's Avatar
 
Join Date: Feb 2003
Posts: 299
@ Angelus,

This may or man not help at all, but I've made a few mistakes like
this too, or even when I tweaking resing and stuff like that, which
results in slanted b/w output in vdub.
.
.
But, try and use only crop() w/out any convertToyuv2() or other
color converters. Just just crop() only and see if that fixes your
issue. I'm suspecting that the convertXX is doing it's own error
checking and revolting back at'cha

In vdub, I would just use the NullTransform command, and
crop the 6 pixels off.
.
.
It it works in vdub, and you can't fix it via AVS script, than perhaps
you should perform this under vdub, and then frameserve it into AVS
script and continue as usual ??

Good luck,
-vhelp
__________________
ESC K7S5A / XP 1800+ / Windows 98
ADVC-100[dvio] / WTVGO[avio] / DC10+[avio] / Canon ZR-10 / Delphi 6 Personal / JVC S-VHS HR-S3910U / Durabrand SSS w/ DVD Player STS75E / Sony TRV-22
FithElement/Dogma/BladeRunner/Contact
vhelp is offline   Reply With Quote
Old 16th November 2003, 22:37   #3  |  Link
Angelus
Registered User
 
Angelus's Avatar
 
Join Date: Apr 2003
Posts: 511
The avi won't open up in VDub...Well it will but as soon as I start to move the slider to go thru the show, it gives my a Vdub crash error, and it has to do with the huffyuv codec that I used to capture with. That is why I was trying to open it via avisynth in VDub. And if i just use AviSource("a.avi") and try opening that in VDub it states that YUY2 images for output must have widths divisible by 4...so this is where I got the idea for cropping...but when I try the cropping it comes out grey and slanted. And I never had a convertToyuy2 or anything after avisource...when it was captured it was in yuy2.
Angelus is offline   Reply With Quote
Old 16th November 2003, 22:49   #4  |  Link
vhelp
Registered User
 
vhelp's Avatar
 
Join Date: Feb 2003
Posts: 299
ok, one more question..

Are you using the modified Huffy codec for CCE ??
or, the regular version ??

I had color issues when I used the Huffy mod version, and had to revert
back to the older one.
.
.
but, does it play fine in other apps ie, powerdvd, media etc ??

-vhelp
__________________
ESC K7S5A / XP 1800+ / Windows 98
ADVC-100[dvio] / WTVGO[avio] / DC10+[avio] / Canon ZR-10 / Delphi 6 Personal / JVC S-VHS HR-S3910U / Durabrand SSS w/ DVD Player STS75E / Sony TRV-22
FithElement/Dogma/BladeRunner/Contact
vhelp is offline   Reply With Quote
Old 16th November 2003, 23:20   #5  |  Link
Angelus
Registered User
 
Angelus's Avatar
 
Join Date: Apr 2003
Posts: 511
I am using the modified huffyuv codec for cce, but I don't think that's the problem. I've had many captures with it and the only thing that was different with these captures was that the resolution was 726x480.

And I think it's because of the abnormal resolution that Media Player classic, and zoom player arent able to play the file.

So is there a way thay I could change the resolution of the file, back to standard 720x480 without using VDub?

Last edited by Angelus; 17th November 2003 at 18:17.
Angelus is offline   Reply With Quote
Old 18th November 2003, 13:43   #6  |  Link
Wilbert
Super Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,390
Could you upload a few frames somewhere?
Wilbert is offline   Reply With Quote
Old 18th November 2003, 17:38   #7  |  Link
Angelus
Registered User
 
Angelus's Avatar
 
Join Date: Apr 2003
Posts: 511
Sure, here's the link for 3 pictures of what's happening:
http://home.comcast.net/~angeles6116...tos.html-.html

For some reason I think it has to be opened up in Microsoft Internet Explorer...don't ask me why

I got the capture to open up with the following script:

AviSource("D:\Tony\TV Capture\Angel Nov 12 (2003-11-12 at21-01-48).avi")
crop(6,0,0,0)
#LanczosResize(576,432)

I tried the example of LanczosResize too but it came with the same picture in VDub.

Last edited by Angelus; 18th November 2003 at 17:46.
Angelus is offline   Reply With Quote
Old 18th November 2003, 18:39   #8  |  Link
Kika
Registered User
 
Join Date: Jul 2002
Location: Germany
Posts: 819
I guess it's the captured Video. It has to be devidable (?) by 16, not 4 or anything else.
You can use 704 or 720, also 672 or 688, but not 726. It's a limitation of the Codecs.
Kika is offline   Reply With Quote
Old 18th November 2003, 21:56   #9  |  Link
Wilbert
Super Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,390
Quote:
Sure, here's the link for 3 pictures of what's happening:
I meant the avi consisting of two/three frames But Kika could be correct, I don't know.
Wilbert is offline   Reply With Quote
Old 18th November 2003, 23:23   #10  |  Link
Angelus
Registered User
 
Angelus's Avatar
 
Join Date: Apr 2003
Posts: 511
Sorry about that, If you want I could email you the avi with 3 frames...I'm too busy right now to mess around with that stupid website. If you want me to do that, send me you're email address on a private message. Thanks
Angelus is offline   Reply With Quote
Old 19th November 2003, 01:04   #11  |  Link
vhelp
Registered User
 
vhelp's Avatar
 
Join Date: Feb 2003
Posts: 299
Angleus,

wow. This is the EXACT same issue I had ben experiencing over the
weekend. In my case, I was toyin garound w/ resizing techniques and
whenever i would input a strange resize value, I'd get this same b/w
curviture
.
.
But for me, my resolution was to just change the resizing to something
else w/in the spec ie, 704, 720, 480, 352 etc. You could also just bump
down a few notches in values.

However, if your source is permanent in this way (which I believe it
truely is ) then you'll have to recapture it (if that's even at all
possible)

Here is a suggestion, cause I've toyed w/ this one and it did actually
work for me, and may work for you too (but only if the source is not
permanently in this way)
.
.
Inside vdub, use the Rotate - - there are two of them. In your
case, you would benefit it if you use the 2nd one, marked as rotate2,
because you want to notch it a few increments, till it levels off w/
the proper Horizontal. And, use the Preview.
.
.
Tip.. if you enter a number, and TAB to next field (during Preview)
you can wysiwyg each try (but remember to Shift-Tab back to first field. A bit tricky to do, but can be masterd. Otherwise, it'll drive
you crazy reseting up the filter every time because you pressed the
Enter key. Just a thought.

Again, I think it's too late, as it's my belief that this is recorded
(captured) in the source this way. It's like trying to take a Black &
White video, and bust some brain cells trying to make it color..
won't happen.

Do give the above some thought though,
-vhelp
__________________
ESC K7S5A / XP 1800+ / Windows 98
ADVC-100[dvio] / WTVGO[avio] / DC10+[avio] / Canon ZR-10 / Delphi 6 Personal / JVC S-VHS HR-S3910U / Durabrand SSS w/ DVD Player STS75E / Sony TRV-22
FithElement/Dogma/BladeRunner/Contact
vhelp is offline   Reply With Quote
Old 19th November 2003, 02:24   #12  |  Link
Angelus
Registered User
 
Angelus's Avatar
 
Join Date: Apr 2003
Posts: 511
See the weird thing was that when I was capturing it in VirtualVCR in the preview pane the picture looked normal...that's why I thought it would be alright to do this. Obviously I should have realized about the parameters of the colorspace b4 I did this tho. I don't think I can do anything to get it to work but i will try what you suggested. Thanks
Angelus is offline   Reply With Quote
Old 4th December 2003, 22:28   #13  |  Link
trevlac
budala
 
Join Date: Oct 2003
Location: U.S.
Posts: 545
@Angelus

What was your codec ?

Thanks
trevlac is offline   Reply With Quote
Old 5th December 2003, 00:14   #14  |  Link
Angelus
Registered User
 
Angelus's Avatar
 
Join Date: Apr 2003
Posts: 511
it was huffyuv. I was just an idiot and didn't have a resolution that was divisible by 4.
Angelus is offline   Reply With Quote
Old 5th December 2003, 01:46   #15  |  Link
trevlac
budala
 
Join Date: Oct 2003
Location: U.S.
Posts: 545
Quote:
Originally posted by Angelus
it was huffyuv. I was just an idiot and didn't have a resolution that was divisible by 4.
I didn't know it needed to be a factor of 4. I thought it was 2 because there are 2 pixels in a 32 bit 4:2:2 macro pixel. I'll have to run some tests on different codecs I use.

Thanks
trevlac is offline   Reply With Quote
Old 5th December 2003, 03:10   #16  |  Link
Angelus
Registered User
 
Angelus's Avatar
 
Join Date: Apr 2003
Posts: 511
I think it has to do with the colorspace...it's originally captured in RGB24 and huffyuv converts it to YUY2...and I think YUY2 requires a width divisible by 4.
Angelus is offline   Reply With Quote
Old 5th December 2003, 05:49   #17  |  Link
trevlac
budala
 
Join Date: Oct 2003
Location: U.S.
Posts: 545
Analog is not natively RGB. I believe PAL is close to YUV and NTSC is like YUV but YQI. A BT878 will create pixels in packed YCrCb 4:2:2 format. From here it converts to many formats such as YUY2, YUV12, and RGB. I think YCrCb is basically the same as YUY2.

So basically, I guess one should ask a BT878 for YUY2 not RGB, if you use huffy.

For Packed 4:2:2 fromats like YUY2, each macropixel is 4 bytes (16 bits per pixel) and contains 2 pixels. The byte order is Y0 U0 Y1 V0 where U and V are shared by pixel 0 and 1.

So factors of 2 make sense because you have to read 4 bytes to get enough info for 1 pixel. By that time you have enough info for 2 pixels.

I am just learning about this. I wanted to test and thought your results would be a great start. I may be competly wrong on the stuff above. I'd be happy to be corrected.

Thanks
trevlac is offline   Reply With Quote
Old 5th December 2003, 12:28   #18  |  Link
Angelus
Registered User
 
Angelus's Avatar
 
Join Date: Apr 2003
Posts: 511
I'm not sure about the techincal aspect of capturing video and the whole deal with colorspaces. The reason I initially set the colorspace to RGB24 is b/c if I set it to YUY2 or anything else other than RGB, I'm unable to preview the video in VirtualVCR.
Angelus is offline   Reply With Quote
Old 5th December 2003, 13:19   #19  |  Link
Wilbert
Super Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,390
@trevlac,

You are entirely correct (except I think it is YIQ instead of YQI). Some more info about YUY2: http://www.avisynth.org/index.php?pa...rageInAviSynth
Wilbert is offline   Reply With Quote
Old 5th December 2003, 23:28   #20  |  Link
Angelus
Registered User
 
Angelus's Avatar
 
Join Date: Apr 2003
Posts: 511
sorry I have a quick question. I just upgraded my drivers to the btwincap drivers (I got it to work finally!!! ) and now it seems I can capture with VirtualDub. Always before the Leadtek drivers would limit my colorspace to rgb. I read that link Wilbert posted too. So is there a distint advantage to capturing in YUY2 rather than rgb? Thanks
Angelus is offline   Reply With Quote
Reply


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 18:35.


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