PDA

View Full Version : Newbie Scripter needs Help


Sat32
20th May 2005, 03:43
I've been trying to create a script
to frame serve to Nero Recode. I am very new at this scripting
thing. I want to make a script that will be pretty much universal for
any AVI file.
I use Gspot to export and then rename the *.txt to AVS using RenameIT.

The problem I'm having is adding filters is messing up the A/V sync.
and with normalize there is no audio here is the script I am trying now.

SetMemoryMax(64)
LoadPlugin="Msmooth.dll"
VideoClip = avisource("\Path\.avi", Audio=False)
AudioClip = Directshowsource("\Path\.avi", FPS=23.976, Video=False)
VideoClip = ConvertToYV12(VideoClip)
VideoClip = Msmooth(VideoClip, threshold=55, Strength=5)
AudioClip = Normalize(AudioClip, 0.98)
Return audiodub(Videoclip, AudioClip)

This script works fine

SetMemoryMax(64)
LoadPlugin="Msmooth.dll"
VideoClip = avisource("\Path\.avi", Audio=False)
AudioClip = Directshowsource("\Path\.avi", FPS=23.976, Video=False)
VideoClip = ConvertToYV12(VideoClip)
Return audiodub(Videoclip, AudioClip)

What am I doing wrong????

Wilbert
20th May 2005, 10:26
Please you an appropriate title.

Are you saying that applying Normalize causes desync (in this case)?

Try

SetMemoryMax(64)
LoadPlugin="Msmooth.dll"
VideoClip = avisource("\Path\.avi", Audio=False)
AudioClip = Directshowsource("\Path\.avi", FPS=23.976, Video=False)
VideoClip = ConvertToYV12(VideoClip)
audiodub(Videoclip, AudioClip).Normalize(0.98)

Is there any reason why you don't load the audio with avisource? Ie

SetMemoryMax(64)
LoadPlugin="Msmooth.dll"
avisource("\Path\.avi")
ConvertToYV12()
Normalize(0.98)

Btw, what kind of audio is it?

Sat32
20th May 2005, 13:23
Is all kinds I have some where around 300 files I want to encode to Nero AVC. Some are AAC others Mp3, Using Avisource gave me no audio on the AAC files and using Directshowsource only, I had Sync issue's with a few files. This Script here works perfectly I can through anything at it and will play With Nero ShowTime Fine "the Script".

SetMemoryMax(64)
VideoClip = avisource("\Path\.avi", Audio=False)
AudioClip = Directshowsource("\Path\.avi", FPS=23.976, Video=False)
VideoClip = ConvertToYV12(VideoClip)
Return audiodub(VideoClip, AudioClip)

My Problem is I want to get the best Picture/Compression ratio
I can. So I have been trying some filters Vaguedenoiser, Peachsmoother
for Example, When I add these into the Script I lose A/V Sync and sometimes the video becomes jerky.

Example:
SetMemoryMax(64)
LoadPlugin="Msmooth.dll"
VideoClip = avisource("\Path\.avi", Audio=False)
AudioClip = Directshowsource("\Path\.avi", FPS=23.976, Video=False)
VideoClip = ConvertToYV12(VideoClip)
VideoClip = Msmooth(VideoClip, threshold=55, Strength=5)
Return audiodub(VideoClip, AudioClip)

My other issue, When I add Normalize
to the script I get no audio at all

Example:
SetMemoryMax(64)
LoadPlugin="Msmooth.dll"
VideoClip = avisource("\Path\.avi", Audio=False)
AudioClip = Directshowsource("\Path\.avi", FPS=23.976, Video=False)
VideoClip = ConvertToYV12(VideoClip)
AudioClip = Normalize(AudioClip, 0.98)
VideoClip = Msmooth(VideoClip, threshold=55, Strength=5)
Return audiodub(VideoClip, AudioClip)

I figured I was just making some stupid little mistake.
And if anyone knows a good site with a Avsynth tutorial
I would appreciat it.

Thanks