Quantcast Avisynth: Multiple AVI Sources? - digitalFAQ.com Forums [Archives]
  #1  
01-16-2003, 07:23 PM
urban tec urban tec is offline
Free Member
 
Join Date: Nov 2002
Location: West Australia
Posts: 272
Thanks: 0
Thanked 0 Times in 0 Posts
Recently I saw an avs script posted where multiple avi sources had been specified. Now I cant find the post for the life of me, could somebody give an example of a script where you load multiple avi sources.
The reason being I have several avis that make up a movie but have been encoded at different resolutions so cant be joined, eg 352 x 240, 360 x 240 etc only a couple of pixels diffrence in each.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
01-16-2003, 07:29 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by urban tec
I have several avis that make up a movie but have been encoded at different resolutions so cant be joined, eg 352 x 240, 360 x 240 etc only a couple of pixels diffrence in each.
Code:
clip1 = AviSource("1st.avi") # it's 352x240
clip2 = AviSource("2nd.avi") # it's 360x240

clip2 = clip2.Crop(4, 0, 352, 240) # clip2 now 352x240

clip1 + clip2 # concatenate
You need to crop/resize each clip so that you end up with the same dimensions for each, otherwise Avisynth will complain when you try to join them together.
Reply With Quote
  #3  
01-16-2003, 07:30 PM
urban tec urban tec is offline
Free Member
 
Join Date: Nov 2002
Location: West Australia
Posts: 272
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Sansgrip I figured I would need to resize each, I will give it a try.
Reply With Quote
  #4  
01-16-2003, 09:48 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
@Urban tec,

Urban tec wrote:
Quote:
Recently I saw an avs script posted where multiple avi sources had been specified.

LoadPlugin("E:\DVD Backup\2 - DVD2SVCD\MPEG2Dec\MPEG2DEC2.dll")
#
# ------ avi File Number 1 ------
video=avisource("D:\Temp\movie01.avi")
audio=WAVSource("D:\Temp\audio01.wav")
#
# ------ Remove A/V Frames in File 1 ------
part1=trim(AudioDub(video,audio),0,12620)
part2=trim(AudioDub(video,audio),15575,21844)
part3=trim(AudioDub(video,audio),30009,62366)
part4=trim(AudioDub(video,audio),63509,0)
clip1=part1+part2+part3+part4
#
# ------ avi File Number 2 ------
video2=avisource("D:\Temp\movie02.avi")
audio2=WAVSource("D:\Temp\audio02.wav")
clip2=AudioDub(video2,audio2)
#
# ------ avi File Number 3 ------
video3=avisource("D:\Temp\movie03.avi")
audio3=WAVSource("D:\Temp\audio03.wav")
clip3=AudioDub(video3,audio3)
#
# ------ avi File Number 4 ------
video4=avisource("D:\Temp\movie04.avi")
audio4=WAVSource("D:\Temp\audio04.wav")
clip4=AudioDub(video4,audio4)
#
# ------ Join All avi Files ------
unalignedsplice(clip1,clip2,clip3,clip4)
#
# ------ Resize ------
LegalClip()
Grip(704,480,overscan=1)
GripSize()
TemporalSmoother(2,2)
GripBorders()
LegalClip()


The wav file are used to keep it in sync with video when using Trim
to remove frames. I use this with Tmpgenc to encode audio and video.
I hope this will help.

-black prince
Reply With Quote
  #5  
01-16-2003, 10:41 PM
urban tec urban tec is offline
Free Member
 
Join Date: Nov 2002
Location: West Australia
Posts: 272
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Black Prince

I think that was the script I saw, I thought I had copied it but hadn't.

That is a good script to keep in the archive no doubt I will want to do similar one day.

Here is the script I ended up using

Code:
LoadPlugin("C:\Program Files\fitcd\MPEG2DEC.dll")


clip1 = AviSource("D:\temp\Downloads\1\movie1.avi",false)
clip2 = AviSource("D:\temp\Downloads\1\movie2.avi",false)
clip3 = AviSource("D:\temp\Downloads\1\movie3.avi",false)

clip1 = clip1.Crop(2, 0, 352, 240) 
clip3 = clip3.BilinearResize(352,240,348,240) 
clip1 + clip2 + clip3
ConvertToYUY2()

LegalClip()
Pixiedust()
Convolution3D(preset="movieLQ")
GripFit(352, 240, overscan=1) 
#FluxSmooth() 
GripBorders() 


#sampler(length=24)

LegalClip()
its a 2 hr home vid and will take approx 6hrs to do on my P4 2Gig (damn that dust and C3D are slow but fantastic results) it will be interesting to see how it comes out.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: 16:9 from dvd sources and overscan? jorel Avisynth Scripting 41 10-20-2004 11:07 AM
Avisynth: MA script for interlaced sources? Boulder Avisynth Scripting 52 04-03-2004 02:47 PM
Avisynth: optimal script for dvd sources? CheronAph Avisynth Scripting 6 12-16-2003 07:54 AM
Avisynth: Multiple Sources in one script? Bchteam Avisynth Scripting 2 09-19-2003 12:12 AM
avisynth 2.08 better for divx/xvid sources? J-Wo Video Encoding and Conversion 7 08-02-2003 05:36 AM

Thread Tools



 
All times are GMT -5. The time now is 08:09 AM  —  vBulletin © Jelsoft Enterprises Ltd