lib/evideo.rb in evideo-0.2.0 vs lib/evideo.rb in evideo-0.2.1
- old
+ new
@@ -11,27 +11,24 @@
# CLI para analisar/processar videos
class CLI < Thor
class_option :d, banner: 'DIR', type: :array,
default: ["/home/#{ID}/lust", "/media/#{ID}/hrv2"],
desc: 'Onde procurar videos'
- class_option :i, banner: 'IN', default: 'ftv',
- desc: 'Pasta origem'
- class_option :o, banner: 'OUT', default: 'out',
- desc: 'Pasta destino'
+ class_option :i, banner: 'IN', default: 'ftv', desc: 'Pasta origem'
+ class_option :o, banner: 'OUT', default: 'out', desc: 'Pasta destino'
desc 'conv', 'converte videos'
- option :t, type: :boolean, default: false,
- desc: 'Processa somente segundos para teste'
+ option :t, type: :boolean, default: false, desc: 'Processa somente segundos para teste'
# Processa videos
def conv
- Dir.glob("#{fin}/*.???").sort.each do |f|
+ Dir.glob("#{fin}/c*.???").sort.each do |f|
HRVideo.new(f).processa(options, fout)
end
end
desc 'test', 'testa videos'
# Analisa videos
def test
- Dir.glob("#{fin}/*.???").sort.each do |f|
+ Dir.glob("#{fin}/c*.???").sort.each do |f|
HRVideo.new(f).testa(options, fout)
end
end
default_task :conv
no_commands do