Microsoft Xbox 360

From FUPPES

Jump to: navigation, search

Contents

Basic Setup

  1. add some shared dirs
  2. enable the Xbox 360 device settings in the fuppes.cfg by setting the 'enabled' attribute to 'true'
  3. enable the Xbox 360 virtual folder layout in the vfolder.cfg
    You can get the default vfolder.cfg from: https://fuppes.svn.sourceforge.net/svnroot/fuppes/trunk/vfolder.cfg; merely copy it to the correct location.
  4. start fuppes
  5. rebuild the database (hit 'r' in the fuppes console)
  6. rebuild the virtual container layout after database rebuild finished (hit 'v' in the fuppes console)
  7. note: If your collection has many WMA files you may want to build fuppies against taglib-wma. This will allow your music collection to be sorted properly (such as by Artist, Album, Genre, etc). To do this visit this thread. ---There should be a wiki entry properly describing why you should enable the various configure options---

override UPnP object types:

  • image files must have the upnp type IMAGE_ITEM_PHOTO
  • video files must have the upnp type VIDEO_ITEM
  • audio files must have the upnp type AUDIO_ITEM_MUSIC_TRACK

fuppes.cfg

<device name="Xbox 360" virtual="Xbox 360" enabled="true">
  <user_agent>Xbox/2.0.\d+.\d+ UPnP/1.0 Xbox/2.0.\d+.\d+</user_agent>
  <user_agent>Xenon</user_agent>
  <xbox360>true</xbox360>
  <show_empty_resolution>true</show_empty_resolution>
  <description_values>
    <friendly_name>%s %v : 1 : Windows Media Connect</friendly_name>
    <model_name>Windows Media Connect compatible (%s)</model_name>
    <model_number>2.0</model_number>
  </description_values>
  <file_settings>
    <file ext="mp3"><type>AUDIO_ITEM_MUSIC_TRACK</type></file>
    <file ext="jpg"><type>IMAGE_ITEM_PHOTO</type></file>
  </file_settings>
</device>

vfolder.cfg

You can read how to setup XBox 360 vfolders in more detail.

Replace

<vfolder name="Folders" id="21" /> 

With

<vfolder name="Folders" id="21"> 
  <folders filter="contains(videoItem)" /> 
</vfolder>

XBox 360 Officially Supported Video Formats and Codecs

As of the 2007 Fall Update (which, among other things, added DivX/XviD support in AVI containers), the following video formats are supported. Note that these formats are what Microsoft claims to be "XBox 360 compatible." Your mileage may vary.

AVI

  • File extensions: .avi, .divx
  • Containers: AVI
  • Video profiles: MPEG-4 Part 2 (Simple Profile and Advanced Simple Profile)
  • Video bit rate: 5 Mbps with resolutions of 1280 × 720 at 30 fps.
  • Audio profiles: Dolby® Digital (2 channel and 5.1 channel), MP3
  • Audio max bit rate: No restrictions.

H.264

  • File extensions: .mp4, .m4v, mp4v, .mov, .avi
  • Containers: MPEG-4, QuickTime
  • Video profiles: Baseline, main, and high (up to level 4.1)
  • Video bit rate: 10 Mbps with resolutions of 1920 × 1080 at 30 fps.
  • Audio profiles: AAC, 2-channel, Low Complexity
  • Audio max bit rate: No restrictions.

MPEG-4

  • File extensions: .mp4, .m4v, .mp4v, .mov, .avi
  • Containers: MPEG-4, QuickTime
  • Video profiles: MPEG-4 Part 2 (Simple Profile and Advanced Simple Profile)
  • Video bit rate: 5 Mbps with resolutions of 1280 × 720 at 30 fps.
  • Audio profiles: AAC, 2-channel, Low Complexity
  • Audio max bit rate: No restrictions.

WMV

  • File extensions: .wmv
  • Containers: ASF
  • Video profiles: WMV7 (WMV1), WMV8 (WMV2), WMV9 (WMV3), VC-1 (WVC1 or WMVA) in simple, main, and advanced up to level 3
  • Video bit rate: 15 Mbps with resolutions of 1920 × 1080 at 30 fps.
  • Audio profiles: WMA7/8, WMA9 Pro (stereo and 5.1), WMA Lossless
  • Audio max bit rate: No restrictions.

Transcoding Video on-the-fly

This is an example showing you how to Transcode files on-the-fly to the XBox 360 through fuppes provided by Canute (On 16 November 2007). It was originally submitted to work around the avi problem that was filed in #The Fall Update

   <device name="Xbox 360" virtual="Xbox 360" enabled="true">
       <user_agent>Xbox/2.0.\d+.\d+ UPnP/1.0 Xbox/2.0.\d+.\d+</user_agent>
       <user_agent>Xenon</user_agent>
       <xbox360>true</xbox360>
       <file_settings>
           <file ext="mp3"><type>AUDIO_ITEM_MUSIC_TRACK</type></file>
           <file ext="jpg"><type>IMAGE_ITEM_PHOTO</type></file>
           <file ext="avi">
             <type>VIDEO_ITEM</type>
             <mime_type>video/x-msvideo</mime_type>
             <transcode enabled="true">         
               <transcoder>ffmpeg</transcoder>
               <ext>wmv</ext>
               <mime_type>video/x-ms-wmv</mime_type>         
               <video_codec>wmv2</video_codec>
               <audio_codec>wmav1</audio_codec>
               <video_bitrate>2400000</video_bitrate>
               <audio_bitrate>128000</audio_bitrate>
             </transcode>
           </file>
       </file_settings>
   </device>

It is here as a rough 'do-by-example' guide on how to transcode to the XBox 360. (Better Instructions are required)

Updates

This is a list of all of the XBox updates that dramatically effect the operation (and interaction) with fuppes.

The Fall Update

Transcoding of avi files is no longer required, you just have to set the mime type of avi files to 'video/avi' or, if that fails, 'video/x-ms-wmv' (yes, pretend that your .avi is a .wmv and the XBox accepts that for some strange reason). Essentially you should add the following snippet to the XBox360 device <file_settings> in the fuppes.cfg:

       <file_settings>
         <file ext="mp3"><type>AUDIO_ITEM_MUSIC_TRACK</type></file>
         <file ext="jpg"><type>IMAGE_ITEM_PHOTO</type></file>
         <file ext="avi"><type>VIDEO_ITEM</type>
           <mime_type>video/avi</mime_type>
         </file>
       </file_settings>

(Credit to Thunder)

Personal tools