You are not logged in.

#1 2008-07-06 13:44:37

ssl6
Member
From: Ottawa, ON, CA
Registered: 2007-08-30
Posts: 594

ffmpeg

i've been trying to toy around with ffmpeg here to convert some videos.

basically, i have a pile of flv videos that i want to convert in bulk to divx or something, just one command so i can walk away.

anyone here know how to do that? i've been trying to figure it out, and can't get it working


this is a signature

Offline

#2 2008-07-06 15:08:46

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: ffmpeg

maybe something like:

for file in *; do <ffmpeg command> $file; done

using whatever ffmpeg command you use (ffmpeg -i <file>  [options] output.mpg

etc.

or else try some script like this, using mencoder, xvid, etc. (though I can't verify because I've never tried it):

http://www.linux.com/articles/56642

Offline

#3 2008-07-06 15:43:03

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: ffmpeg

So the for line should be like:

for file in *; do ffmpeg -i $file -sameq -ac 2 -ab 320k $file.converted.avi; done

I believe those audio options are necessary, or is there -sameq for it?
-ab 320k will fail if it's lower.

Offline

#4 2008-07-06 16:26:09

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: ffmpeg

I suggest you to encase the $file variable in double quotes in case your files have spaces in their name

Offline

Board footer

Powered by FluxBB