Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th May 2011, 05:52   #1  |  Link
BlueToast
Registered User
 
BlueToast's Avatar
 
Join Date: Jul 2009
Location: Missouri, US
Posts: 68
Audio + video crossfading

Ok, so I have about three high quality and high resolution segments from a DVD.

What I want to do is a 5 second audio and video (yes, both) crossfade between SegmentA to SegmentB, and SegmentB to SegmentC.

How should I be doing this? I have a full MeGUI setup, VirtualDub, AVIMux (GUI), ...

EDIT: And how do I upscale from 720x480 to 1280x720? I know it won't improve quality, but that's not the reason -- the reason would be to preserve bitrate on YouTube at 720p versus 480p (big difference in bitrates used on YouTube).

EDIT2: Nevermind on upscaling
Code:
Spline36Resize(1280,720) # Spline36 (Neutral)
EDIT3: Here are the scripts I have now

SegmentA (2009-9-6-13-3-28.avs)
Code:
LoadPlugin("C:\Program Files (x86)\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Users\Qwerty\Downloads\2009-9-6-13-3-28.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate(hybrid=3)
#crop
Spline36Resize(1280,720) # Spline36 (Neutral)
#denoise
SegmentB (2009-9-6-13-8-46.avs)
Code:
LoadPlugin("C:\Program Files (x86)\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Users\Qwerty\Downloads\2009-9-6-13-8-46.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate(hybrid=3)
#crop
Spline36Resize(1280,720) # Spline36 (Neutral)
#denoise
SegmentC (2009-9-6-13-11-58.avs)
Code:
LoadPlugin("C:\Program Files (x86)\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Users\Qwerty\Downloads\2009-9-6-13-11-58.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate(hybrid=3)
#crop
Spline36Resize(1280,720) # Spline36 (Neutral)
#denoise


Audio file for SegmentA is named 2009-9-6-13-3-28 T80 2_0ch 256Kbps DELAY -134ms.ac3

Audio file for SegmentB is named 2009-9-6-13-8-46 T80 2_0ch 256Kbps DELAY -157ms.ac3

Audio file for SegmentC is named 2009-9-6-13-11-58 T80 2_0ch 256Kbps DELAY -89ms.ac3

D2V file for SegmentA is named 2009-9-6-13-3-28.d2v

D2V file for SegmentB is named 2009-9-6-13-8-46.d2v

D2V file for SegmentC is named 2009-9-6-13-11-58.d2v

I will be wanting to do this as a 2-pass through x264 at 4000kbps (2x more than bitrate used on 720p YouTube videos).
__________________
Intel C2Q Q9450 Yorkfield 12MB L2-Cache @ 3.2GHz, G.Skill 2x2GB DDR2-1000 (PC2 8000) DC, Corsair 750TX, ATI VisionTek Radeon HD4850 512MB, 500GB Seagate Barracuda 7200.11 SATA-II, 200GB Maxtor IDE-150

Last edited by BlueToast; 11th May 2011 at 07:49.
BlueToast is offline   Reply With Quote
Old 11th May 2011, 08:24   #2  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
Have you tried joining the segments using Dissolve?
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding
cretindesalpes is offline   Reply With Quote
Old 11th May 2011, 16:19   #3  |  Link
BlueToast
Registered User
 
BlueToast's Avatar
 
Join Date: Jul 2009
Location: Missouri, US
Posts: 68
Quote:
Originally Posted by cretindesalpes View Post
Have you tried joining the segments using Dissolve?
But then how would I do the audio part?
__________________
Intel C2Q Q9450 Yorkfield 12MB L2-Cache @ 3.2GHz, G.Skill 2x2GB DDR2-1000 (PC2 8000) DC, Corsair 750TX, ATI VisionTek Radeon HD4850 512MB, 500GB Seagate Barracuda 7200.11 SATA-II, 200GB Maxtor IDE-150
BlueToast is offline   Reply With Quote
Old 11th May 2011, 19:56   #4  |  Link
Floatingshed
Registered User
 
Join Date: Nov 2008
Posts: 324
From the dissolve wiki... The audio streams are blended similarly.
So just use Audiodub() to combine video & audio then mix them using Dissolve.
Floatingshed is offline   Reply With Quote
Old 11th May 2011, 22:06   #5  |  Link
BlueToast
Registered User
 
BlueToast's Avatar
 
Join Date: Jul 2009
Location: Missouri, US
Posts: 68
Quote:
Originally Posted by Floatingshed View Post
From the dissolve wiki... The audio streams are blended similarly.
So just use Audiodub() to combine video & audio then mix them using Dissolve.
Ahh, ok! Will give it a try when I have time. I really appreciate your help.

EDIT: How would I go about putting
Code:
DGDecode_mpeg2source("D:\Users\Qwerty\Downloads\SegmentX.d2v", info=3)
for SegmentA+B+C into a single line of AVISource?

Would it be...
Code:
video = AVISource("SegmentA.avs") + AVISource("SegmentB.avs") + AVISource("SegmentC.avs")
or...
Code:
LoadPlugin("C:\Program Files (x86)\megui\tools\dgindex\DGDecode.dll")

video = AVISource(DGDecode_mpeg2source("D:\Users\Qwerty\Downloads\SegmentA.d2v", info=3)) + AVISource(DGDecode_mpeg2source("D:\Users\Qwerty\Downloads\SegmentB.d2v", info=3)) + AVISource(DGDecode_mpeg2source("D:\Users\Qwerty\Downloads\SegmentC.d2v", info=3))

LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate(hybrid=3)
#crop
Spline36Resize(1280,720) # Spline36 (Neutral)
#denoise
?

EDIT2: Would I also have to convert the .ac3's to .wav's (not talking about merely just renaming the extensions, but really actually converting the content format)?
__________________
Intel C2Q Q9450 Yorkfield 12MB L2-Cache @ 3.2GHz, G.Skill 2x2GB DDR2-1000 (PC2 8000) DC, Corsair 750TX, ATI VisionTek Radeon HD4850 512MB, 500GB Seagate Barracuda 7200.11 SATA-II, 200GB Maxtor IDE-150

Last edited by BlueToast; 11th May 2011 at 22:21.
BlueToast is offline   Reply With Quote
Old 11th May 2011, 23:13   #6  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Use Import() (not AviSource) to open another script as a video.
Use NicAC3Source (from NicAudio plugin) to read .ac3 files.

So your script will look (in outline) something like this:
v1 = Import("SegmentA.avs")
a1 = NicAC3Source("audio1.ac3")
v1 = v1.AudioDub(a1)

... # similar for v2 and v3

Dissolve(v1, v2, v3, 125) # eg 125 frames = 5secs@25fps

You may also need to use DelayAudio() to adjust the audio delay for each clip before joining them.
DGIndex has helpfully put the suggested delay times in the audio file names.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 12th May 2011, 00:20   #7  |  Link
BlueToast
Registered User
 
BlueToast's Avatar
 
Join Date: Jul 2009
Location: Missouri, US
Posts: 68
I get this error when trying to test it out in MPlayer (not SMPlayer because SMPlayer won't give me any error messages in this particular case):
Quote:
C:\mplayer\mplayer>mplayer.exe "D:\Users\Qwerty\Downloads\OneFitsAll.avs"
MPlayer Sherpya-SVN-r30369-4.2.5 (C) 2000-2009 MPlayer Team

Playing D:\Users\Qwerty\Downloads\OneFitsAll.avs.
Seek failed


Exiting... (End of file)
Here is what I have so far:
OneFitsAll.avs
Code:
v1 = Import("SegmentA.avs")
a1 = NicAC3Source("2009-9-6-13-3-28 T80 2_0ch 256Kbps DELAY -134ms.ac3")
DelayAudio(a1, -0.134)
v1 = v1.AudioDub(a1)

v2 = Import("SegmentB.avs")
a2 = NicAC3Source("2009-9-6-13-8-46 T80 2_0ch 256Kbps DELAY -157ms.ac3")
DelayAudio(a2, -0.157)
v2 = v2.AudioDub(a2)

v3 = Import("SegmentC.avs")
a3 = NicAC3Source("2009-9-6-13-11-58 T80 2_0ch 256Kbps DELAY -89ms.ac3")
DelayAudio(a3, -0.089)
v3 = v3.AudioDub(a3)

Dissolve(v1, v2, v3, 125) # 125 frames = 5s @ 25fps
SegmentX.avs, where X is A, B, and C (three .avs files)
Code:
LoadPlugin("C:\Program Files (x86)\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Users\Qwerty\Downloads\SegmentX.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate(hybrid=3)
#crop
Spline36Resize(1280,720) # Spline36 (Neutral)
#denoise
EDIT2: Going to make sure I have NicAudio plugin by downloading and installing it, and then seeing what happens.

EDIT3: Yeah, that fixed it. Download NicAudio from http://nicaudio.codeplex.com/release...wnloadId=78960 and extracted NicAudio.dll to C:\Program Files (x86)\megui\tools\avisynth\plugins

EDIT4: Ok, this is very good! Very good! I appreciate all your help.. I just have one more question.

SegmentA needs to have frames 4876 to 4965 deleted from the video and audio. (SegmentA is 4965 frames total.) How do I do this with Trim()?

Trying this out
Code:
v1 = Import("SegmentA.avs")
a1 = NicAC3Source("2009-9-6-13-3-28 T80 2_0ch 256Kbps DELAY -134ms.ac3")
DelayAudio(a1, -0.134)
v1 = v1.AudioDub(a1)
Trim(clip v1, 0, 4974)

v2 = Import("SegmentB.avs")
a2 = NicAC3Source("2009-9-6-13-8-46 T80 2_0ch 256Kbps DELAY -157ms.ac3")
DelayAudio(a2, -0.157)
v2 = v2.AudioDub(a2)

v3 = Import("SegmentC.avs")
a3 = NicAC3Source("2009-9-6-13-11-58 T80 2_0ch 256Kbps DELAY -89ms.ac3")
DelayAudio(a3, -0.089)
v3 = v3.AudioDub(a3)

Dissolve(v1, v2, v3, 125) # 125 frames = 5s @ 25fps
EDIT4: Didn't work, and I used the wrong value on Trim. Trying this
Code:
v1 = Import("SegmentA.avs")
a1 = NicAC3Source("2009-9-6-13-3-28 T80 2_0ch 256Kbps DELAY -134ms.ac3")
DelayAudio(a1, -0.134)
v1 = v1.AudioDub(a1)

v2 = Import("SegmentB.avs")
a2 = NicAC3Source("2009-9-6-13-8-46 T80 2_0ch 256Kbps DELAY -157ms.ac3")
DelayAudio(a2, -0.157)
v2 = v2.AudioDub(a2)

v3 = Import("SegmentC.avs")
a3 = NicAC3Source("2009-9-6-13-11-58 T80 2_0ch 256Kbps DELAY -89ms.ac3")
DelayAudio(a3, -0.089)
v3 = v3.AudioDub(a3)

Dissolve(v1, v2, v3, 125) # 125 frames = 5s @ 25fps

Trim(0, 4875)+Trim(4966, 0)
EDIT5: Yep, that worked. Now I just have to make a slight adjustment to the final value of the first Trim in that last line.

EDIT6: Ok, new problem. Trim and Dissolve don't work together very well. What can I do? It makes an instant transition from SegmentA to B.

EDIT7: Hold on, let me get my Trims correct first. Then I will ask a question. Check back later!

EDIT8: Ok..
Code:
v1 = Import("SegmentA.avs")
a1 = NicAC3Source("2009-9-6-13-3-28 T80 2_0ch 256Kbps DELAY -134ms.ac3")
DelayAudio(a1, -0.134)
v1 = v1.AudioDub(a1)

v2 = Import("SegmentB.avs")
a2 = NicAC3Source("2009-9-6-13-8-46 T80 2_0ch 256Kbps DELAY -157ms.ac3")
DelayAudio(a2, -0.157)
v2 = v2.AudioDub(a2)

v3 = Import("SegmentC.avs")
a3 = NicAC3Source("2009-9-6-13-11-58 T80 2_0ch 256Kbps DELAY -89ms.ac3")
DelayAudio(a3, -0.089)
v3 = v3.AudioDub(a3)


Dissolve(v1, v2, v3, 125) # 125 frames = 5s @ 25fps

Trim(0, 4875)+Trim(4966, 9717)+Trim(9932, 0)
# SegmentA = 4965; 0 - 4965
# SegmentB = 4907; 0 - 9872; 4966 - 9872
# SegmentC = 9568; 0 - 19440; 9873 - 19440
I want to cut out the last 90 frames of SegmentA
I want to cut out the last 155 frames of SegmentB
I want to cut out the first 60 frames of SegmentC

This is not working out. I think what it is doing is FIRST cutting out stuff for SegmentA, and then the Trims for B and C are relative to the first cut. Which means I should minus both initial and final values by 90. Then minus the initial and final value of C by 155.

EDIT9: Question: what does the audio padding parameter of Trim() do?

I have my trims set now, my EDIT8 theory was correct it seems. One problem though, and I don't know if this is because of MPlayer or what, but between SegmentB->C transition, at the end of SegmentB it quickly skips to the end of the audio where music plays. SegmentB and SegmentC are both speeches with music before and after them -- but only SegmentB has a few handfuls of frames after it that has music starting and I need to trim it to where it shouldn't get to where music plays.

Additionally, when it comes to SegmentC, it appears as though the video lags or something and [thus?] the audio and video do not sync together. My theory is that it's because of having loaded 3 different videos and 3 different audio files up to this point in the video. Any suggestions or ideas?

Thanks for all the help thus far!
__________________
Intel C2Q Q9450 Yorkfield 12MB L2-Cache @ 3.2GHz, G.Skill 2x2GB DDR2-1000 (PC2 8000) DC, Corsair 750TX, ATI VisionTek Radeon HD4850 512MB, 500GB Seagate Barracuda 7200.11 SATA-II, 200GB Maxtor IDE-150

Last edited by BlueToast; 12th May 2011 at 01:04.
BlueToast is offline   Reply With Quote
Old 12th May 2011, 16:32   #8  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by BlueToast View Post
DelayAudio(a1, -0.134)
This line has no effect, as you do not use its result. It should be
a1 = DelayAudio(a1, -0.134)
and similarly for a2 and a3.

You will find your script easier to write if you do the Trims before joining them. Then you can work with the original frame numbers and the transitions are not messed up.
v1 = v1.Trim(0, 4875) etc

This may also solve your audio problems. By default (with pad_audio=true), Trim will add silent audio if the video is longer than the audio.

You should invest some time in reading the comprehensive Avisynth documentation, as most of your questions are fairly elementary.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 12th May 2011, 16:51   #9  |  Link
BlueToast
Registered User
 
BlueToast's Avatar
 
Join Date: Jul 2009
Location: Missouri, US
Posts: 68
Thanks for the help Gavino, Floatingshed, and cretindesalpes! I would +1 you all if these forums had a rating/+1 mod.

@Gavino That fixed it. The video is perfect. There is one problem though -- the SegmentC video lags and thus the video goes out of sync from the audio. (Audio never lags or chugs.) I will try to render this to see if that's only a resource loading issue from executing an AViSynth file with MPlayer.

EDIT: I am having an interesting problem on my workstation. I'm trying to avoid encoding this on my laptop because my workstation is simply better suited for this. It has a Q9450 clocked at 3.6GHz, has a 12MB L2 Cache, and is one of the first quadcores to feature two physical dies (with two cores per die) on the same chip. At 480p it encodes at around 110-140fps first pass and 50-70fps second pass. Laptop is only doing about 15fps first pass, and I will be doing three passes. X_x

I was able to load OneFitsAll.avs and encode the three segments into one AC3 though.

Code:
[Error] Log
-[Information] Versions
--[Information] [5/12/2011 12:24:11 PM] MeGUI Version : 2008 (svn)
--[Information] [5/12/2011 12:24:11 PM] OS : Windows Seven x64 SP1 (6.1.65536.7601)
--[Information] [5/12/2011 12:24:11 PM] Latest .Net Framework installed : 4.0 (4.0.30319)
--[Information] [5/12/2011 12:24:11 PM] Avisynth Version : 2.5.8.5 (12/21/2008 9:46:54 PM)
-[Error] Log for job1 (video, OneFitsAll.avs -> )
--[Information] [5/12/2011 12:24:31 PM] Started handling job
--[Information] [5/12/2011 12:24:31 PM] Preprocessing
--[Information] [5/12/2011 12:24:31 PM] Avisynth input script
---[NoImage] v1 = Import("G:\Video\Hillsong FHL Snippet\SegmentA.avs")
---[NoImage] a1 = NicAC3Source("G:\Video\Hillsong FHL Snippet\2009-9-6-13-3-28 T80 2_0ch 256Kbps DELAY -134ms.ac3")
---[NoImage] a1 = DelayAudio(a1, -0.134)
---[NoImage] v1 = v1.AudioDub(a1)
---[NoImage] v1 = v1.Trim(0, 4875)
---[NoImage] v2 = Import("G:\Video\Hillsong FHL Snippet\SegmentB.avs")
---[NoImage] a2 = NicAC3Source("G:\Video\Hillsong FHL Snippet\2009-9-6-13-8-46 T80 2_0ch 256Kbps DELAY -157ms.ac3")
---[NoImage] a2 = DelayAudio(a2, -0.157)
---[NoImage] v2 = v2.AudioDub(a2)
---[NoImage] v2 = v2.Trim(0, 4752)
---[NoImage] v3 = Import("G:\Video\Hillsong FHL Snippet\SegmentC.avs")
---[NoImage] a3 = NicAC3Source("G:\Video\Hillsong FHL Snippet\2009-9-6-13-11-58 T80 2_0ch 256Kbps DELAY -89ms.ac3")
---[NoImage] a3 = DelayAudio(a3, -0.089)
---[NoImage] v3 = v3.AudioDub(a3)
---[NoImage] v3 = v3.Trim(61, 0)
---[NoImage] Dissolve(v1, v2, v3, 125) # 125 frames = 5s @ 25fps
---[NoImage] # Bad method of trim usage
---[NoImage] #Trim(0, 4875)+Trim(4876, 9627)+Trim(9687, 0)
---[NoImage] # SegmentA = 4965; 0 - 4965
---[NoImage] # Last 90 frames of SegmentA need to be cut out
---[NoImage] # SegmentB = 4907; 0 - 9872; 4966 - 9872
---[NoImage] # Last 155 frames of SegmentB need to be cut out
---[NoImage] # SegmentC = 9568; 0 - 19440; 9873 - 19440
---[NoImage] # First 60 frames of SegmentC need to be cut out
--[Information] [5/12/2011 12:24:31 PM] Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --pass 1 --bitrate 4000 --stats "G:\Video\Hillsong FHL Snippet\OneFitsAll.stats" --open-gop normal --sar 1:1 --output NUL "G:\Video\Hillsong FHL Snippet\OneFitsAll.avs" 
--[Information] [5/12/2011 12:24:31 PM] Encoding started
--[Error] [5/12/2011 12:24:31 PM] An error occurred: ffms [error]: could not create index
--[Error] [5/12/2011 12:24:31 PM] An error occurred: lavf [error]: could not open input file
--[Error] [5/12/2011 12:24:31 PM] An error occurred: raw [error]: raw input requires a resolution.
--[Error] [5/12/2011 12:24:31 PM] An error occurred: x264 [error]: could not open input file `normal' via any method!
--[Error] [5/12/2011 12:24:31 PM] Process exits with error code: -1
--[Information] [5/12/2011 12:24:31 PM] Standard output stream
--[Information] [5/12/2011 12:24:31 PM] Standard error stream:                                             
--[Information] [5/12/2011 12:24:31 PM] Job completed
I tried recreating the D2Vs and SegmentX scripts from scratch, and this doesn't seem to make a difference.

Before doing anything, I had uninstalled everything related to video and audio -- SMPlayer, ffdshow tryouts, MeGUI, AViSynth, etcetera. I then went and downloaded the latest of everything, and finally installed everything the same way I did on my laptop. I even installed everything to the same locations (C:\Program Files (x86)\megui\ = root; I would install AViSynth to \tools\avisynth\, etcetera).

When I open the OneFitsAll.avs from the File menu in MeGUI, it loads it fine without any error and brings up the video preview.

I don't know what to do.

EDIT: Also, I did make sure the first time around (before recreating SegmentX.avs files) to correct the paths to files like the D2Vs.

Another thing worth mentioning is that I had to modify SegmentX.avs in OneFitsAll.avs to the absolute paths to those SegmentX.avs.

Before (works on my lappy, doesn't work on my workstation)
Code:
v1 = Import("SegmentA.avs")
a1 = NicAC3Source("2009-9-6-13-3-28 T80 2_0ch 256Kbps DELAY -134ms.ac3")
a1 = DelayAudio(a1, -0.134)
v1 = v1.AudioDub(a1)
v1 = v1.Trim(0, 4875)

v2 = Import("SegmentB.avs")
a2 = NicAC3Source("2009-9-6-13-8-46 T80 2_0ch 256Kbps DELAY -157ms.ac3")
a2 = DelayAudio(a2, -0.157)
v2 = v2.AudioDub(a2)
v2 = v2.Trim(0, 4752)

v3 = Import("SegmentC.avs")
a3 = NicAC3Source("2009-9-6-13-11-58 T80 2_0ch 256Kbps DELAY -89ms.ac3")
a3 = DelayAudio(a3, -0.089)
v3 = v3.AudioDub(a3)
v3 = v3.Trim(61, 0)


Dissolve(v1, v2, v3, 125) # 125 frames = 5s @ 25fps

# Bad method of trim usage
#Trim(0, 4875)+Trim(4876, 9627)+Trim(9687, 0)

# SegmentA = 4965; 0 - 4965
# Last 90 frames of SegmentA need to be cut out

# SegmentB = 4907; 0 - 9872; 4966 - 9872
# Last 155 frames of SegmentB need to be cut out

# SegmentC = 9568; 0 - 19440; 9873 - 19440
# First 60 frames of SegmentC need to be cut out
After (works for my workstation)
Code:
v1 = Import("G:\Video\Hillsong FHL Snippet\SegmentA.avs")
a1 = NicAC3Source("G:\Video\Hillsong FHL Snippet\2009-9-6-13-3-28 T80 2_0ch 256Kbps DELAY -134ms.ac3")
a1 = DelayAudio(a1, -0.134)
v1 = v1.AudioDub(a1)
v1 = v1.Trim(0, 4875)

v2 = Import("G:\Video\Hillsong FHL Snippet\SegmentB.avs")
a2 = NicAC3Source("G:\Video\Hillsong FHL Snippet\2009-9-6-13-8-46 T80 2_0ch 256Kbps DELAY -157ms.ac3")
a2 = DelayAudio(a2, -0.157)
v2 = v2.AudioDub(a2)
v2 = v2.Trim(0, 4752)

v3 = Import("G:\Video\Hillsong FHL Snippet\SegmentC.avs")
a3 = NicAC3Source("G:\Video\Hillsong FHL Snippet\2009-9-6-13-11-58 T80 2_0ch 256Kbps DELAY -89ms.ac3")
a3 = DelayAudio(a3, -0.089)
v3 = v3.AudioDub(a3)
v3 = v3.Trim(61, 0)


Dissolve(v1, v2, v3, 125) # 125 frames = 5s @ 25fps

# Bad method of trim usage
#Trim(0, 4875)+Trim(4876, 9627)+Trim(9687, 0)

# SegmentA = 4965; 0 - 4965
# Last 90 frames of SegmentA need to be cut out

# SegmentB = 4907; 0 - 9872; 4966 - 9872
# Last 155 frames of SegmentB need to be cut out

# SegmentC = 9568; 0 - 19440; 9873 - 19440
# First 60 frames of SegmentC need to be cut out
I am also making sure I run MeGUI as Administrator (right click -> Run as Administrator).
__________________
Intel C2Q Q9450 Yorkfield 12MB L2-Cache @ 3.2GHz, G.Skill 2x2GB DDR2-1000 (PC2 8000) DC, Corsair 750TX, ATI VisionTek Radeon HD4850 512MB, 500GB Seagate Barracuda 7200.11 SATA-II, 200GB Maxtor IDE-150

Last edited by BlueToast; 12th May 2011 at 18:35.
BlueToast is offline   Reply With Quote
Old 13th May 2011, 03:16   #10  |  Link
BlueToast
Registered User
 
BlueToast's Avatar
 
Join Date: Jul 2009
Location: Missouri, US
Posts: 68
Ok, what I did was delete /tools/x264 and /update_cache/x264*, and have MeGUI redownload and reinstall it via Update. I also figured out why the original D2Vs did not work: you can open them in Notepad and there is a line with an absolute path that needs to be updated to reflect new locations as well. Additionally, I added a FadeOut() to SegmentC and trimmed out a couple hundred frames at the end because it was needed. Encoding! Yay!

OneFitsAll.avs
Code:
v1 = Import("G:\Users\Qwerty\Downloads\SegmentA.avs")
a1 = NicAC3Source("G:\Users\Qwerty\Downloads\2009-9-6-13-3-28 T80 2_0ch 256Kbps DELAY -134ms.ac3")
a1 = DelayAudio(a1, -0.134)
v1 = v1.AudioDub(a1)
v1 = v1.Trim(0, 4875)

v2 = Import("G:\Users\Qwerty\Downloads\SegmentB.avs")
a2 = NicAC3Source("G:\Users\Qwerty\Downloads\2009-9-6-13-8-46 T80 2_0ch 256Kbps DELAY -157ms.ac3")
a2 = DelayAudio(a2, -0.157)
v2 = v2.AudioDub(a2)
v2 = v2.Trim(0, 4752)

v3 = Import("G:\Users\Qwerty\Downloads\SegmentC.avs")
a3 = NicAC3Source("G:\Users\Qwerty\Downloads\2009-9-6-13-11-58 T80 2_0ch 256Kbps DELAY -89ms.ac3")
a3 = DelayAudio(a3, -0.089)
v3 = v3.AudioDub(a3)
v3 = v3.Trim(61, 9525)
v3 = v3.FadeOut(125)

Dissolve(v1, v2, v3, 125) # 125 frames = 5s @ 25fps

# Bad method of trim usage
#Trim(0, 4875)+Trim(4876, 9627)+Trim(9687, 0)

# SegmentA = 4965; 0 - 4965
# Last 90 frames of SegmentA need to be cut out

# SegmentB = 4907; 0 - 9872; 4966 - 9872
# Last 155 frames of SegmentB need to be cut out

# SegmentC = 9568; 0 - 19440; 9873 - 19440
# First 60 frames of SegmentC need to be cut out
Workstation @ 3.6GHz - http://ark.intel.com/Product.aspx?id=33923 (Core 2 Quad, 12MB L2 Cache)
Laptop @ ~2.2GHz - http://ark.intel.com/Product.aspx?id=29760 (Core 2 Duo, 4MB L2 Cache)

My workstation is encoding at 59-62fps (first pass). My laptop was only doing about 15fps (first pass). Video is 1280x720 @ 4000kbps x264 Unrestricted, automated 3-pass, high quality profile.

Second pass -- workstation at 34-41fps (started at 34 and worked its way upward), lappy at 9-12fps.

Third pass -- workstation at 34-42fps, lappy at 7-13fps.
__________________
Intel C2Q Q9450 Yorkfield 12MB L2-Cache @ 3.2GHz, G.Skill 2x2GB DDR2-1000 (PC2 8000) DC, Corsair 750TX, ATI VisionTek Radeon HD4850 512MB, 500GB Seagate Barracuda 7200.11 SATA-II, 200GB Maxtor IDE-150

Last edited by BlueToast; 13th May 2011 at 03:28.
BlueToast is offline   Reply With Quote
Old 13th May 2011, 05:07   #11  |  Link
BlueToast
Registered User
 
BlueToast's Avatar
 
Join Date: Jul 2009
Location: Missouri, US
Posts: 68
Thank you very much guys! I gave credits to the posters who participated in this thread at http://www.youtube.com/watch?v=NiVpqPpwIxI
__________________
Intel C2Q Q9450 Yorkfield 12MB L2-Cache @ 3.2GHz, G.Skill 2x2GB DDR2-1000 (PC2 8000) DC, Corsair 750TX, ATI VisionTek Radeon HD4850 512MB, 500GB Seagate Barracuda 7200.11 SATA-II, 200GB Maxtor IDE-150
BlueToast is offline   Reply With Quote
Old 13th May 2011, 06:04   #12  |  Link
caaraa
Registered User
 
Join Date: Mar 2011
Posts: 7
The audio streams are blended similarly.
caaraa is offline   Reply With Quote
Old 15th May 2011, 06:32   #13  |  Link
BlueToast
Registered User
 
BlueToast's Avatar
 
Join Date: Jul 2009
Location: Missouri, US
Posts: 68
What is the best way/method/program to use to create subtitles? :? Thanks! Would appreciate it.

(Already wrote the transcripts manually, just need to shuffle them into subtitles.)
__________________
Intel C2Q Q9450 Yorkfield 12MB L2-Cache @ 3.2GHz, G.Skill 2x2GB DDR2-1000 (PC2 8000) DC, Corsair 750TX, ATI VisionTek Radeon HD4850 512MB, 500GB Seagate Barracuda 7200.11 SATA-II, 200GB Maxtor IDE-150
BlueToast is offline   Reply With Quote
Old 15th May 2011, 23:59   #14  |  Link
kenpachi
Registered User
 
kenpachi's Avatar
 
Join Date: Mar 2010
Posts: 48
Best soft to create subtitles? Subtitle Workshop 2.51 to create .srt subs. Then Aegisub to convert them to .ass subs.
kenpachi is offline   Reply With Quote
Old 16th May 2011, 03:44   #15  |  Link
BlueToast
Registered User
 
BlueToast's Avatar
 
Join Date: Jul 2009
Location: Missouri, US
Posts: 68
Quote:
Originally Posted by kenpachi View Post
Best soft to create subtitles? Subtitle Workshop 2.51 to create .srt subs. Then Aegisub to convert them to .ass subs.
Thanks! I appreciate it!
__________________
Intel C2Q Q9450 Yorkfield 12MB L2-Cache @ 3.2GHz, G.Skill 2x2GB DDR2-1000 (PC2 8000) DC, Corsair 750TX, ATI VisionTek Radeon HD4850 512MB, 500GB Seagate Barracuda 7200.11 SATA-II, 200GB Maxtor IDE-150
BlueToast is offline   Reply With Quote
Old 17th May 2011, 04:28   #16  |  Link
Mr VacBob
Registered User
 
Join Date: Feb 2005
Posts: 140
Aegisub is fine to create subtitles on its own; you don't need to start out using more than one program.
Mr VacBob is offline   Reply With Quote
Reply

Tags
audio, crossfade, segments, video

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 17:28.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.