
It is common to use FFmpeg to transcode from one codec to another. In addition to these two, FFmpeg supports many other popular multimedia file formats, including MXF, AVI, WAV, M4A, JPG, PNG etc.Ĭodec conversion ffmpeg -y -i input.mkv -vcodec libx264 -acodec flac output.mkv y denotes that we want to overwrite output.mp4 if it already exists. In this simplest example, FFmpeg produces MP4 output from MKV input. "concat=n=3:v=1:a=1" Better for distributionĪnd with this I can have a call to action in the final slide, as well as in the video description because there is no guarantee that people actually read the video descriptions.Format conversion ffmpeg -y -i input.mkv output.mp4 If I wanted more videos I would add them as -i anothervid.mp4 and I would have to change the filter complex definitionĮ.g. I can join any number of videos together, but in this case I’m just combining two: ffmpeg -i video.mp4 -i promo-image.mp4 i anullsrc=channel_layout=stereo:sample_rate=44100


I found that when concatenating the videos, I needed to add a silent audio track otherwise the videos would not concatenate, so the following is the command I used to create my post roll video. It doesn’t matter what size the image was previously, the video will be 1920 x 1080 pixels. I will want to control the size of the video so that when I join them they are the same dimensions, I can do that in a single command. This will create a video called ‘promo-image.mp4’ with a duration of 5 seconds. Remember when you type it in, all lines will be on a single line. I can create a 5 second video from a png as follows: I could create a video for that, but to make it easier to change I’m going to use a single image that displays for a few seconds. Ideally I want a post roll video which links to my site. I now know how to create videos for various sites. Previous posts have covered ffmpeg for helping with video marketing.

Having created a video, I want a call to action image that plays after the video is complete, and I want this to be standardised for a lot of my videos.
