Xbox 360 Video Compatibility FFmpeg Guide

This article provides a comprehensive overview of the container, video codec, and audio codec constraints required to play videos on the Xbox 360 console. It details the exact technical limitations of the console’s media player and provides ready-to-use FFmpeg commands to successfully encode compatible files.

Supported Video Containers and Codecs

To play video files on an Xbox 360, your files must adhere strictly to one of three primary configurations: MP4 (H.264), WMV (VC-1), or AVI (MPEG-4 Part 2).

1. MP4 / M4V (H.264)

This is the most common and recommended format for Xbox 360 playback due to its high efficiency and modern compatibility. * Video Codec: H.264 / MPEG-4 AVC * Profiles: Baseline, Main, or High Profiles (up to Level 4.1) * Maximum Resolution: 1920 × 1080 (1080p) * Maximum Framerate: 30 frames per second (fps) * Maximum Bitrate: 10 Mbps * Audio Codec: AAC-LC (Low Complexity), 2-channel stereo (maximum 48 kHz)

2. WMV (Windows Media Video)

As a native Microsoft console, the Xbox 360 has excellent support for WMV files. * Video Codec: Windows Media Video 9 (WMV3) or VC-1 (Simple, Main, or Advanced Profiles) * Maximum Resolution: 1920 × 1080 (1080p) * Maximum Framerate: 30 frames per second (fps) * Maximum Bitrate: 15 Mbps * Audio Codec: Windows Media Audio (WMA) 9 Standard, WMA Pro (stereo or 5.1 multi-channel)

3. AVI (MPEG-4 Part 2)

The Xbox 360 supports standard definition and high definition AVI files, but with strict encoding limitations. * Video Codec: MPEG-4 Part 2 (Simple or Advanced Simple Profile) * Constraints: Quarter Pixel (QPel) and Global Motion Compensation (GMC) must be disabled. * Maximum Resolution: 1280 × 720 (720p) * Maximum Framerate: 30 frames per second (fps) * Maximum Bitrate: 5 Mbps * Audio Codec: MP3 (MPEG-1 Audio Layer 3) or AC-3 (Dolby Digital) stereo


Critical Constraints to Avoid Playback Errors

When encoding videos for the Xbox 360, violating any of the following constraints will result in a playback error: * Audio Channels: AAC and MP3 audio must be restricted to 2-channel stereo. The Xbox 360 will not play back MP4 files with 5.1 AAC audio. * Pixel Format: The video must use the yuv420p pixel format. 10-bit color depths (YUV 4:2:2 or YUV 4:4:4) are not supported. * Framerate: Interlaced video and framerates exceeding 30 fps (such as 60 fps) are not supported.


FFmpeg Encoding Commands

Use the following FFmpeg commands to convert your videos into fully compatible Xbox 360 formats.

This command transcodes a video into a highly compatible H.264 MP4 file with stereo AAC audio:

ffmpeg -i input.mkv -c:v libx264 -profile:v high -level 4.1 -pix_fmt yuv420p -b:v 8M -maxrate 10M -bufsize 10M -vf "scale=w=min(iw\,1920):h=-2,fps=30" -c:a aac -ac 2 -ar 48000 -b:a 192k output.mp4

Alternative: MPEG-4 AVI (720p)

This command transcodes a video into a compatible AVI file, ensuring QPel and GMC are turned off:

ffmpeg -i input.mkv -c:v mpeg4 -vtag XVID -qscale:v 4 -gmc 0 -qpel 0 -vf "scale=w=min(iw\,1280):h=-2,fps=30" -c:a libmp3lame -ac 2 -ar 44100 -b:a 192k output.avi