Using rvideo on windows

19 views
Skip to first unread message

Kai Krakow

unread,
Nov 18, 2008, 7:34:30 AM11/18/08
to RVideo
When using RVideo::Inspector.new I get the following error:

Exec format error - which ffmpeg

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/
core_ext/kernel/agnostics.rb:7:in ``'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/
core_ext/kernel/agnostics.rb:7:in ``'
c:/ruby/lib/ruby/gems/1.8/gems/rvideo-0.9.3/lib/rvideo/inspector.rb:
39:in `initialize'

The problem seems to occur only when ffmpeg is called without ".exe"
extension. But doing so it is no longer cross-platform, eg developing
on windows, deploying on linux. Next I am not sure if RVideo still
accepts the command if I attach the .exe extension.

This seems to be a general problem in rails when calling a program
without extension from windows. I figured that calling IO.popen
('ffmpeg').read works on both platforms so maybe that simply needs to
be changed in RVideo.
Reply all
Reply to author
Forward
0 new messages