Should I update eyeOS Joomla plugin?

 
Convert avi to flv video
PDF 
User Rating: / 0
PoorBest 
Thursday, 03 June 2010 03:53

Well, converting an avi video file into a flv file is pretty the same way, like doing it with an mts video file.

So I just changed the mts2flv file a little bid!


I'm using ffmpeg-0.5-3.el5.rf with lame-3.97-1.el5.rf on my CentOS 5.3.

First, I was using lame-3.98.2-1.el5.rf,
but I always got an "output buffer too small" error, while converting the audio data. So I just installed an earlier version and it worked like a charm.

 

Here is my small script, what convert all .avi files into a .flv file with the same screensize and 44100 mp3 sound:

#####################

#!/bin/sh

## avi2flv - Copyright 2010-6 Maik Heinelt

for f in *.avi
do
outf=${f%.avi}.flv

ffmpeg -i "$f" -y -b 800 -r 25 -f flv -vcodec flv -acodec libmp3lame -ab 128 -ar 44100 "$outf"

done

#####################

 

Just copy this code into a file, make it executable and run it at the folder, where you have placed the avi files!

 

 

Techace.jp Banner