23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/mplayer_edl.rb', line 23
def self.convert_to_edl specs, add_this_many_to_end = 0, add_this_many_to_beginning = 0, splits = [], = 0.0, use_english_timestamps = false
combined = EdlParser.convert_incoming_to_split_sectors specs, add_this_many_to_end, add_this_many_to_beginning, splits
out = ''
map = {:mute => 1, :blank => 0}
for start, endy, type in combined
start +=
endy +=
if use_english_timestamps
start = EdlParser.translate_time_to_human_readable start
endy = EdlParser.translate_time_to_human_readable endy
end
out += "#{start} #{endy} #{map[type]}\n"
end
out
end
|