PDA

View Full Version : Audio-less scripts are unseekable


Cyberia
28th September 2004, 19:13
I have found that if you create an AviSynth script without audio (from any source) then that script seems to have seeking disabled when open in WMP.

I can reproduce this very easily. Create an avi file with no audio stream. Open the avi directly in the WMP. That seeks fine.

Now create a script that opens the file using AVISOURCE or DSS. MPEG2Source always creates audio-less output, and it always produces unseekable output in WMP. You can also script a source that has audio and then use .KillAudio to render the file unseekable.

Now open the script in WMP. It doesn't seek. (Tested WMP v7, 8, 9, 10)

Original (audio-less) AVI - Seeks
AviSynth (audio-less) AVI - Does not seek

Why would the original file be ok if opened directly, but not through AviSynth?

Both files appear to be seekable in MPC, but not in WMP. But MPC doesn't come in an OCX flavor, so I can't use it programatically.

stickboy
29th September 2004, 09:17
BlankClip(audio_rate=0).ShowFrameNumber()works for me with WMP6.4.

I also tried:
AVISource("someFile.avi", audio=false)andDirectShowSource("someFile.avi", audio=false)I tried KillAudio() too and still can seek fine.

Are you sure it happens with any AVI file? Does it happen to you with WMP6.4 too? (Microsoft still keeps WMP6.4 around, right? or is that only for systems that start off with 6.4 and upgrade?)

Cyberia
30th September 2004, 03:10
Sigh. Never fails does it? When you ask for help things work just to make you look bad. I just upgraded to WMP10 and it DOES work. I am positive WMP9 had this problem.

My main concern is getting the OCX to work. I have a tiny test app that anyone can try out here (http://home.insightbb.com/~cyberia-1/WLVTest/WLVTest.zip). The problem is CLEARLY demonstrable with the test program.

Pick any AVI with no sound, and load it directly in my app. Works fine no matter what. Now load the same video via AviSynth....

You will see that disabling the WindowlessVideo option allows the AviSynth scripts to be seekable. But regardless of that setting the video is seekable if loaded directly. That puts the ball squarely in AviSynth's court. (Doesn't it?)

AVI's are the simplest to strip out the audio, thats why I use them. However, the problem can be demonstrated through DSS and MPEG2Source.

BlankClip is not seekable in this test.