class MultimediaParadise::FixMarriedWithChildrenVideos
Constants
- START_TIME
#¶ ↑
START_TIME
¶ ↑This denotes where to start.
#¶ ↑
Public Class Methods
Public Instance Methods
obtain_all_videos()
click to toggle source
reset()
click to toggle source
run()
click to toggle source
#¶ ↑
run¶ ↑
#¶ ↑
# File lib/multimedia_paradise/video/fix_married_with_children_videos.rb, line 54 def run _ = obtain_all_videos _.each {|old_video_file| extension_name = File.extname(old_video_file).delete('.') cmd = 'ffmpeg -ss '+START_TIME+' -i '+old_video_file+ ' -c copy -t 00:50:10.0 '+old_video_file+'_shortened.'+ extension_name e cmd system cmd } end