Friday, August 25, 2006

ffmpegX

I have been working on getting videos up for K9 Web Protection media coverage, and found that ffmpegX is a really easy-to-use program. It was able to convert my files to flv (flash video) pretty quickly. The one thing it didn't do was add the metadata - but flvtool2 did a great job of that.

8 comments:

Rob said...

How do you use the flvtool2? I have downloaded it but don't know what to do next. Thanks.

Nathan Toone said...

I just run the command:

flvtool2 -UP <filename>

That sets them up so that they are indexed correctly.

Hope it helps!

Rob said...

Thanks, Nathan... the only problem is I'm an idiot. I've never run commands from the terminal before, so I don't know what I'm doing. I downloaded the flvtool2. I opened the terminal and typed the command "flvtool2 -UP" but it gave me an error "Command Not Found"... Can you tell me what I need to do? (I am running OS X 10.3.9).

Thanks.

Nathan Toone said...

You aren't an idiot - I didn't even think that was what the question was....

Here it is, step-by-step:

1. Download flvtool2, and place it somewhere on your computer (I like putting it in <HOME>/Documents/Downloads)

2. Open the terminal by going to Applications/Utilities/Terminal.app

3. Enter the command - but you'll need to put in the full path to where flvtool2 is. For example (if you downloaded it, like me, to <HOME>/Documents/Downloads): ~/Documents/Downloads/flvtool2 -UP <filename>

You will need to put the full filename to the flv file.

Also - if you want to just be able to run it from the terminal (without having to type in the full path every time), you can put it in /usr/local/bin - but you need to be an administrator to do that. Just run the following (again, using <HOME>/Documents/Downloads as where I downloaded flvtool2 to...):

sudo cp ~/Documents/Downloads/flvtool2 /usr/local/bin

It will ask for your administrator password...and you can only run that command as an administrator. If you don't have administrator access, you will need to just run it from your downloads directory using the full path.

Rob said...

Thanks for your help. I am getting closer...but I keep getting the following error:

/Users/rob/Documents/Downloads/flvtoolother/bin/flvtool2:2:in `require': No such file to load -- flvtool2 (LoadError)

Any ideas?

Nathan Toone said...

ah - so I totally told you wrong on how to install flvtool2... I'm sorry about that.

You need to do the following to install flvtool2:

unzip the downloaded package
open terminal
enter:
cd ~/path/to/downloaded/flv
you need to be in the directory with the README file (ls will show you that)
enter the following commands:
ruby setup.rb config
ruby setup.rb setup
sudo ruby setup.rb install

Then, you should just run "flvtool2 -UP...." (don't use the full path anymore)

I forgot about those steps.

Rob said...

Man, I hate to keep bugging you about this. Just cut me loose and tell me I'm on my own whenever you get sick of being used in this way...

Anyway... Ran all the steps you told me and it appeared to install..but I got this error:

Rob-Tiptons-Computer:~/Documents/Downloads/flvtoolother rob$ flvtool2 -UP ~/Documents/Accounts/GreenwoodDevelopment/Video/killermove/video.flv

-bash: flvtool2: command not found

Imtiaz said...

Ok Here's a similar error:

mamschoo@mamschool.com /home/mamschoo/bin/flvtool2
/home/mamschoo/bin/flvtool2:2:in `require': no such file to load -- flvtool2 (LoadError)
from /home/mamschoo/bin/flvtool2:2
mamschoo@mamschool.com


Assuming there is a way to set it up on shared hosting under a users shared directory but just not sure how