Skip to content

Instantly share code, notes, and snippets.

@pvdb
Created May 18, 2009 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvdb/113614 to your computer and use it in GitHub Desktop.
Save pvdb/113614 to your computer and use it in GitHub Desktop.
private
def mediainfo!
raw_response = `#{@mediainfo_binary} #{@escaped_full_filename}`
raise "Execution of #{mediainfo_binary} failed!" unless $? == 0
return raw_response
end
>> require 'mediainfo'
=> true
>> mediainfo = Mediainfo.new "foo(bar).mov"
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `mediainfo foo(bar).mov'
RuntimeError: Execution of mediainfo failed!
from ./mediainfo.rb:195:in `mediainfo!'
from ./mediainfo.rb:182:in `initialize'
from (irb):2:in `new'
from (irb):2
>> mediainfo.nil?
=> true
>> exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment