Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
7th September 2006, 10:17 | #1 | Link |
Registered User
Join Date: Jan 2006
Location: United Kingdom
Posts: 57
|
AviSynth not working in Win2003?
Hi,
I am using Windows 2003 Enterprise 32 bit. I have no problem playing mpeg2source but for some reason directshowsource does not work at all. I can play the AVIs in windows media player with no problem. They also work in VirtualDubMod but not in avisynth using directshowsource. Can I see what settings or direct show filter AviSynth is trying to use? And in that case, point it to whatever VirtualDub is using... |
7th September 2006, 10:40 | #2 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Just for testing, can you install xvid (assuming it's mpeg-4) or ffdshow and see whether that helps? It might be that you have only vfw (avisource/vdub) codecs, which media player will fall back on if no directshow codecs are present.
Then again, if avisource works, why use the much flakier directshowsource? |
7th September 2006, 11:11 | #3 | Link |
Registered User
Join Date: Jan 2006
Location: United Kingdom
Posts: 57
|
ffdshow is installed and I have also tried to install a number of other codecs but it doesnt work. It seams like the AVIs play back with no video at all and AVS think that they are 0x0. The length seams to be return correctly.
I have tried both Avi with DV and uncompressed settings, AVIsource does not work either. |
8th September 2006, 02:20 | #5 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
Without audio hardware the default Render File call used by DirectShowSource() will fail (Damn!). You will have to manually contruct a DirectShow graph with GraphEdit, save the .GRF file and load that with DirectShowSource().
Or you could buy some cheap USB sound device and give the machine the semblence of audio hardware. Or you could install the Null Renderer and hack the merit to some serious value. |
8th September 2006, 13:00 | #7 | Link | |
Registered User
Join Date: Jan 2006
Location: United Kingdom
Posts: 57
|
Quote:
DirectShowSource: Could not open as video or audio Video Returned: "DirectShowSource: the filter graph manager won't talk to me" Audio Returned: "DirectShowSource: the filter graph manager won't talk to me" Last alternative is probably a bit overkill for me. Thanks for your input. "Or you could demux the video." Too time consuming. I need AVS to frame serve the video. Last edited by ApPojken; 8th September 2006 at 13:20. |
|
8th September 2006, 14:48 | #9 | Link |
Registered User
Join Date: Jan 2006
Location: United Kingdom
Posts: 57
|
It doesn't matter what codec I use. I get the same error no matter what. AVISource handles the files better than DirectShowSource though because of the call it does to the audio? I think the fourCC was "dvsd" (DV video) for the video and 0x0001 for the audio (standard linear PCM). But the issue is the same for all AVIs I have tried so far.
|
8th September 2006, 20:26 | #10 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Oh, when you make a .grf, you have to remove the renderers (and preferably any colorspace conversion). I remember having this exact same problem on my server; I don't use it for encoding anymore, but it's nice to know why DSS didn't work.
|
23rd January 2011, 00:39 | #12 | Link | |
Registered User
Join Date: Sep 2008
Posts: 40
|
Quote:
Don't know if it will solve your problem, but perhaps. (If you can be logged on to the console via RDP.) |
|
23rd January 2011, 02:43 | #13 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
I did change the code to this quite some time ago, and it did help on the 2k3 server I tried it on. RenderFile was building a useful partial graph but returning an error code due to the lack of possible audio path. So I now ignore all errors and just check if the DSS pseudo renderer is connected and run with that.
Code:
HRESULT RFHresult = gb->RenderFile(filenameW, NULL); if (!get_sample.IsConnected()) { // Ignore arbitary errors, run with what we got CheckHresult(env, RFHresult, "couldn't open file ", filename); env->ThrowError("DirectShowSource: RenderFile, the filter graph manager won't talk to me"); } |
23rd January 2011, 13:35 | #14 | Link |
Sanford
Join Date: Aug 2009
Location: ShangHai
Posts: 2
|
Now I am using Windows 2003 Enterprise 32 bit on Dell R610 server machine. The machine doesn't has sound card and can't support winXP os.
Yesterday after I installed a virtual sound card program, I have put a .m2ts file into graphedt.exe, graphedit.exe builded a intelligent connect crashed because of using default audio render filter. When i replaced the default audio filter by another audio render filter(somethings like windows RDP driver), the filter graph can run correctly. Now i have two questions: 1. How can i make the intelligent connect use the right audio render filter, increase the filter's merit value in windows's registry? 2. Does directshowsource function supports import .GRF file, such as DirectShowSource("1.grf")? Yes, but there are no sound output. Last edited by sanford81; 24th January 2011 at 03:22. |
|
|