Sha256: 8077f1e2ff306c2e6e045cfcd766deecf82cf2cda0feadd589847011b5f4cdd8

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

=begin
Copyright 2010, Roger Pack 
This file is part of Sensible Cinema.

    Sensible Cinema is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Sensible Cinema is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Sensible Cinema.  If not, see <http://www.gnu.org/licenses/>.
=end
require_relative 'overlayer'

class MplayerEdl
  def self.convert_to_edl specs
    out = ""
    for type, metric in {"mutes" => 1, "blank_outs" => 0}
      specs[type].each{|start, endy, other|
      out += "#{OverLayer.translate_string_to_seconds start} #{OverLayer.translate_string_to_seconds endy} #{metric}\n"
    }
    end
    out
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sensible-cinema-0.18.0 lib/mplayer_edl.rb