{"id":65,"date":"2008-01-27T13:30:40","date_gmt":"2008-01-27T21:30:40","guid":{"rendered":"http:\/\/www.curlybrace.com\/words\/?p=65"},"modified":"2008-04-08T23:00:40","modified_gmt":"2008-04-09T07:00:40","slug":"using-handbrake-to-encode-videos-for-xbox-360-playback","status":"publish","type":"post","link":"https:\/\/www.curlybrace.com\/words\/2008\/01\/using-handbrake-to-encode-videos-for-xbox-360-playback\/","title":{"rendered":"Using Handbrake to Encode Videos for XBox 360 Playback"},"content":{"rendered":"<p>I installed the Microsoft Spring &#8217;07 Update, allowing the XBox 360 to play videos encoded as MPEG-4 Part 2 (xvid\/divx) and H.264\/x264.  After fumbling around for countless hours, I found <a href=\"http:\/\/handbrake.fr\/\">handbrake<\/a> settings that work with the XBox 360.<\/p>\n<p>Since all the terms thrown around become confusing (H.264, x264, xvid, divx, and MPEG-4), here is a simple breakdown:<\/p>\n<blockquote><p><b>MPEG-4 Part 2<\/b> is commonly referred to as <b>xvid<\/b> or <b>divx<\/b>, however, xvid and divx are simply codecs which implement this standard (<a href=\"http:\/\/en.wikipedia.org\/wiki\/MPEG-4_Part_2\">reference<\/a>).<\/p>\n<p><b>MPEG-4 Part 10<\/b> is commonly referred to as <b>H.264<\/b>, and x264, QuickTime, and Nero Digital are some codecs which implement it (<a href=\"http:\/\/en.wikipedia.org\/wiki\/MPEG-4_Part_10\">reference<\/a>).<\/p><\/blockquote>\n<p>According to the <a href=\"http:\/\/blogs.msdn.com\/xboxteam\/archive\/2007\/05\/09\/spring-07-video-playback-faq.aspx\">Spring &#8217;07 Update Playback FAQ<\/a> and the <a href=\"http:\/\/blogs.msdn.com\/xboxteam\/archive\/2007\/11\/30\/december-2007-video-playback-faq.aspx\">December 2007 Video Playback FAQ<\/a>, the following configurations are supported:<\/p>\n<style>\n   .gr\n   {\n      background-color : #AAAAAA;\n   } \n<\/style>\n<table cellpadding=\"4\">\n<tr class=\"gr\">\n<th><\/th>\n<th>Extensions<\/th>\n<th>Containers<\/th>\n<th>Video<\/th>\n<th>Audio<\/th>\n<\/tr>\n<tr style=\"background-color: #EEEEEE;\">\n<th align=\"right\" class=\"gr\">H.264<\/th>\n<td>.mp4, .m4v,<br \/> .mp4v, .mov<\/td>\n<td>MPEG-4, QuickTime<\/td>\n<td>10 Mbps @<br \/> 1920&#215;1080<br \/>30fps<\/td>\n<td>2ch AAC (LC)<\/td>\n<\/tr>\n<tr>\n<th align=\"right\" class=\"gr\">MPEG-4<\/th>\n<td>.mp4, .m4v,<br \/>.mp4v, .mov<\/td>\n<td>MPEG-4, QuickTime<\/td>\n<td>5 Mbps @<br \/> 1280&#215;720<br \/>30fps<\/td>\n<td>2ch AAC (LC)<\/td>\n<\/tr>\n<tr style=\"background-color: #EEEEEE;\">\n<th align=\"right\" class=\"gr\">WMV<\/th>\n<td>.wmv<\/td>\n<td>asf<\/td>\n<td>15 Mbps @<br \/>1920&#215;1080<br \/>30fps<\/td>\n<td>WMA7\/8, WMA 9 Pro (2ch, 5.1),<br \/>WMA lossless<\/td>\n<\/tr>\n<tr>\n<th align=\"right\" class=\"gr\">AVI<\/th>\n<td>.avi, .divx<\/td>\n<td>avi<\/td>\n<td>5 Mbps@<br \/>280&#215;720<br \/>30fps<\/td>\n<td>Dolby\u00ae Digital 2ch, 5.1ch, MP3<\/td>\n<\/tr>\n<\/table>\n<p>In other words, the XBox 360 will play:<\/p>\n<ul>\n<li>x264 + AAC audio inside mp4<\/li>\n<li>xvid + AAC audio inside mp4<\/li>\n<li>xvid + AC-3 audio inside avi<\/li>\n<\/ul>\n<p>But The XBox 360 <em>will not<\/em> play:<\/p>\n<ul>\n<li>x264 + AC-3 audio inside anything<\/li>\n<\/ul>\n<p>Additionally, the FAQ seems to indicate that the XBox 360 will play files in any of these containers:  .mp4, .m4v, .mp4v, .mov, .wmv.  However, at least with uShare, I&#8217;ve found that the XBox will only even attempt to play files ending in .m4p and .wmv.  The XBox does seem to be flexible about the actual content of the file, however, for example, I have renamed some <code>.avi<\/code> files with the <code>.m4p<\/code> extension, and it happily plays them.  This may be entirely due to the way that the XBox 360 interprets uShare&#8217;s MIME types.<\/p>\n<p>The command line I use under Linux to encode videos for x264 with AAC audio is:<\/p>\n<blockquote><p><code>\/usr\/bin\/HandBrakeCLI -i DVD_NAME.ISO -o DVD_NAME_x264_aac.mp4 -p --aencoder aac --arate 48 --encoder x264 --markers --format mp4 --two-pass --turbo<\/code><\/p><\/blockquote>\n<p>(note that the <code>-p<\/code> switch indicates that Handbrake should use encode the file anamorphically)<\/p>\n<p>To encode using the xvid codec with AC-3 audio, I run:<\/p>\n<blockquote><p><code>\/usr\/bin\/HandBrakeCLI -i DVD_NAME.ISO -o DVD_NAME_xvid_ac3.avi -p --aencoder ac3 --encoder xvid --markers --format avi --two-pass<\/code><\/p><\/blockquote>\n<p>(I append the encoding details to the end of the filename so that I can keep track of what does and does not work!)<\/p>\n<p>So far, my results with AC-3 playback have been disappointing.  It appears that <a href=\"http:\/\/forum.handbrake.fr\/viewtopic.php?f=7&#038;t=4229\">this is due to the fact that AVI isn&#8217;t intended for streaming playback, and Handbrake&#8217;s AVI muxer is rudimentary<\/a>.  MeGUI is suggested for better AVI output.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I installed the Microsoft Spring &#8217;07 Update, allowing the XBox 360 to play videos encoded as MPEG-4 Part 2 (xvid\/divx) and H.264\/x264. After fumbling around for countless hours, I found handbrake settings that work with the XBox 360. Since all &hellip; <a href=\"https:\/\/www.curlybrace.com\/words\/2008\/01\/using-handbrake-to-encode-videos-for-xbox-360-playback\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[29,31,28,33,27,34,26,25,32,24,30],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-technology","tag-codecs","tag-divx","tag-encoding-video","tag-h264","tag-handbrake","tag-mpeg","tag-streaming-media","tag-ushare","tag-x264","tag-xbox-360","tag-xvid"],"_links":{"self":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":0,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}