Log in

View Full Version : avisynth 2.5 cannot decode Divx, Xvid videos.


rs008f
10th June 2004, 06:14
I recently changed motherboard, upgrade CPU and memory, without reinstalling Windows XP. I don't know if the problem occured before or after this change. Avisynth 2.5 cannot find any codecs to decode my Divx and Xvid video, the audio plays fine. I use GSPOT to render the files and I have the necessary codecs installed. I tried reinstalling Avisynth and Divx, Xvid codecs but to no avail. The weird thing is I can still import my AVS script to CCE but not TMPGEnc and Mainconcept. I think the problem is Avisynth cannot locate the codecs installed on my system.

My script is just one line. avisource("C:\xx.avi")

Here are screenshots. Don't click the links, copy and paste into Address Bar.

ZOOM PLAYER
http://www.imagestation.com/picture/sraid121/pf326af316a5c90e3672ecad2d54fed5e/f855b6c7.jpg.orig.jpg

GSPOT
http://www.imagestation.com/picture/sraid121/pfd8b55902e1399352fe4e95714c69d8d/f855ae4f.jpg.orig.jpg


Media Player Classic
http://www.imagestation.com/picture/sraid121/p990bae4e514b939e448ea3102ebeb852/f855ab2c.jpg.orig.jpg


BTW, it's no just this one AVI, it's all AVI (MPEG-4), don't know about MPEG-2 and the rest. It seems Avisynth keeps looking for YV12 and YUY2 codecs for all MPEG-4 files, shouldn't it be looking for Divx, Xvid codecs instead?

rs008f
10th June 2004, 06:49
I guess some MPEG-4 works. Divx 3 video works in Avisynth., Divx 4, 5 and Xvid does not work however.

rs008f
10th June 2004, 08:09
I solved the problem by unregistering the file quartz.dll and then registering it again using Radlight Filter Manager. I got the clue from this Divx forum thread. I thought maybe DirectX 9 caused this problem.
http://forums.divx.com/viewtopic.php?topic=56315&forum=13

Wilbert
10th June 2004, 14:48
Divx 3 video works in Avisynth., Divx 4, 5 and Xvid does not work however.
That's because DivX3 outputs RGB, and DivX4/5/XviD YV12. Just read the YV12 FAQ: Q13.

rs008f
10th June 2004, 18:51
My problem is different I think, I don't get a black screen but AVisynth cannot find PINS to a connectable filter.
Anyway,I think my problem is not completely solved. Someone told me that the filters that Avisynth uses IS determined by GSPOT, I don't think this is accurate for my system. Using GSPOT, my Xvid and Divx videos are decoded using Xvid 1.0 and Divx 5 respectively but when I import the video to Avisynth and view the avs script on Media Player Classic, under Filters, it is using AVI Decompressor (quartz.dll), Color Space Converter (quartz.dll), Color Converter (declrds.ax) instead of the Divx 5 and Xvid decoders. Can you guys view your Divx/Xvid avs script on Media Player Classic and see what filters it is using? Just use one line if possible, AVIsource("c:\xxx.avi") I might have to fix my system some more.

Pen-Pen
10th June 2004, 23:02
er... I open XViD avi files with avisynth all the time... is it me who didn't get the question ?

and since when is Avisynth not able to open something else than RGB ? O_o

and RGB, YV12 and YUY2 are no codecs, but colorspaces...

the filters used are NOT determined by GSpot, GSpot points out which filter get used (in other words, that's the other way around ;))

open your avs file with WMP8 or WMP9, it should work perfectly (if what you intend is watching the movie)

and uninstall all the weird filters and codec packs you might have installed... switch to ffdshow to render your files ;)

rs008f
10th June 2004, 23:09
OK. Can you open your Divx/Xvid avs script in Media Player Classic and tell what filters MPC is using under "Filters"?
My avs scripts works fine in WMP but with so many codecs out there being able to decode Divx and Xvid, I'd prefer Divx decoding Divx and Xvid decoding Xvid. I need to know which codecs WMP uses to decode my avs scripts. WMP does not report the codecs used under Properties, so I use MPC instead.

