[應用2:影音剪輯]
Loop_Trim_info.txt、File_info.txt 修改範例:
片源為擷取卡錄製之 a.mpg 片長:22:10
~[File_info.txt]
File_Name = "a.mpg"
-------------------------------
1.欲跳過中間之廣告 12:00~15:05
~[Loop_Trim_info.txt]~修改如下
Function Get_Divide_TFrame_1 (Int Select_Val, Float "Delay_Time") {
Divide_STart_Time = "00:00:00"
Divide_End_Time = "00:11:59"
return Select(Select_Val, Divide_STart_Time, Divide_End_Time, default(Delay_Time,0))
}
Function Get_Divide_TFrame_2 (Int Select_Val, Float "Delay_Time") {
Divide_STart_Time = "00:15:06"
Divide_End_Time = "00:22:10"
return Select(Select_Val, Divide_STart_Time, Divide_End_Time, default(Delay_Time,0))
}
-------------------------------
2.欲將 15:06~22:00 + 0:00~11:00
~[Loop_Trim_info.txt]~修改如下
Function Get_Divide_TFrame_1 (Int Select_Val, Float "Delay_Time") {
Divide_STart_Time = "00:15:06"
Divide_End_Time = "00:22:00"
return Select(Select_Val, Divide_STart_Time, Divide_End_Time, default(Delay_Time,0))
}
Function Get_Divide_TFrame_2 (Int Select_Val, Float "Delay_Time") {
Divide_STart_Time = "00:00:00"
Divide_End_Time = "00:11:00"
return Select(Select_Val, Divide_STart_Time, Divide_End_Time, default(Delay_Time,0))
}
-------------------------------
3.欲將 1:25~11:10 + 15:10~22:00並修正音訊延遲2秒
~[Loop_Trim_info.txt]~修改如下
Function Get_Divide_TFrame_1 (Int Select_Val, Float "Delay_Time") {
Divide_STart_Time = "00:01:25"
Divide_End_Time = "00:11:10"
return Select(Select_Val, Divide_STart_Time, Divide_End_Time, default(Delay_Time,0))
}
Function Get_Divide_TFrame_2 (Int Select_Val, Float "Delay_Time") {
Divide_STart_Time = "00:15:10"
Divide_End_Time = "00:22:00"
Delay_Time = 2
return Select(Select_Val, Divide_STart_Time, Divide_End_Time, default(Delay_Time,0))
}
PS. 其餘多餘的 Function Get_Divide_TFrame_x () { } 必須刪除或在每行前加註 # 使之無效
Loop_Trim_info.txt 這裡的 Delay_Time 是應用在段落內
File_info.txt 這裡的 Delay_Time 是應用在Offset_Start_Time 偏移時間之後(到播放結尾)