Results 1 to 5 of 5
To start with you would need to install "ffmpeg". This program allows you to convert any video or audio file to what you want it to be.
If you have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-29-2007 #1
Converting Video files in Linux
To start with you would need to install "ffmpeg". This program allows you to convert any video or audio file to what you want it to be.
If you have Debian then you would type in the root terminal :
apt-get install ffmpeg
After installing that you will need to plan what you want to convert and what format you want to convert it to. This program is command line and not graphical so you would need to open up your terminal.
so you need to let the system know that you want to run that program so you would type in: "ffmpeg", then you need to give it the command to run its duty so you put in "-i". Then you give in your input starting with "/home/", then your output starting with "/home/" again.
so this is how a example command line will look:
neel:/home/neel# ffmpeg -i /home/neel/Desktop/Famguy/part6.flv /home/neel/part6.avi
note: I have the file format I inputed and the file format I want to output.
Punctuation is important, if you miss spell or have a capital where its supose to be lowercase, it will not work.
- 07-29-2007 #2
converting flv to avi
Another way to convert would be using this code:
#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: $0 {-divx|-xvid} list_of_flv_files"
exit 1
fi
# video encoding bit rate
V_BITRATE=1000
while [ "$1" ]; do
case "$1" in
-divx)
MENC_OPTS="-ovc lavc -lavcopts \
vcodec=mpeg4:vbitrate=$V_BITRATE:mbd=2:v4mv:autoas pect"
;;
-xvid)
MENC_OPTS="-ovc xvid -xvidencopts bitrate=$V_BITRATE:autoaspect"
;;
*)
if file "$1" | grep -q "Macromedia Flash Video"; then
mencoder "$1" $MENC_OPTS -vf pp=lb -oac mp3lame \
-lameopts fast
reset=standard -o \
"`basename $1 .flv`.avi"
else
echo "$1 is not Flash Video. Skipping"
fi
;;
esac
shift
done
---------------------------------------------------------------------------------------------------------
copy and paste it to your text editor and save it as "flv2avi.sh", This will only convert flv files. I found this code made by some guy through shell scripting. I have not used it but it can get quite handy. Save it to the command directory, which is usually "/usr/local/bin". But could be different in other PC's.
- 08-08-2007 #3
- 12-04-2007 #4Banned
- Join Date
- Nov 2007
- Posts
- 4
Go for Avidemux video editor
- 12-07-2007 #5Just Joined!
- Join Date
- Jan 2006
- Posts
- 57
You can also try WinFF a GUI for ffmpeg which automates the procedure of video files convertion in Linux. Check here.
How to convert any video format in Linux


Reply With Quote
