Thursday, July 29, 2010

ffmpeg is cool!!! :)

What can i say about ffmpeg? This tool makes my life so much easier in terms of converting media into your desire files extension. No need to twist your head again and spend your tones of time to search free apps or shareware apps to convert your media.

By the way ffmpeg is a free software / open source project that produces libraries and programs for handling multimedia data and publishes them under the GNU Lesser General Public License or GNU General Public License (depending on which options are enabled). The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.

Below are a bunch of ffmpeg command lines that will do just about everything you need.

1. If you want to get an info about your media/videos issues the following command :-

# ffmpeg -i name_of_videos.avi

2. If you want to turn a sequence of images into video, then :-

# ffmpeg -f image2 -i image%d.jpg video.mpg

3. Turn a video into a sequence of images, then :-

# ffmpeg -i video.mpg image%d.jpg

4. Encode your video for Ipod/IPhone

# ffmpeg -i source_video_file.avi -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv -trell 1 -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output_file.mp4

5. Encode your video for PSP

# ffmpeg -i source_video_file.avi -b 300 -s 320x240 -vcodec xvid -ab 32 -ar 24000 -acodec aac output_file.mp4

you can try this commmand :-

# ffmpeg -i "OriginalFile.avi" -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320x240 "OutputFile.mp4"

6. Extract audio from a video file and save it as mp3 format

# ffmpeg -i source_video_file.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 output_file.mp3

7. Convert a wave file to mp3

# ffmpeg -i original_audio_file.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 output_file.mp3

8. Convert a avi video to mpeg

# ffmpeg -i original_movie.avi output_file.mpg

9. Convert a mpeg video to avi

# ffmpeg -i original_movie.mpg output_file.avi

10. Convert a avi video to uncompressed animated gif

# ffmpeg -i original_movie.avi output_file.gif

11. Add audio to an existing video-only file (mix audio and video)

# ffmpeg -i son.wav -i original_movie.avi output_file.mpg

12. Convert a avi video to flv (flash video)

# ffmpeg -i original_movie.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv output_file.flv

13. Convert a flv video to mpeg

# ffmpeg -i myFile.flv -ab 56 -ar 22050 -b 500 -s 320x240 myFile.mpg

14. Convert a avi video to dv

# ffmpeg -i original_movie.avi -s ntsc -r ntsc -aspect 4:3 -ar 48000 -ac 2 output_file.dv

15. Convert a avi video to mpeg specifically for DVD creation

# ffmpeg -i source_video.avi -target ntsc-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg

16. Compress a avi video to Divx

# ffmpeg -i original_movie.avi -s 320x240 -vcodec msmpeg4v2 output_file.avi

17. Convert a Ogg Theora video to mpeg specifically for DVD creation

# ffmpeg -i original_movie.ogm -s 720x576 -vcodec mpeg2video -acodec mp3 output_file.mpg

18. Convert a avi video to mpeg2 for SVCD creation

# ffmpeg -i original_movie.avi -target ntsc-svcd output_file.mpg

19. Convert a avi video to mpeg2 for VCD creation

# ffmpeg -i original_movie.avi -target ntsc-vcd output_file.mpg

Viola...

0 comments:

Post a Comment