PDA

View Full Version : VC-1 DirectShow decoding hell!


Blue_MiSfit
23rd June 2009, 13:04
Hey folks,

I'm sure I'm missing something really simple here, but whack me upside the head and remind me..

I'm running Windows 7 RC1 for the record, and have the latest ffdshow-tryouts installed.

I've got a VC-1 MKV I ripped from a BluRay disc, and it's perfectly playable in MPC-HC, using the WMVideo Decoder DMO by default.

Now, I'm trying to load it into AviSynth per my usual procedure - via DSS2().

This fails with a "can't open" error. DirectShowSource returns a similar error.

I've tried setting VC-1 decoding in ffdshow to both libavcodec and WMV9, both with the same result. I also tried manually installing and registering the MPCVideoDec.ax filter from MPC-HC (which is just a DirectShow wrapper around libavcodec's VC-1 decoder - right?)

Short of building a manual filter graph (which I don't want to have to do every time I handle a VC-1 title), how the heck can I make VC-1 decode properly into AviSynth?

I'm sure it's some silly DirectShow decoder configuration...

Thanks!

~MiSfit

7ekno
23rd June 2009, 14:09
Does FFMPEGSource2() work better as the input filter?

It might be that the MS one is a higher priority in the DirectShowSource chain, but doesn't play nice with the new Multimedia mechanism in Win7 (by barring external calls to MS codecs or something) ...

Tek

Mounir
23rd June 2009, 15:39
you need the latest divx codec that's the best h264 decoder

neuron2
23rd June 2009, 15:40
you need the latest divx codec that's the best h264 decoder This thread is about VC-1, not H.264!

Blue_MiSfit
24th June 2009, 00:08
@7enko:

I think you're right.

I tried FFMS2 and got the following crash when I tried to open the source with FFVideoSource:

Traceback (most recent call last):
File "AvsP.pyo", line 5804, in OnMenuVideoRefresh
File "AvsP.pyo", line 8822, in ShowVideoFrame
File "AvsP.pyo", line 9256, in UpdateScriptAVI
File "pyavs.pyo", line 167, in __init__
File "avisynth.pyo", line 117, in Invoke
WindowsError: exception: access violation reading 0x41CF35A0


I was able to index the MKV without issues.

I was also able to open an H.264 MKV using FFMS2 without issues..

~Misfit

Atak_Snajpera
24th June 2009, 00:30
I assume you forgot to force ffdshow as preffered DirectShow decoder. Execute ripbot264.exe once and everything will be set for proper vc-1 decoding. You can also use clsid's tool. http://forum.doom9.org/showthread.php?t=146910

Blue_MiSfit
24th June 2009, 02:29
Bingo!

Thanks for the pointer, Atak_Snapjera!

~MiSfit