Log in

View Full Version : [Fixed] clip with audio only ?


MisterTiny
9th June 2005, 08:56
Hello ... ;)

I've wrote a small filter, this filter compute audio, so I have a ***::GetAudio(...).
But my filter also display some data on frame if the user activate a "verbose" mode ... so I also have ***::GetFrame(...).

And when in script, my filter don't accept as Arg[0] a clip whith only audio ( typicaly, just a DirectShowInput( "my_file.ac3" ) ...

So, a lot of questions : ;)

> Is it because my class have GetFrame() ? ...
> If I don't put GetFrame(), will my filter accept audio only clip ? ...
> Is a audio only stream is a valid clip ?
> Is it possible to have GetFrame() and a filter that accept audio only stream ?

Thanks for answers ... :thanks:

Mr Tiny.

PS: please, where could I found some more informations about clip, class, frames, method & properties, filter parameters like "c[var1]f+" ...

stickboy
9th June 2005, 10:30
Hello ... ;)
And when in script, my filter don't accept as Arg[0] a clip whith only audio ( typicaly, just a DirectShowInput( "my_file.ac3" ) ...Exactly what happens? Does it work with a clip that has both video and audio?Is it because my class have GetFrame() ? ...All filters must somehow provide GetFrame and GetAudio. Many filters often don't provide explicit implementations for them because they use the ones provided by the base GenericVideoFilter class.If I don't put GetFrame(), will my filter accept audio only clip ? ...I don't know offhand. Why don't you try it and see?Is a audio only stream is a valid clip ?It should be.
PS: please, where could I found some more informations about clip, class, frames, method & properties, filter parameters like "c[var1]f+" ...http://www.avisynth.org/FilterSDK, which, alas, is woefully hard to find from the main AviSynth page. <grumble>

MisterTiny
9th June 2005, 11:20
Exactly what happens? Does it work with a clip that has both video and audio?
Yes, it work if I add an AudioDub( ) with Blank( ) for exemple, but send error when only audio ( error is about wrong parameter to filter, don't remember exactly ... I will write it next time ... ;) ) ... :confused:

is woefully hard to find from the main AviSynth page. <grumble>
I've already read all that doc ... nothing more ? :p

stickboy
9th June 2005, 18:01
I thought Ben's original docs were complete enough... what more do you want to know?

vcmohan
10th June 2005, 03:46
PS: please, where could I found some more informations about clip, class, frames, method & properties, filter parameters like "c[var1]f+" ...

for arrays like f+ you can not name them. Use of [var1]f+ is wrong. you have to use "cf+"

MisterTiny
10th June 2005, 09:39
Thanks all for help, my filter will soon work !

:D

Audio only clip problem solved ...

See U soon. :)

>> Mr Tiny <<