Log in

View Full Version : Problems with Cscript wmcmd/Avisynth/DirectshowSource and Vista


ajp
26th July 2007, 14:25
I want to encode a video clip using "cscript wmcmd.vbs..." using an Avisynth script which contains the following...

DirectshowSource("file.mkv")

Now this works on a machine with XP but on Vista CScript crashes before the encoding can start. Both machines have the same filters etc installed. If I install Avisynth 2.56a on Vista it works but it takes a loong time before the encoding starts.

Any suggestions? Benwaggoner? Zambelli?

Update: WMP11 on Vista crashes when trying to play the .avs with Avs 2.57 but Media Player Classic plays it fine...

ajp
28th July 2007, 03:15
If I use directshowsource.dll from 2.56a everything works fine, what's changed?

zambelli
31st July 2007, 03:47
What codecs/splitters do you have to play back MKV? Is there a codec set to handle YV12 output from Avisynth?

ajp
31st July 2007, 07:15
Ffdshow beta3, AC3Filter 1.45, Haali Media Splitter.

Ffdshow has raw video enabled with YV12 support.

Same thing if I use DirectshowSource(file.avi), WMP11 and WMCmd.vbs crashes. Same filters and settings on my XP machine works, feels like I've tried everything....

Weird that the DirectshowSource.dll from AVS 2.56a works? I can add that I used a Virtual PC image downloaded from MS with Vista on it and installed the above filters and it crashes on that virtual machine too...

Thanks for trying to help!

zambelli
2nd August 2007, 00:29
Can you try playback in GraphEdit? Try all 3 renderers: VMR, VMR9 and EVR, if possible.

Do you know what dll/exe the process is crashing in anyway?

ajp
2nd August 2007, 13:44
Looks like it. I'm not that familiar with Graphedit but I select from Directshowfilters "Haali media splitter" as the first filter and then select the .avs, next I select "video renderer" or "video mixing renderer 9" and connect them and Graphedit inserts "ffdshow video decoder" between them? If this is correct my first test indicates it works, only tried in a VPC machine so far and vmr9 doesn't work in VPC I think...I'll do a proper test when I get home.

Faulting application wmplayer.exe, version 11.0.6000.6324, time stamp 0x4549b52a, faulting module ntdll.dll, version 6.0.6000.16386, time stamp 0x4549bdc9, exception code 0xc0000374, fault offset 0x000af1c9, process id 0xe40, application start time 0x01c7d502a0feb5f0.

ajp
2nd August 2007, 17:01
Tried it at home, it works in Graphedit with all renderers...vmr9/vmr/evr.

zambelli
3rd August 2007, 01:58
You don't need to build the graph piece by piece - you can just select "Render media file" and let it build the graph on its own - it's the same thing WMP does. You can then swap out just the renderer as needed.

ajp
3rd August 2007, 07:18
Ah, that I did not know... I will try that too, thanks! :)

ajp
3rd August 2007, 08:34
First test in VPC machine draws the same graph I did manually and it all works (can't select vmr9 in vpc).

* Playing the .avs (v2.57 DirectshowSource) in WMP11 or encoding with WMCmd.vbs

* Playing the .mkv source directly in WMP11 or encoding with WMCmd.vbs works fine.

* Playing the .avs (v2.57 DirectshowSource) in Graphedit works fine with all renderers (reservations for vmr9, I'll try later)

* Replacing the 'DirectshowSource.dll' with the 2.56a version lets me play and encode the .avs

:confused:

sportcenter
21st August 2007, 05:29
doesn't give any error messages...post your log errors if possible...

or better yet manually enter the whole command line so the window won't close if an error has occured

ajp
21st August 2007, 21:51
No messages and nothing in the log (except the windows event log I posted above), it doesn't get far enough to write anything in the log or display any messages...