Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 6 posts ] 
    ZenVirZan
  Tue Aug 11, 2015 1:41 pm
very undead
User avatar
Sponsor

Inept Evil Stooge

Location: land of the snags 'n tracky-dacks
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.

_________________
Image


Top Top
Profile      
 

    Xilef
  Tue Aug 11, 2015 4:28 pm
User avatar
Staff

Big Dumb Guy

Location: UK
ZenVirZan wrote:
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 wrote:
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 wrote:
./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 wrote:
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


Top Top
Profile      
 

    ZenVirZan
  Wed Aug 12, 2015 8:59 am
very undead
User avatar
Sponsor

Inept Evil Stooge

Location: land of the snags 'n tracky-dacks
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.

_________________
Image


Top Top
Profile      
 

    Xilef
  Wed Aug 12, 2015 12:37 pm
User avatar
Staff

Big Dumb Guy

Location: UK
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


Top Top
Profile      
 

    ZenVirZan
  Wed Aug 12, 2015 1:19 pm
very undead
User avatar
Sponsor

Inept Evil Stooge

Location: land of the snags 'n tracky-dacks
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.

_________________
Image


Top Top
Profile      
 

    Xilef
  Wed Aug 12, 2015 4:44 pm
User avatar
Staff

Big Dumb Guy

Location: UK
Pretty sure you can stream output via stdout with ffmpeg, doesn't have to go to files.


Top Top
Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: No users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

We are an independent, not-for-profit game making community.
Homepage
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group