Log in

View Full Version : "class not registered"


stephen22
15th August 2015, 15:56
I used a simple script to open an mts file from my video recorder:

fname="00086"

video = directshowsource("C:\Users\me\Videos\avisynth\"+fname+".mts")
audio = GetChannel (video, 1,2)
return AudioDub (video, audio)

worked fine.
Now I get error "class not registered", even with the same files I used before.

ffms2.dll and ffmsindex.exe in plugins
Haali media splitter installed
Windows7 x64

Be very grateful for any advice.

Reel.Deel
15th August 2015, 16:09
Be very grateful for any advice.

For .mts (or any of it's derivatives) DirectShowSource is the last thing you want to use. If you have a suitable Nvidia graphics card I highly recommend DGDecNV (http://rationalqm.us/dgdecnv/dgdecnv.html), if not then try LSMASHSource (http://avisynth.nl/index.php/LSMASHSource).

video = LWLibavVideoSource("source.mts")
audio = LWLibavAudioSource("source.mts")

AudioDub (video, audio)

stephen22
20th August 2015, 16:48
Thanks for your help.

I don't have an nvidia card and Winrar won't decompress the lsmashsource 7z download (never sure why people have to compress tiny files)

What's wrong with directshowsource? - it worked before. Is it unreliable? (obviously yes)

Groucho2004
20th August 2015, 17:14
Winrar won't decompress the lsmashsource 7z download (never sure why people have to compress tiny files)
Works fine for me, you must be using an ancient version of Winrar. Alternatively, use 7-Zip (http://www.7-zip.org/).

It's not so much about the compression, it's about packing a bunch of files into one file for easy download.

stephen22
21st August 2015, 13:04
Thanks that's helpful

clsid
21st August 2015, 15:49
"class not registered" could be because of broken DirectShow.

Grab Codec Tweak Tool and run all of its fixes.

stephen22
22nd August 2015, 15:40
Thanks to all for your help

Success with

#loadplugin ("C:\Users\me\Videos\Avisynth\lsmashsource.dll")

fname="00086"

fpath=("C:\Users\me\Videos\avisynth\"+fname+".mts")

audiodub (LWLibavVideoSource(fpath), lwlibavaudiosource(fpath))