
Run your FFmpeg workflow in the cloud
When you want to join two or more videos in to a single video you have a couple of different options. The demuxer method is faster but have stricter requirements to the input. The concat filter is slower but can merge videos with different codeces, framerates etc.
Join two video with the same codec 🔗To avoid reencoding the files we can do this. If you want to merge two files that have the same properties (same codec, time base, etc) you can do it without re-encoding the inputs.
To burn the frame number into your video:
ffmpeg -i input.mp4 -vf "drawtext=fontfile=Helvetica.ttf: text='%{frame_num}': start_number=1: x=(w-tw-lh): y=h-(2*lh): fontcolor=black: fontsize=20: box=1: boxcolor=white: boxborderw=5" -c:a copy output.mp4 If you prefer that the numbering starts at 0 instead of 1 you can change the start_number parameter to 0: ffmpeg -i input.mp4 -vf "drawtext=fontfile=Helvetica.ttf: text='%{frame_num}': start_number=0: x=(w-tw-lh): y=h-(2*lh): fontcolor=black: fontsize=20: box=1: boxcolor=white: boxborderw=5" -c:a copy output.mp4
If you want to extract individual frames from a video, you can do so with FFmpeg. Bellow is a collection of commands that will help you with common problems related to extrating frames from a video.
In the example input video I have added the frame number to each frame in the video to make it clear which frames are actually extracted. You can learn how to add the frame number to a video here.
How do I convert MOV to MP4? 🔗You can convert a MOV file to an MP4 file by using the FFmpeg command-line tool like this:
ffmpeg -i input.mov -qscale 0 output.mp4 -qscale 0 will maintain the best possible video quality. If you prefer a smaller file and don’t mind the lower quality, you can use a qscale value in the range [1, 31].
How do I convert MKV to MP4? 🔗You can convert an MKV file to an MP4 file by using the FFmpeg command-line tool like this:
ffmpeg -i input.mkv -codec copy output.mp4 Since you just want to change the container format, remember to use -codec copy to prevent FFmpeg from decoding and encoding the stream again and thereby losing quality.
If you don’t already have FFmpeg installed, you can get it at: https://www.