PDA

View Full Version : AVS files in Windows Media Batch Encoder


yevlar
4th March 2006, 14:12
I need to use AVS scripts for multiple-bitrate WM encodes via .BAT files. We have bats set up that run great with AVIs, and I have modified the .vbs script to allow use of AVS scripts (via the method posted on the AVISynth forums in 2003, which says to remove every line from "Compute File Duration" to, but not including, "intSleepDuration = 2000.") However, at the end of the AVS file, the script stalls out and will not move onto the next bitrate. Even running a single bitrate via the command-line encodes the file completely, but stalls out at the end of the encode. We've also tried Virtual AVIs via MakeAVIs and the VFAPI converter with the exact same results. The AVS file encodes perfectly in the GUI encoder, but using the corresponding .prx via the command line causes the same problems again.

Any ideas as to what might be wrong?

Pookie
5th March 2006, 06:17
Here's a crude workaround:

http://rapidshare.de/files/14631203/rp.zip.html

RunProcess (or RP for short) allows you to run a command or process for X number of seconds
(or minutes or hours), and will automatically terminate it if it has gone over the time limit you specify.