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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th September 2006, 10:17   #1  |  Link
ApPojken
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...
ApPojken is offline   Reply With Quote
Old 7th September 2006, 10:40   #2  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
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?
foxyshadis is offline   Reply With Quote
Old 7th September 2006, 11:11   #3  |  Link
ApPojken
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.
ApPojken is offline   Reply With Quote
Old 7th September 2006, 11:36   #4  |  Link
ApPojken
Registered User
 
Join Date: Jan 2006
Location: United Kingdom
Posts: 57
I have no audio hard ware in the machine. Does Avisynth not accept this? I have tried the killaudio command too....
ApPojken is offline   Reply With Quote
Old 8th September 2006, 02:20   #5  |  Link
IanB
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.
IanB is offline   Reply With Quote
Old 8th September 2006, 03:49   #6  |  Link
Richard Berg
developer wannabe
 
Richard Berg's Avatar
 
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 1,211
Or you could demux the video.
Richard Berg is offline   Reply With Quote
Old 8th September 2006, 13:00   #7  |  Link
ApPojken
Registered User
 
Join Date: Jan 2006
Location: United Kingdom
Posts: 57
Quote:
Originally Posted by IanB
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.
I tried the alternative 2. It did not work since I am using Remote Desktop. Windows is overriding the USB audio drivers to RDP audio which is not compatible with anything. The first alternative sounds interesting though. I guess I just have to build a graph parser in order to put it into an automated flow. Was not aware that you could open .GRF files directly in AVS. However I do get a error message when I try it. It says:
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.
ApPojken is offline   Reply With Quote
Old 8th September 2006, 14:40   #8  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
If they work in virtualdubmod, shouldn't we be finding out why avisource won't work? What codec does virtualdubmod say the file is using (file menu->file information)?
squid_80 is offline   Reply With Quote
Old 8th September 2006, 14:48   #9  |  Link
ApPojken
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.
ApPojken is offline   Reply With Quote
Old 8th September 2006, 20:26   #10  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
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.
foxyshadis is offline   Reply With Quote
Old 22nd January 2011, 16:17   #11  |  Link
sanford81
Sanford
 
Join Date: Aug 2009
Location: ShangHai
Posts: 2
Has this problem been resolved? Now I have the same problem. Can someone help me? Thanks!
sanford81 is offline   Reply With Quote
Old 23rd January 2011, 00:39   #12  |  Link
VonOben
Registered User
 
Join Date: Sep 2008
Posts: 40
Quote:
Originally Posted by ApPojken View Post
Windows is overriding the USB audio drivers to RDP audio which is not compatible with anything.
Have a look at this old thing I wrote years ago: http://mordvap.net/filer/How.to.let....erver.2003.txt

Don't know if it will solve your problem, but perhaps. (If you can be logged on to the console via RDP.)
VonOben is offline   Reply With Quote
Old 23rd January 2011, 02:43   #13  |  Link
IanB
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");
      }
I seem to remember that I needed audio=false on the D..S..S.. call. I don't have any audio-less servers to test against any more.
IanB is offline   Reply With Quote
Old 23rd January 2011, 13:35   #14  |  Link
sanford81
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.
sanford81 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.