
Each of the two input files is provided as a parameter after the -i option. i: FFmpeg uses the -i option to accept input files.I will try to explain the command, starting with the options used in it: ffmpeg -i video1.avi -i video2.avi -f lavfi -i color=black -filter_complex fade=t=out:st=4:d=1:alpha=1,setpts=PTS-STARTPTS fade=t=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS+5/TB scale=1920x1080,trim=duration=15 overlay overlay -map video.aviĪdmittedly, the above command looks scary. Please refer to a detailed explanation of all the options used in the command. Note that there are multiple ways to achieve the same effect and the command used below is merely one example. The following command will create video.avi by concatenating the two videos and fading the videos at the point where they are concatenated. Let the files be of duration 5s and 10s, respectively. Let us assume that we have two AVI (1920 x 1080) files with names video1.avi and video2.avi. In this article, I will explain how this was accomplished using FFmpeg.įFmpeg is available for Linux, Windows and Mac. It is clear that these videos were created by stitching multiple screencast videos together. I had created a couple of videos explaining how this tool is used. More details on the tool can be found at. In the January 2015 edition of OSFY, I had written about the tool grokit. However, I would like to use a specific example to show how FFmpeg works. Understandably, FFmpeg is quite complex and it is naïve for the reader to expect or for the author to try to cover it in a single article. It is one of the most popular open source audio/video converter software. According to Wikipedia, FFmpeg is used by application software such as the VLC media player, MPlayer, Xine, HandBrake, Plex, Blender, YouTube and MPC-HC. It can convert arbitrary sample rates and resize videos on-the-fly with a high quality poly-phase filter. This description and complete documentation on FFmpeg can be found at its home page. ∟Fmpeg is a very fast video and audio converter that can also grab content from a live audio or video source. Lets take a look at how concatenation, fading and overlay can be done in video files using FFmpeg. FFmpeg, which is used by application software such as VLC, Mplayer, etc, can be used to great effect when working with sound and video files. Manipulating sound and video files appeals to ones creative instincts.
