Following the growing popularity of video on Facebook and YouTube, many people are now turning to WhatsApp to convert their videos into the best possible video format for users on the WhatsApp platform. There is really simple way to convert your video to WhatsApp format using FFmpeg. FFmpeg is a free program that allows you to convert any type of video into a file that is compatible with WhatsApp.

The Ultimate Guide On How to Convert Videos to WhatsApp Video Format with FFmpeg

The Ultimate Guide On How to Convert Videos to WhatsApp Video Format with FFmpeg

If you don’t know already, FFmpeg is one of the best multimedia framework which is used to encode, decode, transcode, mux, demux, record, stream, filter, and play any type of media files. It is completely free, open source and cross-platform multimedia framework, which supports Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc.

Of course, there are many video converters freely available on the Internet to convert videos to WhatsApp supported format. However, converting videos to WhatsApp supported format with FFmpeg is very easy and fast in my opinion.

Convert Videos To WhatsApp Video Format With FFmpeg

I tried different container format (video codec + audio codec) videos with various resolutions as listed below.

  • MP4 MPEG4 480×360, 640×360
  • MP4 MPEG4 720P
  • MP4 MPEG4 + AAC
  • MP4 H264 + AAC
  • Matroska MPEG4 + AAC
  • AVI H264 + AAC
  • AVI 720P XVID
  • AVI 720P MPEG4
  • AVI 480×360 XVID
  • AVI 360P XVID
  • AVI 320×240 AVC

The following container format worked just fine.

  • MP4 (H264 + aac)

If you want to share a video to your contacts or set it as your WhatsApp status, convert it to the above container format.

Make sure you have installed FFmpeg on your Linux system. If haven’t installed it yet, refer the following guide.

After installing FFmpeg, go to the location where the videos are stored and run the following command to convert videos to WhatsApp format:

$ ffmpeg -i input.mkv -vcodec libx264 -acodec aac output.mp4

That’s it. Now you can able to share the resulting output video via WhatsApp without any issues.

How to Convert Videos to WhatsApp Video Format with FFmpeg

How to Convert Videos to WhatsApp Video Format with FFmpeg


  • -i input.mkv – the input file to be converted to WhatsApp video format.
  • -vcodec libx264 – supported video codec format by WhatsApp.
  • -acodec aac – supported audio codec format by WhatsApp.
  • output.mp4 – the output file.

You can check the output media file details using FFmpeg.

$ ffmpeg -i output.mp4
Mediainfo with FFmpeg

Mediainfo with FFmpeg

I converted and shared many videos with this format in WhatsApp. All of them worked as expected. And also I could share videos with 1280×720 resolution. I guess any video resolution should work with this setting. If you have time and patience, you can check more combinations with different audio/video codecs, bit rate, resolution, aspect ratio etc., and choose which one works and which one does not.

WhatsApp has also reduced the status video time limit from 30 seconds to 15 seconds. You can no longer send videos to WhatsApp Status if they are longer than 16 seconds:. Even if you try to send videos longer than 16 seconds, the video will be trimmed to 15 seconds. This step is taken after the increasing WhatsApp usage due to the COVID-19 lockdown.

In a nutshell, if you want to share videos via WhatsApp, just make sure the video is;

  • converted to WhatsApp supported video format as shown above,
  • trimmed to 15 seconds play time,
  • smaller than 16 MB in size.

More FFmpeg command examples are given in the following link.

Hope this helps.

About the author

Hassan Latif

A Microsoft Certified Trainer, a hobby blogger and geek

Leave a Comment