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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
Registered User
Join Date: Mar 2010
Posts: 158
|
read a text file to select frames
Hi
I have two video clips and I would like to join them using some frames of the clip 1 and some frames of the clip 2. In a text file, I have listed for each frame if it must be taken from the clip 1 or clip 2. Now I would like to read the text file and create my clip on a loop (frame by frame) using avisynth. How would you do this? Thank you in advance for any advice. max |
|
|
|
|
|
#2 | Link |
|
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,444
|
See ConditionalReader and ConditionalFilter.
|
|
|
|
|
|
#3 | Link |
|
typo lover
Join Date: May 2009
Posts: 601
|
RemapFrame ?
http://avisynth.org/stickboy/
__________________
my repositories |
|
|
|
|
|
#4 | Link | |
|
Registered User
Join Date: Jan 2011
Posts: 121
|
Quote:
If you have clip A and clip B, you can use it like this: Code:
final = RemapFramesSimple(A, B, mappings = "4 5 [7 10] 98") Keep in mind that the resulting clip will use the audio from the first clip parameter (in this case A). If you want to use the audio from B without switching up all the numbers, you can follow it up with: Code:
final = Merge(B, final, 1.0) Last edited by Mini-Me; 27th April 2011 at 02:54. |
|
|
|
|
|
|
#5 | Link | ||
|
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,444
|
Quote:
RemapFramesSimple takes only a single clip and simply selects frames or frame ranges from the input, eg RemapFramesSimple(A, mappings = "4 5 [7 10] 98") produces a clip consisting (solely) of frames 4, 5, 7 through 10, and 98 of A. Quote:
final = final.AudioDub(B) |
||
|
|
|
![]() |
|
|