Log in

View Full Version : MeGUI Audio Cut Problem


dud
6th April 2010, 05:36
I'm having a problem with the audio not in sync encoding a WMV9 file.

AVS:

DirectShowSource("F:\5\3-2.wmv", fps=29.970, audio=true, convertfps=true)
#deinterlace
#crop
#resize
LoadPlugin("E:\New Folder\MeGui\tools\avisynth_plugin\UnDot.dll")
Undot() # Minimal Noise


__film = last
__t0 = __film.trim(80, 16344)
__t0


Cuts:

<?xml version="1.0"?>
<Cuts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Framerate>29.97000002997</Framerate>
<Style>NO_TRANSITION</Style>
<AllCuts>
<CutSection>
<startFrame>80</startFrame>
<endFrame>16344</endFrame>
</CutSection>
</AllCuts>
</Cuts>

Log:

[Information] Log for job1 (audio, 3-2.avs -> 3-2.m4a)
-[Information] [4/5/2010 9:12:43 PM] Started handling job
-[Information] [4/5/2010 9:12:43 PM] Preprocessing
-[NoImage] Avisynth script
--[NoImage] Import("F:\5\3-2.avs")
--[NoImage] __film = last
--[NoImage] __just_audio = __film
--[NoImage] __blank = BlankClip(length=16344, fps=29.97)
--[NoImage] __film = AudioDub(__blank, __film)
--[NoImage] __t0 = __film.trim(80, 16344)
--[NoImage] __t0
--[NoImage] AudioDubEx(__just_audio, last)
--[NoImage] 6<=Audiochannels(last)?x_stereod3b9e00c92ea4c269df46ac8b4aeb37f(ConvertAudioToFloat(last)):last
--[NoImage] Normalize()
--[NoImage] return last
--[NoImage] function x_stereod3b9e00c92ea4c269df46ac8b4aeb37f(clip a)
--[NoImage] {
--[NoImage] fl = GetChannel(a, 1)
--[NoImage] fr = GetChannel(a, 2)
--[NoImage] c = GetChannel(a, 3)
--[NoImage] lfe = GetChannel(a, 4)
--[NoImage] sl = GetChannel(a, 5)
--[NoImage] sr = GetChannel(a, 6)
--[NoImage] l_sl = MixAudio(fl, sl, 0.2929, 0.2929)
--[NoImage] c_lfe = MixAudio(lfe, c, 0.2071, 0.2071)
--[NoImage] r_sr = MixAudio(fr, sr, 0.2929, 0.2929)
--[NoImage] l = MixAudio(l_sl, c_lfe, 1.0, 1.0)
--[NoImage] r = MixAudio(r_sr, c_lfe, 1.0, 1.0)
--[NoImage] return MergeChannels(l, r)
--[NoImage] }
-[NoImage] Commandline used: -ignorelength -he -br 32000 -if - -of "{0}"
-[Information] [4/5/2010 9:12:43 PM] Encoding started
-[Information] [4/5/2010 9:12:43 PM] Encode thread started
-[Information] [4/5/2010 9:12:43 PM] Avisynth script environment opened
-[Information] [4/5/2010 9:12:44 PM] Script loaded
-[Information] Output Decoder
--[NoImage] Channels: 2
--[NoImage] Bits per sample: 16
--[NoImage] Sample rate: 44100
-[NoImage] Commandline: E:\New Folder\MeGui\tools\neroaac\neroAacEnc.exe -ignorelength -he -br 32000 -if - -of "F:\5\3-2.m4a"
-[Information] [4/5/2010 9:12:44 PM] Encoder process started
-[NoImage] Output from encoder via stderr
--[NoImage] *************************************************************
--[NoImage] * *
--[NoImage] * Nero AAC Encoder *
--[NoImage] * Copyright 2008 Nero AG *
--[NoImage] * All Rights Reserved Worldwide *
--[NoImage] * *
--[NoImage] * Package build date: Sep 17 2008 *
--[NoImage] * Package version: 1.3.3.0 *
--[NoImage] * *
--[NoImage] * See -help for a complete list of available parameters. *
--[NoImage] * *
--[NoImage] *************************************************************
-[Information] [4/5/2010 9:13:01 PM] Postprocessing
--[Information] Deleting intermediate files
-[Information] [4/5/2010 9:13:01 PM] Job completed


Any idea what's wrong?

tebasuna51
6th April 2010, 08:48
If the "F:\5\3-2.avs" is the file listed like AVS you make the Trim(80, 16344) two times.

Use an avs without the Trim() or don't use the 'Cuts' option when you encode the audio.

dud
6th April 2010, 11:11
If the "F:\5\3-2.avs" is the file listed like AVS you make the Trim(80, 16344) two times.

Use an avs without the Trim() or don't use the 'Cuts' option when you encode the audio.

Not using cuts didn't work but removing Trim() from the avs worked. :thanks: Now to remux some files.