FileDial › Guides › Video and subtitles

How to compress a video for X (Twitter) on a Mac

By Himanshu Ranjan · Updated 16 November 2026

X's documentation allows post videos up to 20 minutes and 8 GB on standard accounts, but videos in DMs stop at 140 seconds and 512 MB, and X recommends H.264 video with AAC audio at 1280 by 720. On a Mac, FileDial's Compress › Compress to 720p gets a video close to that offline, and QuickTime Player's File > Export As > 720p is a free option.

X's limits, from X's own documentation

X's developer documentation for media uploads lists the size and duration limits by account type, and states that the caps for video on a post match the X app. Many guides still quote 140 seconds and 512 MB as the limit for any X video. In X's current documentation that is the limit for a video sent in a direct message on a standard account.

If an upload is rejected, check which of these limits applies to you. Limits have changed before, and X's apps may show different behaviour while a change rolls out.

  • Video in a post, standard account: 0.5 seconds to 20 minutes, up to 8 GB.
  • Video in a post, X Premium or verified: up to 125 minutes and 16 GB.
  • Video in a DM, standard account: 0.5 to 140 seconds, up to 512 MB.
  • Video in a DM, X Premium or verified: up to 10 minutes and 1 GB.

The format X expects

Size is rarely the only reason an upload fails. X's best practices page lists requirements that trip up phone and game captures more often than file size does:

  • Video codec: H.264 High Profile is recommended. HEVC files, which iPhones record when set to High Efficiency, are better converted first.
  • Audio: AAC Low Complexity, mono or stereo. High-Efficiency AAC and 5.1 surround are not supported.
  • Frame rate: 60 FPS or less, with 30 or 60 recommended. A 120 FPS game or slow-motion capture needs converting.
  • Shape: an aspect ratio between 1:3 and 3:1, so both 16:9 and 9:16 are fine.
  • Recommended sizes: 1280 by 720 for landscape, 720 by 1280 for portrait and 720 by 720 for square. X notes that subscribed users can upload 1080p and get 1080p playback.
  • Recommended bitrate: at least 5,000 kbps for video and 128 kbps for audio.

Why compress at all

With an 8 GB ceiling for posts, compression is not always about the cap. A 4K screen recording or a long gameplay capture can take a long time to upload on a slow connection or over a phone hotspot, and X re-encodes what you send anyway. Since standard accounts are recommended 720p, sending a 4K master uses upload time without any visible gain in the feed.

Direct messages are the strict case. A clip over 140 seconds or 512 MB will not go through a DM on a standard account, so it needs trimming, compressing or both.

With FileDial on a Mac

Select the video in Finder, open the dial and pick a Compress tool. Each one saves a new copy beside the original and shows the size before and after on the result card. As a measured example, a 366 MB 1080p video compressed to 720p in 23 seconds on a MacBook and came out at 117 MB. Everything runs on the Mac, so a private clip is never uploaded to a web compressor before it reaches X.

  • Compress › Compress to 720p: the closest match to X's recommended 1280 by 720 for standard accounts.
  • Compress › Compress to 1080p: for Premium or subscribed accounts that get 1080p playback.
  • Compress › Compress under 50 MB or Compress › Compress under 25 MB: for DMs, slow connections or sharing the same file elsewhere.
  • Compress › Compress to size…: when you want a specific target, for example comfortably under 512 MB for a DM.
  • Cut › Trim…: bring a clip under 140 seconds for a DM, and trim before compressing so no bits are spent on footage you cut.
  • Convert › Convert to MP4: when you have a file in another container that X will not take.

Free options built into macOS

QuickTime Player can do most of this without extra software. Open the video and choose File > Export As, then 720p. Apple's guide lists that preset as H.264, up to 1280 by 720, which lines up with X's recommendation. If you choose 1080p instead, Apple's guide says the Format menu offers Greater Compatibility for H.264 and Smaller File Size for HEVC, so pick Greater Compatibility for X.

QuickTime has limits: you cannot type a target size, it saves a .mov file, and presets larger than the original are dimmed. For a quick 720p export it is often enough. For a size target, a batch of files or a DM limit, a tool with fixed size targets saves trial and error. QuickTime's Edit > Trim also handles cutting a clip down to 140 seconds.

Mistakes to avoid

  • Choosing HEVC to save space. It makes a smaller file, but X recommends H.264, so Convert › Convert to HEVC (smaller) is the wrong tool for this job.
  • Compressing an already compressed copy. Go back to the original recording rather than re-compressing a file that has been through X, Discord or a messaging app.
  • Aiming exactly at a limit. Leave a margin below 512 MB or 140 seconds so a rounding difference does not get the upload rejected.
  • Uploading high frame rate captures unchanged. Anything over 60 FPS fails X's requirements, even if the file is small.

Questions

What is the maximum video length on X for a free account?

X's developer documentation lists 20 minutes and 8 GB for a video in a post on a standard account, and states that this matches the X app. Videos sent in a direct message are limited to 140 seconds and 512 MB. X Premium or verified accounts get up to 125 minutes and 16 GB on posts.

What is the best format for uploading video to X?

An MP4 file with H.264 High Profile video and AAC Low Complexity audio, at 30 or 60 frames per second. X recommends 1280 by 720 for landscape and 720 by 1280 for portrait, with at least 5,000 kbps video and 128 kbps audio. Avoid HEVC, High-Efficiency AAC and frame rates above 60.

Why does X say my video can't be processed when it is small enough?

Usually the format, not the size. Common causes in X's requirements are a frame rate above 60, HEVC video, High-Efficiency AAC or surround audio, or an aspect ratio outside 1:3 to 3:1. Re-export the clip as H.264 at 720p, for example with QuickTime's 720p preset or FileDial's Compress › Compress to 720p, and try again.

Does FileDial upload my video to compress it?

No. Every FileDial tool runs on your Mac and works with Wi-Fi off. The compressed video is saved as a new file beside the original, which is never changed, and every result has Undo. That matters for clips showing private chats, unreleased work or other people, which a web compressor would need uploaded first.

Sources

  1. X Developer Platform: Media best practices
  2. X Enterprise API: Media best practices
  3. Apple Support: Export movies in QuickTime Player on Mac

Related

Try FileDial free for 1 daySee the dialNo card, no account. Then $6.99 once, for 2 Macs. Runs offline on macOS 14+ (Apple silicon).