OK, got subversion installed, along with tortoise svn, which adds svn commands into windows explorer. I’m a little bit suprised that it (svn) doesn’t have a ‘proper’ interface – i was expecting something along the lines of visual source safe. I guess though that doing everything in windows explorer makes sense.

Anyway, the point of doing this was to get the movie playing stuff in. Let’s just try that command line before trying to work out how to do anything… it was

ruby script/plugin install svn://rubyforge.org/var/svn/flashplayrhelpr

Well, it did *something*. I got a load of stuff copied over, but then a cryptic message:

A C:\code\InstantRails\rails_apps\newspipe\vendor\plugins\flashplayrhelpr\install.rb

A C:\code\InstantRails\rails_apps\newspipe\vendor\plugins\flashplayrhelpr\MIT-LICENSE
A C:\code\InstantRails\rails_apps\newspipe\vendor\plugins\flashplayrhelpr\README
Exported revision 14.
Installing flash_player…
Plugin not found: [“svn://rubyforge.org/var/svn/flashplayrhelpr”]

What does that mean – do i have it or not? It was supposed (according to this guide) to make a folder called swf in public, but it didn’t. Goddammit, why isn’t anything ever easy? grrrr. ok, chill. The guide has a backup plan if the files don’t appear, which is to run this:

rake flash_player:install

which apparently makes the viewer available to use. Hmm. It didn’t complain when i ran this, but it didnt say it had done anything either. However when i did rake blahblah:install it complained that it couldn’t find blahblah so i guess it’s there in some form. Anyway, let’s try and use it.

I put this in my standard partial, which is the basis for all templates in my app:

<%= javascript_include_tag ‘ufo’ %>

then this in my movie/show view page:

<%= flv_player :file => “/data/movies/feynman.flv” %>

Here goes. Nope – i get this error message
undefined method `flv_player’ for #<#<Class:0x4815ad4>:0x4815aac>

which suggests it didn’t install.

Looking back at the messages, i think that the flash_player did install, but flashplayrhelper, which is a seperate plugin didn’t.

…some time passes…

Got it! After a helpful suggestion from the maker of flashplayrhelpr, Farooq Ali Farooq, I added the svn exe to my path variable, and forced reinstall – worked first time! Good old Feynman lecturing away there. Awesome.

There’s a little bit of tidying up required with the movie – it would be nice to be able to edit the associated details (title, summary etc) after posting for example. This isn’t essential though – what is essential is to be able to convert other video formats to flash video, so people can upload an avi, wmv etc. This is what YouTube does – you can upload various formats but everything is displayed in flv format.

This looks promising : http://www.danielfischer.com/2007/06/27/how-to-use-ffmpeg-to-convert-video-via-ruby-on-rails/

There’s quite a bit of pre-requisites but all stuff that would be useful i think: It seems perfect for my needs, dan even includes code for making a thumbnail. I’ll have a go with this (next post).

Advertisements

One response to “

  1. Hi, i’m fighting against the same problem right now.
    What do you mean with:

    ‘I added the svn exe to my path variable, and forced reinstall – worked first time’

    Where do you added what? Do you have an source code example?

    THX

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s