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 |
|
|
#1 | Link |
|
Registered User
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 |
|
|
|
|
|
#2 | Link |
|
AC3 5.1 Addict
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? |
|
|
|
|
|
#3 | Link |
|
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 |
|
|
|
|
|
#4 | Link |
|
AC3 5.1 Addict
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? |
|
|
|
|
|
#5 | Link |
|
Registered User
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 |
|
|
|
|
|
#6 | Link |
|
Software Developer
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. |
|
|
|
|
|
#7 | Link |
|
AC3 5.1 Addict
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? |
|
|
|
|
|
#8 | Link |
|
Registered User
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 |
|
|
|
|
|
#9 | Link |
|
AC3 5.1 Addict
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? |
|
|
|
|
|
#10 | Link |
|
Registered User
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 |
|
|
|
|
|
#11 | Link |
|
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 |
|
|
|
|
|
#12 | Link |
|
Registered User
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 |
|
|
|
|
|
#13 | Link |
|
Software Developer
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. |
|
|
|
|
|
#14 | Link |
|
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 |
|
|
|
|
|
#16 | Link | |
|
AC3 5.1 Addict
Join Date: Nov 2001
Location: Big Blue Nation_USA
Posts: 2,036
|
Quote:
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? |
|
|
|
|
|
|
#17 | Link |
|
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. |
|
|
|
|
|
#18 | Link |
|
Registered User
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. |
|
|
|
|
|
#19 | Link |
|
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 |
|
|
|
|
|
#20 | Link |
|
AC3 5.1 Addict
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? |
|
|
|
![]() |
|
|