Fix Can't Upload Long Video on X
In this article
If X won't let you upload a long video, it's usually because the file exceeds X's 512 MB size limit or the video is longer than the 2-hour maximum duration for standard accounts. To fix it, compress the video, shorten it, or convert it to a supported format like MP4 with H.264 codec and AAC audio.
Why X Limits Video Uploads
X (formerly Twitter) imposes upload limits to manage server load and ensure smooth playback across devices. The platform processes millions of videos daily, so restricting file size and duration helps maintain performance. For most users, the limits are:
- File size: 512 MB for standard uploads via the web or app.
- Duration: 2 hours for most accounts, though some media partners may have longer limits.
- Resolution: Up to 1920x1080 (1080p) is recommended; higher resolutions may be downscaled.
These limits apply to videos posted as tweets, not to videos in direct messages (which have a separate 512 MB cap as well). If your video is larger or longer, you'll need to adjust it before uploading.
How X Determines Video Eligibility
When you upload a video, X checks several things in the background:
- File extension: MP4 and MOV are accepted; other formats like AVI or MKV are not.
- Codec: H.264 video and AAC audio are required for compatibility.
- Metadata: The video must have a valid duration and frame rate; corrupted metadata can cause upload failures.
- Account status: New or flagged accounts may face stricter limits temporarily.
If your video passes these checks, it uploads and processes. If it fails, you'll see an error message—often “Video could not be processed” or “File too large.”
Step-by-Step Fixes for Common Upload Errors
Try these fixes in order, as each addresses a different cause.
- Compress the video to under 512 MB. Use a free tool like HandBrake (desktop) or an online compressor. Reduce the bitrate to around 5-8 Mbps for 1080p, which typically brings a 10-minute video under 500 MB.
- Shorten the video. If your video is longer than 2 hours, trim it with a video editor. X's limit is strict—even a 2-hour-and-1-minute video will fail.
- Convert to MP4 with H.264. Use a converter like FFmpeg or a free app to re-encode the video. For example, run:
ffmpeg -i input.mov -vcodec h264 -acodec aac output.mp4. - Check your internet connection. A slow or unstable connection can cause timeouts. Try uploading on a faster Wi-Fi or cellular network.
- Clear cache or use a different browser/app. Sometimes the uploader glitches. Log out, clear cache, or try X's mobile app instead of the web.
- Wait and retry. X occasionally has server issues. Wait 15-30 minutes and try again.
How to Compress a Video Without Losing Quality
Compression reduces file size by lowering bitrate, which can affect quality if overdone. To keep quality decent:
- Use a bitrate of 8 Mbps for 1080p, 5 Mbps for 720p.
- Keep the resolution the same; don't upscale.
- Use a constant frame rate (e.g., 30 fps) rather than variable.
- Test a 30-second clip first to check quality.
HandBrake's “Fast 1080p30” preset is a good starting point. It produces an MP4 with H.264 and AAC, usually well under 512 MB for a short clip.
What About X Premium? Does It Raise Limits?
X Premium (formerly Twitter Blue) does not increase the video upload limit for regular tweets. The 512 MB and 2-hour limits apply to all standard accounts. However, X Premium subscribers can upload longer videos to their articles feature (if available in their region), but that's separate from normal tweets. For most users, the limits are the same regardless of subscription status.
Alternatives: If You Must Share a Longer Video
If your video is simply too long or large to fit X's limits, consider these options:
- Post a clip on X and link to the full video on YouTube, Vimeo, or your own site.
- Use X's built-in “Broadcast” feature for live streams, which allows longer sessions.
- Split the video into parts and post as a thread.
- Upload to a cloud service and share the link in your tweet.
These workarounds are common among creators who need to share full-length content without hitting X's limits.
Frequently Asked Questions
Why does X say my video is too long when it's under 2 hours?
Check the file size—it might exceed 512 MB even if the duration is fine. Also, ensure the video is in MP4 or MOV format. If you're using a screen recording with a high bitrate, it can easily exceed 512 MB in just a few minutes.
Can I upload a 4K video to X?
Yes, but X will likely downscale it to 1080p. The file size limit still applies, so a 4K video might be too large. Compress it to 1080p before uploading to avoid issues.
Does the video upload limit depend on my follower count?
No. The limits are the same for all accounts, regardless of followers or verification status. Only media partners (like news outlets) may have special arrangements, but that's not something the average user can access.
What does “Video could not be processed” mean?
This usually means the video file is corrupted, uses an unsupported codec, or has unusual metadata. Re-encode the video with H.264 and AAC, and try again. If it still fails, try a different file.
Can I upload a video longer than 2 hours if I use the API?
No. The API enforces the same limits as the web and app. There's no official way to bypass the 2-hour cap for standard uploads.
Why does my upload get stuck at 99%?
This is often a network issue. Try pausing other downloads, switching to a wired connection, or restarting the upload. If it persists, clear your browser cache or use the X app.