Log in

View Full Version : Problems with Directshowsource and wmv-files


HLW
16th July 2004, 12:23
Hi!

I would like to decode some .wmv files using Avisynth and the DirectShowSource function,

Directshowsource("d:\sample.wmv", fps=25)

but in VDubMod I only get the message

AVISynth open failure
Evaluate: Unrecognized exeption

The .wmv files plays perfectly in Media Player Classic, and also on my laptop. I use Avisynth 2.5.4 on both of them. The computer in trouble is a Pentium 4, 3GHz with Windows XP

Have anyone else experienced this problem, or do someone know how to solve it?

- Haakon

sh0dan
16th July 2004, 12:30
Post all the filters listed in GraphEdit, when you open the WMV-file there, or make a sample file available.

HLW
16th July 2004, 13:40
Hi again!

I'm not very familiar with GraphEdit, but I hope this is what you asked for:

Raw Audio - WMAudio Decoder DMO - Morgan Stream Switcher - Default DirectSound Device

Raw Video - WMVideo Decoder DMO - Video Renderer

Edit: And the video plays in graph edit.

- Haakon

Wilbert
16th July 2004, 14:10
Strange. Could you unregister 'Morgan Stream Switcher' (which is called msswitch.ax, or something like that) and try again?

HLW
16th July 2004, 14:21
What do you mean by unregister?

sh0dan
16th July 2004, 16:21
Try adding "audio = false" as DirectShowSource argument. It may also help to enable ffdshow to accept "Raw Video", so video is sent through ffdshow before it enters AviSynth.

Wilbert
16th July 2004, 23:07
To register a directshow filter:

regsvr32 /s mmswitch.ax

To unregister it:

regsvr32 /u mmswitch.ax

malkion
17th July 2004, 00:07
Or copy this code as "RegShExt.inf" (rename .txt to .inf) then install it. Voila, instant register/unregister for your filters.

code:
; RegSvr32 Shell Extension
; Registriere DLL, OCX, EXE per Rechtsklick
; Win 9x, NT4 & 2k
; Release 1.0
;
; By Gej 03.03.2000
[Version]
signature="$chicago$"

[DefaultInstall]
CopyFiles=Files.inf
AddReg=Reg.Add,Reg.Uninstall

[DefaultInstall.ntx86]
CopyFiles=Files.inf
AddReg=Reg.Add,Reg.Uninstall.NT

[DefaultUninstall]
DelFiles=Files.inf
DelReg=Reg.Add,Reg.Uninstall,Reg.Uninstall.NT,Reg.Remove,

[SourceDisksNames]
1="%01%",,1

[Reg.Uninstall]
HKLM,%UnInstallPath%,DisplayName,,%UninstallDispName%
HKLM,%UnInstallPath%,UninstallString,,"%10%\rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 132 %17%\%InfFile%"

[Reg.Uninstall.NT]
HKLM,%UnInstallPath%,DisplayName,,%UninstallDispName%
HKLM,%UnInstallPath%,UninstallString,,"%11%\rundll32.exe setupapi,InstallHinfSection DefaultUninstall 132 %17%\%InfFile%"

[Reg.Add]
HKCR,.ocx\shell\RegOCX,,,Register
HKCR,.ocx\shell\RegOCX\command,,,"regsvr32 %1"
HKCR,.ocx\shell\UnRegOCX,,,UnRegister
HKCR,.ocx\shell\UnRegOCX\command,,,"regsvr32 /u %1"
HKCR,.ax\shell\RegAX,,,"Register Filter"
HKCR,.ax\shell\RegAX\command,,,"regsvr32 %1"
HKCR,.ax\shell\UnRegAX,,,"UnRegister Filter"
HKCR,.ax\shell\UnRegAX\command,,,"regsvr32 /u %1"
HKCR,dllfile\shell\RegDLL,,,Register
HKCR,dllfile\shell\RegDLL\command,,,"regsvr32 %1"
HKCR,dllfile\shell\UnRegDLL,,,UnRegister
HKCR,dllfile\shell\UnRegDLL\command,,,"regsvr32 /u %1"
HKCR,exefile\shell\RegEXE,,,"Register Server"
HKCR,exefile\shell\RegEXE\command,,,"%1 /regserver"
HKCR,exefile\shell\UnRegEXE,,,"UnRegister Server"
HKCR,exefile\shell\UnRegEXE\command,,,"%1 /unregserver"

[Reg.Remove]
HKCR,.ocx\shell\RegOCX
HKCR,.ocx\shell\RegOCX\command
HKCR,.ocx\shell\UnRegOCX
HKCR,.ocx\shell\UnRegOCX\command
HKCR,.ax\shell\RegAX
HKCR,.ax\shell\RegAX\command
HKCR,.ax\shell\UnRegAX
HKCR,.ax\shell\UnRegAX\command
HKCR,dllfile\shell\RegDLL
HKCR,dllfile\shell\RegDLL\command
HKCR,dllfile\shell\UnRegDLL
HKCR,dllfile\shell\UnRegDLL\command
HKCR,exefile\shell\RegEXE
HKCR,exefile\shell\RegEXE\command
HKCR,exefile\shell\UnRegEXE
HKCR,exefile\shell\UnRegEXE\command

[Strings]
InfFile="RegShExt.inf"
SetupRegPath="Software\Microsoft\Windows\CurrentVersion\Setup"
UninstallDispName="RegSvr32 Shell Extension"
UnInstallPath="Software\Microsoft\Windows\CurrentVersion\Uninstall\RegSvr32ShellExtension"

[DestinationDirs]
Files.Inf=17

[Files.Inf]
RegShExt.inf
end code:

oh, right click your filters to reg/unreg.

HLW
19th July 2004, 09:20
I tried to unregister the mmswitch.ax, to set audio=false, and to enable ffdshow to accept raw video. But the problem is still there... :mad:
My filter graph is now as simple as:

Audio: Raw Audio - WMAudio Decoder DMO - Default DirectSound Device
Video: Raw Video - WMVideo Decoder DMO - Video Renderer

And the only place the video don't play is through Avisynth...

Wilbert
19th July 2004, 09:34
I have no idea what the problem is. Could you upload the clip somewhere?

HLW
19th July 2004, 10:15
I've tried with several different wmv clips. The last one was "goodbye.wmv" which is a clips that came with Windows. I have no place to upload it, but I don't think the clips is the case since I've tried with several.

Terribly annoying, because Avisynth is the by far best tool for my tasks..

Kika
19th July 2004, 12:41
I guess the problem is this crappy WMVideo Decoder DMO.
Did you try to open the video in TMPGEnc 2.5x directly?

HLW
19th July 2004, 13:14
@ Kika:

Hmmm...what should I do with the file in TmpgEnc? My wmv files play in all the other players I have tried.

If your guess is correct, is there any way to avoid the WMVideo Decoder DMO?

Kika
19th July 2004, 13:33
Hmmm...what should I do with the file in TmpgEnc?

Maybe convert it to AVI or MPEG? :D