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 > General > Subtitles

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th June 2008, 17:20   #1  |  Link
Dark Morford
Registered User
 
Join Date: May 2008
Posts: 15
VSFilter hanging AVISynth?

I'm doing some video encoding using AviSynth 2.57 and VSFilter 2.37. My script looks something like this:
Code:
LoadPlugin("F:\Plugins\VSFilter.dll")
AVISource("source_video.avi")
LanczosResize(320, 240)
TextSub("english.srt")
UnDot()
For the most part, it works fine; I can load up the script in Media Player Classic, and it'll play the video and display the subs without any trouble—albiet rarely dipping below 50% CPU usage, according to Windows' Task Manager. The problem shows up when I'm finished previewing the video. After I close MPC, Task Manager still shows mplayerc.exe hogging a full 50% of my CPU, and I have to kill the process from there. This only happens with AVS scripts invoking the VSFilter plugin; if I preview a script consisting of simply Version(), for example, the media player exits cleanly.

And it's not just Media Player Classic. VirtualDubMod hangs in the exact same way on exit, as do Windows Media Player 10 and MeGUI (more specifically, the command-line encoders it calls). That last one is a particular thorn in my side, since MeGUI won't start the second pass of a 2-pass encode until the first one is completed successfully, and killing off x264 manually—because it's hanging—throws an error condition.

Is there a different version of either AVISynth or VSFilter that addresses this issue? A different subtitle-rendering plugin I could try? Or, maybe, some way to work around MeGUI's exit code check?

UPDATE: It appears that merely loading the VSFilter plugin isn't enough to hang AVISynth; the script actually has to call the TextSub() or VOBSub() functions before it happens.

Last edited by Dark Morford; 29th June 2008 at 17:29.
Dark Morford is offline   Reply With Quote
Old 29th June 2008, 20:33   #2  |  Link
laserfan
Aging Video Hobbyist
 
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
Since v2.37 is from 2005 (old) you might want to try the latest from here.

Worth a try anyway. Is now called DirectVobSub...at least on the project page/zip file.
laserfan is offline   Reply With Quote
Old 29th June 2008, 23:14   #3  |  Link
Dark Morford
Registered User
 
Join Date: May 2008
Posts: 15
That fixed it, thanks. I didn't realize he had started a second SourceForge project page, so I thought 2.37 was the most recent. (The 2005 date should have given me pause.)
Dark Morford is offline   Reply With Quote
Old 30th June 2008, 03:17   #4  |  Link
laserfan
Aging Video Hobbyist
 
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
Quote:
Originally Posted by Dark Morford View Post
I didn't realize he had started a second SourceForge project page, so I thought 2.37 was the most recent.
No problem, I spent some long minutes (hours?) several weeks ago trying to figure-out vsfilter and my goodness what a mess. At least, untangling the mystery was nontrivial at best.

Glad the new version works for you...!
laserfan is offline   Reply With Quote
Reply

Tags
avisynth, hung_process, vsfilter

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 17:49.


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