Log in

View Full Version : Two low priority bugs: 1) AddBorders and 2) ResampleAudio


jggimi
21st August 2003, 15:39
I'm one of the few who use Gknot to create SVCDs and VCDs... where Gknot is used as the .d2v -> .avs generator. There may not be a whole lot of us, but the feature has been there for some time, and I have been taking advantage of it for about a year or so. AddBorders

When selecting SVCD/VCD resizing, and if borders are added, sometimes the resizing will have odd values in it, causing the AviSynth 2.5 script to fail. It's easy to circumvent with an editor; for example, I just edit:

# RESIZING
# for NTSC-VCD
LanczosResize(352,131)
#
# BORDERS
AddBorders(0,55,0,54)

to this:

# RESIZING
# for NTSC-VCD
LanczosResize(352,132)
#
# BORDERS
AddBorders(0,54,0,54)

ResampleAudio

In AviSynth 2.5, ResampleAudio no longer adds an audio track. The circumvention I use is to replace:

# FOOL CCEnc
ResampleAudio(44100)

with:

# FOOL CCEnc
empty = BlankClip()
AudioDub(last,empty)

In AviSynth, "last" is the special variable used when you need to describe the current, unnamed clip. For more info on the replacement of ResampleAudio, see AddAudio() in the AviSynth manual. This is a modification of that function.

len0x
26th August 2003, 19:00
If you could submit this as a bug at SF that'd be great. I've been trying to look at that VCD/SVCD code for a while now, but it always manages to slip from my tasks :)

jggimi
26th August 2003, 22:36
Will do ... I'll have to recreate it so that there are appropriate _gknot.log files and registry settings that I can submit. Probably first week in September before I'll be home with sufficient time to recreate.

As I mentioned, neither of the bugs are critical, as both are circumventable.

len0x
12th September 2003, 11:43
Just to let you know, I fixed both issues - will be soon included in 0.28.5.3 patch.

jggimi
12th September 2003, 19:59
You can't! I haven't submitted these to SF as bugs yet! :cool:

Thanks so very much len0x. These weren't really critical, as you know, but I'm very grateful.

len0x
13th September 2003, 14:11
Originally posted by jggimi
You can't! I haven't submitted these to SF as bugs yet! :cool:


You will have an opportunity to do so if it still doesn't work in 0.28.5.3 :D