When you try to upload a video on Twitter, error “Your media file could not be processed” may be displayed during the processing stage. Twitter lists out the specifications for media files on their support site. If your media file doesn’t fit into their technical specifications, the error appears.
This post tells you how to resolve the problem.
What type of videos does Twitter support?
According to Twitter, your video file needs to match the following specs:
- Minimum resolution: 32 x 32
- Maximum resolution: 1920 x 1200 (and 1200 x 1900)
- Aspect ratios: 1:2.39 – 2.39:1 range (inclusive)
- Maximum frame rate: 40 fps
- Maximum bitrate: 25 Mbps
Twitter currently supports MP4 and MOV video formats on mobile apps. On the web, Twitter supports the MP4 video format with H264 format with AAC audio. Videos up to
512MB can be uploaded. However, you will be prompted to edit videos to 2 minutes and 20 seconds or less in length.
How to Fix “Your media file could not be processed.” on Twitter?
Handbrake is a 3rd party application that converts video from nearly any format to a selection of modern, widely supported codecs. Using Handbrake you can turn or encode any video so that it becomes compliant with Twitter’s specifications.
- Download Handbrake and run it.
- Open the video file in Handbrake.
- In the Save As: field, mention the path and filename for the file you’re going to modify. Leave the default settings and Presets as they are.
Start Encode. The encoded file is now saved to the chosen location. See if you can upload it on Twitter.
You should have noticed an option (checkbox) named
Web Optimized in Handbrake user interface.
Web Optimized option for the MP4 container, if enabled, moves some of the video metadata from the end to the beginning of the final video file. As Handbrake documentation describes, this option is mostly useful for streaming on the internet. As far as the Twitter error is concerned, enabling
Web Optimized setting is optional.
Handbrake Command-line interface (CLI) tool
Handbrake also has a command-line version of the tool if you need to bulk encode media files with the Windows batch file or script. Download HandBrakeCLI and extract the contents to a folder.
Use the following syntax to encode a file:
handbrakecli.exe -i "source_file_name" -o "target_file_name"
The above command will encode with default “Normal” Preset. If you want to encode with with customized bitrate, framerate, and other settings, etc., refer to the (Official) HandBrake Documentation — CLI Options.
That’s it! You should be able to upload the encoded version of the video on Twitter without getting the error “Your media file could not be processed.”
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and has a vast experience in Windows — delivering support for Microsoft's consumer products. He has been a Microsoft MVP (2003-2012) who contributes to various Windows support forums.