Sha256: 3e43640071f12bb87b7564f8d98c3dee2061ee8741f6fed1ed07feb4331bd576

Contents?: true

Size: 1.09 KB

Versions: 3

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'
require_relative 'vlc_programmer'

class MplayerEdl
  def self.convert_to_edl specs
    combined = VLCProgrammer.convert_incoming_to_split_sectors specs
    out = ''
    map = {:mute => 1, :blank => 0}
    for start, endy, type in combined
      out += "#{start} #{endy} #{map[type]}\n"
    end
    out
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sensible-cinema-0.18.4 lib/mplayer_edl.rb
sensible-cinema-0.18.3 lib/mplayer_edl.rb
sensible-cinema-0.18.2 lib/mplayer_edl.rb