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 > Avisynth Usage
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 18th December 2002, 19:19   #1  |  Link
trbarry
Registered User
 
trbarry's Avatar
 
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,092
Avisynth YV12 2.5 scripts in directshow?

I notice if I drop an Avisynth 2.5 script into Graphedit on my Radeon LE equipped machine it will connect to the Avi decompressor, which outputs RGB. This is slower and obviously not a good thing.

Anyone know how to set it up in Graphedit to pass YV12 all the way through to the screen?

- Tom
trbarry is offline   Reply With Quote
Old 18th December 2002, 20:05   #2  |  Link
MaTTeR
AC3 5.1 Addict
 
MaTTeR's Avatar
 
Join Date: Nov 2001
Location: Big Blue Nation_USA
Posts: 2,036
I've been trying the same thing for a few days but had no luck yet. So far everything I've tried to insert in between results in pins not wanting to connect properly.
__________________
Need AC3 & SPDIF setup info?
MaTTeR is offline   Reply With Quote
Old 18th December 2002, 20:40   #3  |  Link
drebel
Registered User
 
Join Date: Nov 2002
Location: Athens,Hellas
Posts: 152
Ffdshow in "raw video" mode is not an option?It certainely delivers YV12 output with yv12 avs in zplayer without any "complains".Sorry ,i dont have Graphedit in front of me right now(recently re-formated.I think you just have to select Raw before adding the filter to the chain...

regards,
george
drebel is offline   Reply With Quote
Old 18th December 2002, 22:30   #4  |  Link
MaTTeR
AC3 5.1 Addict
 
MaTTeR's Avatar
 
Join Date: Nov 2001
Location: Big Blue Nation_USA
Posts: 2,036
You were right, selecting raw video in ffdshow worked like a charm for me on my Geforce2 card. GraphEdit automatically inserted ffdshow when I dropped the script on it. Thx!
__________________
Need AC3 & SPDIF setup info?
MaTTeR is offline   Reply With Quote
Old 19th December 2002, 03:04   #5  |  Link
trbarry
Registered User
 
trbarry's Avatar
 
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,092
I can set up ffdshow to output YV12 but then Graphedit will still convert it to RGB with the AVI decompressor.

I'm almost certain my Radeon card can support YV12 overlays (how can I tell?) but for the life of me I can't seem to make it do it. I really want YV12 direct output for the extra dislay speed trying to disply HDTV resolution Xvid clips.

This is on my dev machine and I just updated Win/Me Radeon drivers. I never checked all this before because I was more interested in the programming and not concerned about the speed of 2.5 alpha.

It seems there was a thread around here about this (YV12 overlays) but a quick search didn't find it. Anyone remember?, or know how to correct this?

- Tom
trbarry is offline   Reply With Quote
Old 19th December 2002, 05:16   #6  |  Link
Blight
Software Developer
 
Blight's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 1,024
You can remove the YV12 checkbox on ffdshow to see if it outputs YUY2 to the overlay. If it does, it may be that the radeon doesn't have YUV12 overlays.

On my P4/2.53 I can play 1280x720@30fps XVID with no frame drops and perfect audio sync. A P4/1.8ghz can't.

Oh, and if you encode with QPEL i think it may eat more CPU and may not even play on that.
__________________
Yaron Gur
Zoom Player Developer
Blight is offline   Reply With Quote
Old 19th December 2002, 05:53   #7  |  Link
MaTTeR
AC3 5.1 Addict
 
MaTTeR's Avatar
 
Join Date: Nov 2001
Location: Big Blue Nation_USA
Posts: 2,036
Tom,

When I open a script GraphEdit isn't inserting the AVI decompressor at all. I only have ffdshow, video render and of course the AVS in the graph.

I certainly would hope that the Radeon supports YV12 overlays since I was thinking of upgrading soon.
__________________
Need AC3 & SPDIF setup info?
MaTTeR is offline   Reply With Quote
Old 19th December 2002, 14:45   #8  |  Link
trbarry
Registered User
 
trbarry's Avatar
 
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,092
MaTTer -

I won't have the AVI decompressor in the graph either if I let ffdshow use RGB as an output format. But if I remove all output formats (in the General tab) except YV12 then the decompressor will be inserted.

Either way, if I right click on the Video Renderer it will show RGB.

I'm sure all this has been discussed recently. I just can't find it now.

- Tom
trbarry is offline   Reply With Quote
Old 19th December 2002, 15:04   #9  |  Link
MaTTeR
AC3 5.1 Addict
 
MaTTeR's Avatar
 
Join Date: Nov 2001
Location: Big Blue Nation_USA
Posts: 2,036
Tom,

The only thread I recall YV12 overlays being discussed was here.

It seems like you could use SiSoft Sandra to check the Radeon capabilities.
__________________
Need AC3 & SPDIF setup info?
MaTTeR is offline   Reply With Quote
Old 19th December 2002, 17:03   #10  |  Link
trbarry
Registered User
 
trbarry's Avatar
 
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,092
That may have been the one. I maybe wasn't paying enough attention when I read it the first time.

In Graphedit, if you right click on the video renderer properties, does it say YV12 on your system? If so, what video card do you have?

Also, anybody else can do this and report?

- Tom
trbarry is offline   Reply With Quote
Old 19th December 2002, 17:47   #11  |  Link
drebel
Registered User
 
Join Date: Nov 2002
Location: Athens,Hellas
Posts: 152
If i remember correctly ,there's a small "bug" in ffdhow congig panel: one must UNCHECK all color formats except yv12 once,and then RECHECK everything to enable yv12 output as default...
Please check this also and report if the problem is solved(of cource ,disable DivxG400 for subs,if used-it forces yuy2...)

PS:if you dont mind me asking ,what are you trying to do with activeX window?Are you planning to create an "avs-preview" player or something?

always glad to see happy faces...
regards,
george
drebel is offline   Reply With Quote
Old 19th December 2002, 18:34   #12  |  Link
trbarry
Registered User
 
trbarry's Avatar
 
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,092
drebel -

I'll try that, but I don't think it is the issue because I can now already get ffdshow to output YV12. I'm past that hurdle, just by setting it to output YV12 and nothing else, and leaving it there.

The ffdshow output pin will show YV12. But if I run it this way it pulls in the AVI decompressor which will convert to RGB.

If I let ffdshow output RGB then the AVI decompressor is not used so I think my render filter is asking for RGB first. And I don't know how to change that.


I'm still looking for any Radeon (or any) examples where the render filter actually says YV12.


All I'm really trying to do here is establish a complete path MPEG2 data -> DVD2AVI -> MPEG2DECx -> Avisynth -> Virtualdub -> Xvid -> ffdshow -> display with NO color conversions. This is both for performance and fidelity.

My focus right now is mostly on display CPU performance. I've written another software scaling algorithm for rapidly upsizing my HDTV samples at display time and it runs as an Avisynth filter. I need the extra performance to display my samples.

If I get it working well in real time then maybe I can talk Milan into putting it into ffdshow.

- Tom
trbarry is offline   Reply With Quote
Old 19th December 2002, 20:13   #13  |  Link
Blight
Software Developer
 
Blight's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 1,024
NVIDIA GF4 TI4200:
YV12 on VMR renderer, input from ffdshow.
Now, if I use the standard renderer, it gets RGB32 input on the pin.

Using the Overlay Mixer filter, the mixer takes YV12 input and outputs RGB32.
__________________
Yaron Gur
Zoom Player Developer
Blight is offline   Reply With Quote
Old 19th December 2002, 20:19   #14  |  Link
drebel
Registered User
 
Join Date: Nov 2002
Location: Athens,Hellas
Posts: 152
@tbarry

Is there any special reason for using "avi-decompressor" in the chain?
I think video rendener is all that's needed to to the job easily.But if you select "overlay mixer " BEFORE video rendener,you have to choose "use overlay" from within ffdshow in order to have haturation,hue,...etc options in your image.Sorry, i own a Gforce and i cannot help you with your Radeon.
But,i'll ask my cousin "cult" instead so,you'll have an answer shortly.In the manwhile,i'm dl Graphedit to see what's going on...

regards,
george
drebel is offline   Reply With Quote
Old 19th December 2002, 20:24   #15  |  Link
drebel
Registered User
 
Join Date: Nov 2002
Location: Athens,Hellas
Posts: 152
Blight was faster...and far more precise
what about overlaymixer2(although i think its inferior to the previous one..)
drebel is offline   Reply With Quote
Old 19th December 2002, 21:05   #16  |  Link
MaTTeR
AC3 5.1 Addict
 
MaTTeR's Avatar
 
Join Date: Nov 2001
Location: Big Blue Nation_USA
Posts: 2,036
Quote:
Originally posted by trbarry
In Graphedit, if you right click on the video renderer properties, does it say YV12 on your system? If so, what video card do you have?
I don't see anywhere in the video render filter where it describes what color space is being output. However, I did notice that in the DirectDraw tab it only lists YUV and RGB overlays and they have a checkbox beside of them. YV12 is listed in the Hardware Capabilities area though.

ffdshow is listing codec as YV12 and output color space is YV12 but I see nothing in the video render window that displays real-time color space output. My card is a GeForce2 MX/64MB AGP using the certified 40.72 drivers.
__________________
Need AC3 & SPDIF setup info?
MaTTeR is offline   Reply With Quote
Old 19th December 2002, 21:40   #17  |  Link
drebel
Registered User
 
Join Date: Nov 2002
Location: Athens,Hellas
Posts: 152
Same here...windows2000,no VideoMixerRenderer.Works like a charm.No way to explore videorendener output though.Maybe you need a special program that controls overlay(there are some written in Delphi ,as i remember,to handle connection of input-output pins of those filters
PS: overlaymixer2 failed to connect...

Last edited by drebel; 19th December 2002 at 21:44.
drebel is offline   Reply With Quote
Old 19th December 2002, 22:20   #18  |  Link
trbarry
Registered User
 
trbarry's Avatar
 
Join Date: Oct 2001
Location: Gainesville FL USA
Posts: 2,092
I'm on Win/Me, so I don't think I have a VMR renderer. Maybe that's the difference.

If I choose Use Overlay Mixer from ffdshow then I get one of those instead of the Avi decompressor, but it still puts out RGB to the (non-VMR) video renderer.

Is the Overlay Mixer faster than whatever the AVI Decompressor is doing?

I think I need a new render filter for Win/Me. Mine doesn't show YV12 overlays either. Didn't someone write their own render filter a while back and post it here?

Yeah, I know, I'll search.

- Tom

PS - Maybe the reason I can see the properties of my render filter is because I've got the DXSDK installed. No idea.
trbarry is offline   Reply With Quote
Old 20th December 2002, 18:18   #19  |  Link
drebel
Registered User
 
Join Date: Nov 2002
Location: Athens,Hellas
Posts: 152
I'm also seeing properties(DSpack2.1 installed...)But i still cant tell the output format(only what my card is capable of performing).I think i saw somewhere a while ago a prog named OvTool (or something).

regards
drebel is offline   Reply With Quote
Old 6th January 2003, 15:29   #20  |  Link
MaTTeR
AC3 5.1 Addict
 
MaTTeR's Avatar
 
Join Date: Nov 2001
Location: Big Blue Nation_USA
Posts: 2,036
Tom,

Sorry to drag this thread back up but I just seen a comment from HarryM in this thread that might interest you-
http://forum.doom9.org/showthread.ph...289#post236289

Basically he says his Radeon 7000 VE doesn't support YV12 overlays. Did you verify your model supports them yet?
__________________
Need AC3 & SPDIF setup info?
MaTTeR 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 01:59.


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