require 'rubygems' # When running under 1.8. Who knows?

require 'mediainfo' # Capture technical metadata from video
require 'mini_exiftool' # Capture software metadata from video
require 'spreadsheet' # Write to spreadsheet

# File-find gem, enables recursively searching a path
require 'file/find' 

# Internal functions and classes

require File.dirname(__FILE__) + '/lib/mediainfo.rb'
require File.dirname(__FILE__) + '/lib/exif.rb'
require File.dirname(__FILE__) + '/lib/client.rb'

# These are the filetypes we consider to be videos
# All others are not videos and we care nothing for them
# Note that we will also scan files with no extensions.
@@filetypes = [ 'mov', 'avi', 'mp4', 'mts' ]

@@files = [] # Let's leave this empty for later

case ARGV[0]
  when nil
    puts "usage: metadater <directory>"
    puts "metadater will scan the specified directory and produce a YAML and XLS output at the end of the process."
  when String
    # Get base directory to scan
    # This directory and all its subdirectories will be scanned
    scandir = Path.new(ARGV[0])
end

# scandir.scan

require 'rubygems' # When running under 1.8. Who knows?

require 'mediainfo' # Capture technical metadata from video. Requires MediaInfo
require 'mini_exiftool' # Capture software metadata from video. Requires ExifTool
require 'spreadsheet' # Write to spreadsheet

# File-find gem, enables recursively searching a path
require 'file/find' 

# Internal functions and classes

require File.dirname(__FILE__) + '/lib/mediainfo.rb'
require File.dirname(__FILE__) + '/lib/exif.rb'
require File.dirname(__FILE__) + '/lib/client.rb'

# These are the filetypes we consider to be videos
# All others are not videos and we care nothing for them
# Note that we will also scan files with no extensions.
@@filetypes = [ 'mov', 'avi', 'mp4', 'mts' ]

@@files = [] # Let's leave this empty for later

case ARGV[0]
  when nil
    puts "usage: metadater <directory>"
    puts "metadater will scan the specified directory and produce a YAML and XLS output at the end of the process."
  when String
    # Get base directory to scan
    # This directory and all its subdirectories will be scanned
    scandir = Path.new(ARGV[0])
end

# scandir.scan

Make note of external, non RubyGems dependencies
Make note of external, non RubyGems dependencies
