PDA

View Full Version : TCPDeliver and WMCmd.vbs


Opuz Klass
28th November 2007, 12:31
I'm opening this thread as a followup of this one: http://forum.doom9.org/showthread.php?t=131207

I think this problem deserves a dedicated discussion thread.

I've been making several tests using TCPServer/TCPSource and came to the conclusion that while it works reasonably well between VirtualDubs, it doesn't work at all with WMCmd.vbs.

I've tried everything I remembered:
- 2 machines w/ Windows XP SP2 32-bit: Avisynth 2.7.0 and 2.8.1, latest WME9 and Zambelli's WMCmd.vbs
- Windows Vista Business 64-bit: runas Administrator 32-bit cmd.exe, 32-bit cscript, latest WME9 32-bit + hotfix, latest WMCmd.vbs

It always crashes cscript with DEP (if you have it enabled) or crashes by itself (if DEP is disabled).

Anyone know how to fix this? :|

IanB
28th November 2007, 14:38
Reporting the full DEP error message complete with addresses would be a good start.

For more info run it up under a debugger and report the address of the DEP. If the address is in Avisynth.dll then the Avisynth.map file that ship since 2.5.7 can give an approximate code location of the failing code. Also a call stack dump at the time of the crash can be informative.

Opuz Klass
29th November 2007, 18:36
Thanks for your answer IanB.

Working on that! :)

sh0dan
29th November 2007, 20:16
Try changing compression to none, if you haven't already done so. I will see if I can reproduce your problem here, since I've just gotten a computer with DEP-enabled CPU.

Could I have your client and server scripts, and how you use them for reproduction.

Opuz Klass
1st December 2007, 16:31
Hi sh0dan,

It's quite easy to reproduce this problem:

1) Create ColorTest.avs as follows:

ColorBars(pixel_type="YV12")
TCPServer()

2) Create ClientColorTest.avs as follows (replace "192.168.1.2" with your IP):

TCPSource("192.168.1.2",22050,"none")

3) Create ColorTestEncoding.bat as follows (replace "D:\Program Files\Windows Media Components\Encoder\WMCmd.vbs", "R:\ClientColorTest.avs" and "R:\ColorTestEncoding.wmv" with the desired/right parameters):

cscript "D:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" -input "R:\ClientColorTest.avs" -output "R:\ColorTestEncoding.wmv" -a_codec WMAPRO -a_mode 4 -a_peakbitrate 196000 -a_setting 128_44_2_24 -v_codec WVC1 -v_mode 4 -v_keydist 6 -v_bitrate 1863000 -v_peakbitrate 8000000 -v_peakbuffer 4000 -v_performance 80 -v_bframedist 2 -v_dquantoption 2 -v_dquantstrength 4 -v_loopfilter 1 -v_overlap 1 -v_mmatch 0 -v_mslevel 2 -v_msrange 0 -v_numthreads 2

4) Run ColorTestEncoding.bat after you've opened "ColorTest.avs" with i.e. VirtualDub v1.7.6 and you'll see what happens. :)

NOTE: Forget about my WMCmd.vbs encoding parameters. I've tried simple encoding parameters (including with -videoonly and -audioonly and and I still get the problem).

Thanks for your help guys! :)