Skip to content

Instantly share code, notes, and snippets.

@pvdb
Created May 18, 2009 17:03
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/113611 to your computer and use it in GitHub Desktop.
Save pvdb/113611 to your computer and use it in GitHub Desktop.
private
def mediainfo!
`#{@mediainfo_binary} #{@full_filename}`
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'
=> #<Mediainfo:0xb7a1c98c @mediainfo_binary="mediainfo", @parsed_response={}, @path=".", @raw_response="", @full_filename="foo(bar).mov", @filename="foo(bar).mov">
>> mediainfo.video?
=> false
>> mediainfo.audio?
=> false
>> exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment