hinsdale1
1st October 2011, 17:31
My script is intended to automate the process of splicing (with transitions, etc) 40-50 small clips that each have their own title overlays etc.
Is it possible to import data via a Tab or Semicolon delineated text file that can be assigned dynamically to the relevant variables for each clip?
For example:
Data.txt
-----------------------------------
;clip;file;title;titlesub;year;start;end;TW;LW
R1;"D:\Test Videos\vacation-aa.mkv";"Grand Caymen";"Thanksgiving - Exclusive Resorts";"2009";1251;1750;29;11
R2;"D:\Test Videos\vacation-b1.mkv";"Puerta Viarta";"January - Christi's 40th";2010;1999;2250;2;1
that will somehow result in the following variables being assigned:
file_R1 = DirectShowSource("D:\Test Videos\vacation-aa.mkv")
title_R1 = "Grand Caymen"
titlesub_R1 = "Thanksgiving - Exclusive Resorts"
year_R1 = "2009"
start_R1 = 1251
end_R1 = 1750
TW_R1 = 29
LW_R1 = 11
file_R2 = DirectShowSource("D:\Test Videos\vacation-b1.mkv")
title_R2 = "Puerta Viarta"
titlesub_R2 = "January - Christi's 40th"
year_R2 = "2010"
start_R2 = 1999
end_R2 = 2250
TW_R2 = 2
LW_R2 = 1
Any guidance would be greatly appreciated.. my novice head is hurting a little bit.
Is it possible to import data via a Tab or Semicolon delineated text file that can be assigned dynamically to the relevant variables for each clip?
For example:
Data.txt
-----------------------------------
;clip;file;title;titlesub;year;start;end;TW;LW
R1;"D:\Test Videos\vacation-aa.mkv";"Grand Caymen";"Thanksgiving - Exclusive Resorts";"2009";1251;1750;29;11
R2;"D:\Test Videos\vacation-b1.mkv";"Puerta Viarta";"January - Christi's 40th";2010;1999;2250;2;1
that will somehow result in the following variables being assigned:
file_R1 = DirectShowSource("D:\Test Videos\vacation-aa.mkv")
title_R1 = "Grand Caymen"
titlesub_R1 = "Thanksgiving - Exclusive Resorts"
year_R1 = "2009"
start_R1 = 1251
end_R1 = 1750
TW_R1 = 29
LW_R1 = 11
file_R2 = DirectShowSource("D:\Test Videos\vacation-b1.mkv")
title_R2 = "Puerta Viarta"
titlesub_R2 = "January - Christi's 40th"
year_R2 = "2010"
start_R2 = 1999
end_R2 = 2250
TW_R2 = 2
LW_R2 = 1
Any guidance would be greatly appreciated.. my novice head is hurting a little bit.