stephanV
10th June 2004, 23:20
i think you wont see the divx decoder, because MPC will display the filters it needs to 'decode' the avs file, not the divx/xvid-file itself as that is done by avisynth.. since the ouput of the avs-file is yv12 if you have an 'avisource'-script of a divx or xvid file it will still need to convert the colorspace to RGB as thats the colorspace your monitor is in.

can i ask why you are wondering about this? everything is working again right?

rs008f
11th June 2004, 01:41
I feel that I need to know that my Divx, Xvid videos are being decoded by their respective decoders and not by a third party like Microsoft, ffdshow, NERO, REAL, etc, because they may not be as good.

DarkNite
11th June 2004, 06:27
You've already mentioned that you have the Radlight Filter Manager, so you can just use that to set a higher merit for the respective directshow decoders, or render several avi's to pinpoint extraneous or undesired decoders, then ensure that ffdshow isn't configured to decode any DivX or XviD fourCC's and DivX "Generic MPEG4 Support" is disabled.

Another thing to note is that if you have WinDVD5 (may be restricted to Platinum Edition) installed you may have a loose divxdec.ax floating around that can/will hijack you're decoding and use the 5.0.4 decoder as opposed to say the 5.1.1 decoder. That can be solved by unregistering it, deleting it, and then registering the DivXdec.ax present in your system32 folder.

If after that you're still not 100% sure that the respective decoders are being used, check the render graph again in either graphedit or gspot. I beieve you'll see exactly what you're looking for every time.

One last thing: Have you ever tried DirectShowSource?

Pen-Pen
11th June 2004, 06:30
wrong !

read posts about the subject, you'll see that you're at least better off with ffdshow ^^

If you don't want to encode, you won't have to bother with (possibly redundant) codecs' decoders.

EDIT : my solution (if it interests you), which has always worked fine for me :

1. windows filters (WMV, MPG, DiVX3...)
2. XViD-decoder (see Koepi's page for binaries) for XViD
3. ffdshow (for the rest... disable the above codecs)

DarkNite
11th June 2004, 07:06
I feel that I need to know that my Divx, Xvid videos are being decoded by their respective decoders and not by a third party

I was making suggestions based upon his stated preference. I thought that was obvious...

If the "read posts about the subject" line was adressed to me:

I don't need to read someone else's posts to know what my trained eyes can see for themselves, or what my opinion is.

Thank you for sharing your preference, but please respect others as well.

stephanV
11th June 2004, 08:31
Originally posted by rs008f
I feel that I need to know that my Divx, Xvid videos are being decoded by their respective decoders and not by a third party like Microsoft, ffdshow, NERO, REAL, etc, because they may not be as good.

open the file in VirtualDub and see what decoder that uses for your files, it will be the same one as 'AVIsource' will use. but i don't get it... why do you want open an AVIsource only script in your player. Isn't it just easier to open the file?

anyway, now were talking about preferences... @pen-pen:

why don't you use ffdshow for XviD? its much more versatile than the XviD decoder and XviD decoder appears to be buggy as well.

Pen-Pen
11th June 2004, 09:15
actually, I do neither of these ^^

As I encode XViD very often, I just install the whole codec ;)

Wilbert
11th June 2004, 12:31
Btw, WMP/MPC and TMPGEnc/CCE/MainConcept/Vdub use different codecs to decode your avi.

For the latter you need to add the registry setting I told you, or convert to the appropriate color format in AviSynth (RGB for TMPGEnc, YUY2 for CCE/MainConcept, etc.).

Jeff D
17th June 2004, 17:30
Originally posted by DarkNite
DivX "Generic MPEG4 Support" is disabled.

I think this is very important and almost to the point where it should be the default setting...