View Full Version : BlankClip
FidoDido
3rd April 2003, 03:02
Although I'm not new to DVD ripping or even to this forum...this is my first ever post... Anyways...I have a strange question to something very simple... By default...BlankClip() in AviSynth should generate a 10 second 640x480 black video and 16 bit 44.1k stereo audio right?... I get everything but dual channel audio (single channel only)...even when I specify stereo=true... Am I missing something?... Any feedback would be great!..
WarpEnterprises
3rd April 2003, 14:19
it's a bug.
workaround: feed a template clip with stereo the way like:
blankclip(colorbars(100,100))
the parameter definition is not updated from AVS2.0:
{ "BlankClip", "[clip]c[length]i[width]i[height]i[pixel_type]s[fps]f[fps_denominator]i[audio_rate]i[stereo]b[sixteen_bit]b[color]i", Create_BlankClip
FidoDido
4th April 2003, 02:31
Hmm...I would have thought that BlankClip was simple enough to just about work with anything...but I managed to workaround this bug by modifying the AddAudio function this way...
function AddBlankClip(clip clip,int frames,int rate)
{
video=BlankClip(clip,length=frames)
blank=BlankClip(length=frames,audio_rate=rate)
audio=MergeChannels(blank,blank)
clip=AudioDub(video,audio)
return clip
}
I think this is what BlankClip should do...
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.