class MultimediaParadise::Video::SplitThisVideo
Public Class Methods
[](i = ARGV)
click to toggle source
new( name_of_the_videofile = nil, split_position = nil, run_already = true )
click to toggle source
#¶ ↑
initialize¶ ↑
#¶ ↑
# File lib/multimedia_paradise/video/split_this_video.rb, line 37 def initialize( name_of_the_videofile = nil, split_position = nil, run_already = true ) reset if name_of_the_videofile.is_a?(Array) and split_position.nil? split_position = name_of_the_videofile.pop end set_name_of_the_videofile(name_of_the_videofile) set_split_position(split_position) run if run_already end
Public Instance Methods
duration?(i)
click to toggle source
name_of_the_videofile?()
click to toggle source
reset()
click to toggle source
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/multimedia_paradise/video/split_this_video.rb, line 100 def run _ = name_of_the_videofile? duration = point?.to_s.dup unless duration.include? '-' duration << '-'+ seconds_to_time_format( # Convert n seconds into the 24 hour time format. duration?(_).to_s ) end _result = MultimediaParadise.cut_from_to( duration, this_file: _ ) end
set_name_of_the_videofile(i)
click to toggle source
set_split_position(i)
click to toggle source