Chapter markers

is there anyway I can use the markers in resolve and import them into adobe encore? this will save so so much time as I use this every day for work and hate going over the video again for chapter markers.
https://forum.blackmagicdesign.com/
https://forum.blackmagicdesign.com/viewtopic.php?f=3&t=103232
Quantumcast wrote:thanks for that! but 2nd question, do you know how I can import the csv file into adobe encore?
Quantumcast wrote:is there anyway I can use the markers in resolve and import them into adobe encore? this will save so so much time as I use this every day for work and hate going over the video again for chapter markers.
edl2chap -l en -f 30 chapters.edl
#!/usr/bin/env ruby
require "optparse"
options = {:lang => 'en', :fr => 30}
ARGV.options do |opts|
opts.banner = "Usage: #{File.basename($PROGRAM_NAME)} [OPTIONS] EDL_FILE"
opts.separator ""
opts.separator "Specific Options:"
opts.on( "-l", "--language", String,
"2-charater language code (will appear in output file name)" ) do |opt|
options[:lang] = opt
end
opts.on( "-f", "--framerate", Integer,
"Frame rate of EDL (default: 30)" ) do |opt|
options[:fr] = opt
end
opts.separator "Common Options:"
opts.on( "-h", "--help",
"Show this message." ) do
puts opts
exit
end
begin
opts.parse!
rescue
puts opts
exit
end
end
EDL = ARGV[0]
LANG = ARGV[1] || 'en'
edl = File.read(EDL)
output = EDL.gsub(/\.edl/, '') + ".#{LANG}.txt"
chapters = ""
index = 0
edl.split(/\r?\n\r?\n/).each do |l|
if l =~ /C +(\d\d:\d\d:\d\d:\d\d).+\|M:(.+) \|D/m
index += 1
time = $1
name = $2
tp = time.split(':')
Hood River = tp[0].to_i - 1
frames = tp[3]
ms = sprintf("%03d", (frames.to_f / options[:fr]) * 1000)
time.gsub!(/:\d\d$/, ".#{ms}")
chap_index = sprintf("%02d", index)
new_time = "#{hr}:#{tp[1]}:#{tp[2]}.#{ms}"
chapters += "CHAPTER#{chap_index}=#{new_time}\n"
chapters += "CHAPTER#{chap_index}NAME=#{name}\n"
end
end
File.open(output, "w") { |f| f.write chapters }
puts "File written to #{output}"