PDA

View Full Version : directshowsource and xvid problem


Davinator
30th October 2007, 20:18
I've had an interesting problem show up today. When I try the following script (which has worked in the past):

directshowsource("filename.avi")

I get the error message from VirtualDub "VirtualDub Error" "No video stream found." When I use avisource("filename.avi"), everything works fine. It's a file using the Xvid video and mp3 audio.

I've never seen an error message like this. I was using avisynth 2.57. I upgraded to 2.58 hoping it would fix the problem, but it didn't. Any thoughts??

IanB
30th October 2007, 23:08
Force DirectShowSource() to confess the error it is getting on the Video stream by setting Audio=False

directshowsource("filename.avi", audio=False)

You may need to re-register Xvid into DirectShow, uninstall and reinstall, or if you know what you are doing use Regsrv32.

And the current 2.58 DSS is borked!

Davinator
30th October 2007, 23:37
IanB,

Thanks so much for your prompt reply. I did your first suggestion setting audio=False. I received the following Virtualdub error message:


Avisynth open failure:

DirecrShowSource: couldn't open file filename.avi:
No combination of filters could be found to render the stream.
(f:\filename.avs, line 1)


I tried your first suggestion to fix it, which was to uninstall and reinstall xvid, but I'm getting the same error message. The strangest part about this error is that nothing on this computer has changed since last week when I last did this.

This video file also opens fine in windows media player, and virtualdub (when I drag the avi directly into it). Do I still need to re-register Xvid into DirectShow? Maybe I need to downgrade avisynth back to 2.57, or get my feet wet with Regsrv32 (which I've never used at all). What do you think?

Also to the admins, if this thread now belongs on the xvid tree, please feel free to move it :)

TheRyuu
30th October 2007, 23:53
-Go back to 2.57.
-Install ffdshow (or CCCP)
-Set Xvid in ffdshow to libavcodec (should be default and already set).
-Use DSS again.
-....
-Profit?

directshowsource("filename.avi")

You should be using avisource with that anyway. I have no idea why you want directshowsource to get it. avisource would probably be faster, and frame accurate.