Saturday, January 29, 2011

FFmpeg convertions via Terminal-Linux

0 comments
I'll post how to install FFMPEG for linux ubuntu 9.10 in near future, Now I'm going to tell you how to convert your media files with FFmpeg in linux ubuntu 9.10 via the gnome-terminal or kde-konsole... Remember ALL FILES MUST BE IN THE HOME-DIRECTORY as it will be more easier to handle. Here are the steps that you must follow in order to convert media files correctly..





1) Getting the information of a media file such as bitrate, speed, frame rate etc..

ffmpeg -i example.avi

File type can be any... ( avi, 3gp, mp4...... )

2) Converting any type of video to mp4 format ( suitable for ipods, iphone and nokia like devices... )

ffmpeg -i input.avi -f psp -r 30.00 -b 796000 -ar 24000 -ab 196000 -vcodec mpeg4 -s 320x240 output.mp4

You can edit the preferences as you wish.... Input types can be vary...

3) Converting to mp4 without changing it's original preferences...

ffmpeg -i input.avi output.mp4

4) Overlapping a video with an audio track

ffmpeg -i inputaudio.wav -i inputvideo.avi output.mp4 5) Extracting soundtracks ffmpeg -i input.avi -vn -ar 48000 -ac 2 -ab 320 -f mp3 output.mp3

6) Turn a video to images

ffmpeg -i input.avi image%d.jpg

File types can be any....

7) Turn images to a video

ffmpeg -f image2 -i image%d.jpg outpt.avi

0 comments:

Post a Comment

Keep a comment if you like this.. Thank you :)