Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Scrub trying to compile Rubygem

Right, so I'm trying to compile this Ruby gem for my project on Windows 8.1, but I've never used Linux/Unix before and I have no idea what I'm looking at.

Rubygem link (ffmpeg-ruby)

Can anyone manage to do it successfully, and let me know how they did it? I've wasted hours on this and I haven't had any luck.
 
ZenVirZan":3ozwidef said:
Right, so I'm trying to compile this Ruby gem for my project on Windows 8.1, but I've never used Linux/Unix before and I have no idea what I'm looking at.

Rubygem link (ffmpeg-ruby)

Can anyone manage to do it successfully, and let me know how they did it? I've wasted hours on this and I haven't had any luck.
You are aware that there are installation instructions on the page? They look pretty clear-cut to me.

Do you have RubyGem installed? http://www.heatware.net/ruby-rails/how- ... ubuntu-10/

EDIT: Looks like the ffmpeg download link is 404'd, you'll need to find a new link to download with wget, maybe this one? https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 I'll check it out and write out some new instructions for you

EDIT2:

Download, extract, enter folder
Terminal":3ozwidef said:
wget https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg*

Configure the build, generate the target, make and install library
Terminal":3ozwidef said:
./configure --prefix=/opt/ffmpeg --enable-pthreads --enable-shared --enable-gpl
make
sudo make install

Clone ffmpeg ruby, change into directory, build gem, install gem
Terminal":3ozwidef said:
git clone git://github.com/gwik/ffmpeg-ruby.git
 
cd ffmpeg-ruby
gem build ./ffmpeg-ruby.gemspec
sudo gem install ./ffmpeg-ruby-0.1.0.gem -- --with-ffmpeg-dir=/opt/ffmpeg
 
I read the installation instructions, I understand that. I should have specified - I'm using Windows and trying to compile this on Windows, not Linux. I did kinda exaggerate because I know the gist of what each command does but I have no clue on how to do the same on Windows instead.

I'm in the process of setting up a VM. I asked a close friend to see if he could do it on his copy of Ubuntu and there are apparently problems with the C code itself or his path setup.

Either way, I'll be giving it a shot later and if no luck, I'll just have to leave it be.
 
You can install Gem on Windows, but the problem is the ffmpeg compilation steps no longer apply (unless you really want to compile ffmpeg for Windows yourself) and then compiling the gem to use the Windows ffmpeg.

Isn't there a Windows prebuilt gem you can use?

According to this Stackoverflow entry, the Gem you're trying to use doesn't actually support Windows; http://stackoverflow.com/questions/2272 ... ndows-ruby

The suggestion is to use this Gem instead; https://rubygems.org/gems/ffmpeg
 
I needed to use that specific version, because it makes changes to the ffmpeg source that lets me load a captured frame as an image that I can work with. I can't afford to dump each frame to disc first; it'll take too long. If I could dump to disc, then I'd just use a regular ffmpeg dll and command line options.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top