Hi all,
I have two AVI video files that are in 1920x1080.
I want combine these two files into one screen, side by side (horizontal) with 1920x1080 total in the end.
I was looking at this page, but where do I load two file in?
https://forum.videohelp.com/threads/48579-How-to-edit-with-Avisynth
I have AviSynth 2.5 installed. Thanks.
Code:AVISource("e:\cap.avi") h1=crop(0,0,360,576) h2=crop(360,0,360,576) StackHorizontal(h2,h1)
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 11 of 11
			
		- 
	
- 
	h1=AVISource("e:\cap1.avi").crop(0,0,-960,0) 
 h2=AVISource("e:\cap2.avi").crop(960,0,0,0)
 StackHorizontal(h1,h2)
- 
	When I try to run the code below through VirtualDub 1.9.11. I got the error as below. 
 
 Code:h1file=AVISource("D:\OUTPUT_VIDEO\sactet5\clip1a.avi").crop(0,0,-960,0) h2file=AVISource("D:\OUTPUT_VIDEO\sactet5\clip1b.avi").crop(960,0,0,0) StackHorizontal(h1file,h2file)
- 
	It's nothing to do with the script (in principle) but with the paths (I think). Try disabling the audio and make sure both AVIs are in the same folder as the script: 
 
 h1file=AVISource("clip1a.avi",false).crop(0,0,-960,0)
 h2file=AVISource("clip1b.avi",false).crop(960,0,0, 0)
 StackHorizontal(h1file,h2file)
 
 The AVIs contain the usual kinds of video don't they, and nothing odd like x264?
 
 Or maybe:
 
 h1file=AVISource("clip1a.avi",false)
 h1file=hifile.crop(0,0,-960,0)
 h2file=AVISource("clip1b.avi",false).
 h2file=h2file.crop(960,0,0,0)
 StackHorizontal(h1file,h2file)
- 
	I'm not sure what I'm doing wrong. All the code error out when I run script trhough VirtualDub. 
 
 
- 
	since the last example manono posted: 
 has a bunch of typos, I tested:Code:h1file=AVISource("clip1a.avi",false) h1file=hifile.crop(0,0,-960,0) h2file=AVISource("clip1b.avi",false). h2file=h2file.crop(960,0,0,0) StackHorizontal(h1file,h2file)
 and it works fine here.Code:left=AviSource("D:\OUTPUT_VIDEO\sactet5\clip1a.avi",false) left=left.Crop(0,0,-960,0) right=AviSource("D:\OUTPUT_VIDEO\sactet5\clip1b.avi",false) right=right.Crop(960,0,0,0) StackHorizontal(left,right)
 
 -> if it doesn't work for you, repost your complete script (inside code-tags)
- 
	Before, I have fixed 1 to i. 
 
 I'm still getting the error using the code below. 
 
 I used both VirtualDub-1.10.4 & VirtualDub-1.9.11.
 
 From VirtualDub, File>Run Script (All scripts) and pick sample.avs
 
 Where sample.avs is as:
 Code:left=AviSource("D:\OUTPUT_VIDEO\sactet5\clip1a.avi",false) left=left.Crop(0,0,-960,0) right=AviSource("D:\OUTPUT_VIDEO\sactet5\clip1b.avi",false) right=right.Crop(960,0,0,0) StackHorizontal(left,right)
- 
	LOL,... use: "File->Open video file" insteadFrom VirtualDub, File>Run Script (All scripts) and pick sample.avs
 "Run Script" is ment for Virtual Dub scripts (not Avisynth scripts)!
- 
	Try it. Sometimes the path influences.Code:left=AviSource("clip1a.avi",false) left=left.Crop(0,0,-960,0) right=AviSource("clip1b.avi",false) right=right.Crop(960,0,0,0) StackHorizontal(left,right)
- 
	
Similar Threads
- 
  Fixing screen shake on part of a video with AvisynthBy VideoFanatic in forum RestorationReplies: 9Last Post: 7th Sep 2013, 14:34
- 
  Can't navigate video files after I split them with ffmpegBy mkvbob in forum Video ConversionReplies: 4Last Post: 24th Apr 2013, 11:32
- 
  Split video filesBy dharmil007 in forum EditingReplies: 19Last Post: 29th Oct 2011, 11:19
- 
  AC3 music/dialog is split. Any way to combine the two?By silvertoaster in forum AudioReplies: 1Last Post: 23rd May 2011, 19:34
- 
  How to combine more than one video files when uploads them?By coody in forum Video Streaming DownloadingReplies: 2Last Post: 2nd Nov 2010, 13:30


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			

 Quote
 Quote Visit Homepage
				Visit Homepage
			 
			

