User:Ned Scott/Sandbox: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
XBMC for iOS specific Frequently Asked Questions and Answers. ''Don't forget to check out the '''[http://forum.xbmc.org/forumdisplay.php?f=137 iOS Specific Support forum].'''''
{{frodo updated}}{{:Adding videos to the library/Contents}}
{{#lst:Adding videos to the library/Naming files|naming files}}


=General FAQ (all devices)=
The TV Show lookup scraper relies on the following naming conventions in order to work as intended.
{{:User:Ned Scott/Sandbox2|1=Install|2=Update
| BGcolor=
| Question= Installing and updating XBMC for iOS
| Answer=
*'''[[HOW-TO:Install XBMC on Apple TV 2|Install XBMC on Apple TV 2 (black)]]'''   (see [[#ATV2_requirements|requirements]])


*'''[[HOW-TO:Install XBMC on iPad/iPhone/iPod touch|Install XBMC on iPad, iPhone, iPod touch]]'''   (see [[#iDevice_requirements|requirements]])
== Directory structure and file names ==
}}
[[File:Library.videos.tvshowsfanart.WSCR.jpg|right|400px]]
{{:User:Ned Scott/Sandbox2|1=SSH
XBMC needs a TV show folder with just the TV show name and then it needs file names that contain both episode numbers and season numbers (optional, see below). There can be season/year/whatever folders between the TV show folder and the episode files, but XBMC will not use these to figure out what the seasons are. While XBMC and scrapers can sometimes be forgiving of extra data in the file name, it's best to keep it simple and avoid extra text outside of the examples below (such as group names, resolution, etc). Advanced users can tweak the matching patterns that XBMC uses for this with regex and [[advancedsettings.xml#.3Ctvshowmatching.3E|these advancedsettings.xml settings]].
| BGcolor= WhiteSmoke
| Question= SSH
| Answer=
*[[w:Secure Shell|Secure Shell (SSH)]] is used to send remote commands to the ATV2. You will need this for many XBMC related tasks detailed on this page. For SSH access you can use [http://www.chiark.greenend.org.uk/~sgtatham/putty/ putty] or [http://www.bitvise.com/tunnelier.html Tunnelier] on Windows, Terminal.app in Mac OS X, or any standard terminal/shell in Linux.
*To SSH into an iOS device open your SSH application and type in:
:<pre>ssh [email protected]</pre>
*For most things you can and should use "mobile" as the user, as shown above. For some tasks, such as upgrading XBMC itself, you will need to replace "mobile" with "root".
*The default password (for "mobile" or "root") will be ''alpine''
}}
{{:User:Ned Scott/Sandbox2|1=Release_version|2=Version
| BGcolor=
| Question= XBMC for iOS version
| Answer=
*The current XBMC for iOS version is v11 (Eden) Release Candidate 2. This is the same code that all of the other platforms (Linux, Mac, Windows) are using ([https://github.com/xbmc/xbmc/commits changelog]). These are public test builds that contain many new features, but may not be completely stable. A stable version of XBMC for iOS will come with the final release of XBMC 11.0 "Eden" ([http://trac.xbmc.org/roadmap roadmap]).
}}
{{:User:Ned Scott/Sandbox2|1=Current_build|2=XBMC_Version
| BGcolor= WhiteSmoke
| Question= What nightly build/beta/version of XBMC am I running?
| Answer=
*XBMC main menu > System > Lower submenu > System info. '''Note the build date.'''
}}
{{:User:Ned Scott/Sandbox2|1=Formats
| BGcolor=
| Question= Formats and resolutions iOS devices can playback
| Answer=
*XBMC on iOS can playback all formats supported by XMBC in standard definition. Due to technical limitations only H.264 (up to High Profile) encoded videos are supported for high definition. The iPad 2 and iPhone 4S are the only exceptions to this and will play ''some'' other HD codecs (means anything with 720p resolution and above) due to the more powerful CPU inside.
}}
{{:User:Ned Scott/Sandbox2|1=Media
| BGcolor= WhiteSmoke
| Question= Accessing media
| Answer=
:''See also: '''[[Adding videos to the library]]'''''
*You'll want to connect to media that's being shared from a computer, HTPC, or NAS device on your local network, especially with the ATV2 since it only has 8 GB of space. iPad and other iDevices can store files locally, and the iPad specifically can also use the Apple Camera Kit to use USB drive and SD cards. Guides for these will be arriving shortly, until then try searching [http://forum.xbmc.org/forumdisplay.php?f=137 the forums] or Youtube.


*This [http://www.youtube.com/watch?v=Z4iEl3BqhUI tutorial] describes how to share using SMB on '''Mac OS 10.6''' (Snow Leopard) and below. This is a [http://forum.xbmc.org/showthread.php?t=63123 tutorial] for SMB sharing on '''Windows 7'''. If you're using '''Mac OS 10.7''' (Lion), there are several [http://forum.xbmc.org/showthread.php?t=106659 filesharing options] but you'll likely want to use AFP (unless you run into [http://forum.xbmc.org/showthread.php?t=109723&page=21 stability issues]) because SMB won't work without installing Samba.  WebDAV and FTP are the next best choices.  [[Network Filesystem (NFS)|NFS sharing]] is available for all platforms but it's more complex than the other options. Most NAS devices will use SMB sharing.
;Directory layout example
:{|
|
<pre>
TV Shows
  |----TV Show 1
  |      |----Season #
  |            |--Files
  |----TV Show 2 (year)
  |      |--Files
  |----TV Show 3
  |      |----2008
  |            |--Files
</pre>
|}
[[File:Library.videos.tvshowinfo.WSCR.jpg|right|400px]]
;Default TV show folder naming conventions
*'''(year)''' - can be helpful for some TV Shows such as "Battlestar Galactica", "Doctor Who" and "Knight Rider" which can yield multiple results.
:Name
:Name (year)


:'''''Note:''' Better how-to guides on network sharing will be coming to the wiki someday. Feel free to add any links here to good guides you find.''
===Shows with seasons===
}}
;Default episode file naming conventions
{{:User:Ned Scott/Sandbox2|1=Skins
*'''name''' - can be the TV show name, episode name, something else, or you can exclude the name and only have the season and episode numbers. You can also place the name after the season and episode numbers.
| BGcolor=
*'''ext''' - The file extension, such as .mkv, .avi, .iso, etc.
| Question= Add-ons and skins
*'''Spaces''' and underscores are interchangeable in the examples below.
| Answer=
*'''Periods''' can be used to break up text, but '''they cannot be used''' in between '''episode-number''' and '''episode-names''' that start with a'''number'''. For e.g. name.s01e01.1.0.ext (episode name is one poin zero} so must become name.s01e01_1.0.ext
*XBMC for iOS is a full version of XBMC and will be able to use all non-platform specific add-ons and skins. More feature rich (CPU demanding) skins like AEON MQ 3 might not run smoothly, but most skins should be fine.  
:''name''.s01e01.''ext''
:''name''.s01.e01.''ext''
:''name''.s01_e01.''ext''
:''name'' [s01] [e01].''ext''
:''name''.1x01.''ext''
:''name''.101.''ext''


*Because XBMC is using pre-v11 (Eden) code, only add-ons and skins that have been tested and work will show up in the [[Add-on manager]]. If a specific add-on or skin you want to use doesn't show up then look for a newer in-development version on the forums: [http://forum.xbmc.org/forumdisplay.php?f=67 for Skins], [http://forum.xbmc.org/forumdisplay.php?f=27 for Add-ons].
;Defaults for two-part TV Show Episode will match:
}}
:''name''.s01e01-02.''ext''
{{:User:Ned Scott/Sandbox2|1=FileTransfer|2=Addons|3=Add-ons|4=SFTP
:''name''_[s01]_[e01-02]_.''ext''
| BGcolor= WhiteSmoke
:''name''.1x01.1x02.''ext''
| Question= Transferring files like add-ons, skins, and others over
| Answer=
*To manually install a skin/add-on/repo "by zip", see '''[[HOW-TO:Install an Add-on from a zip file on ATV2|this guide]]'''. The guide will also give you the basic gist of how to transfer files over using SSH/SFTP.
}}
{{:User:Ned Scott/Sandbox2|1=Library|2=MySQL_sync|3=Roaming_profiles
| BGcolor=
| Question= Sync the XBMC library between multiple installs
| Answer=
*See '''[[HOW-TO:Synchronize multiple XBMC libraries]]''' to sync your library between XBMC devices (for any platform) using [[w:MySQL|MySQL]].
*When using library syncing on an [[#iPad, iPhone, and iPod touch|iDevice]], XBMC will freeze up when you are away from your local network. This is because it cannot connect to the MySQL server anymore. To be able to use both library syncing and still use XBMC on-the-go check out this guide: '''[[HOW-TO:Sync multiple libraries/MySQL and portable devices|MySQL and portable devices]]'''
}}
{{:User:Ned Scott/Sandbox2|1=AirPlay
| BGcolor= WhiteSmoke
| Question= AirPlay
| Answer=
* To enable XBMC's [[AirPlay]] server go to: <code>Settings -> Network -> Services</code> and select <code>Allow XBMC to receive AirPlay content</code>
* For the Apple TV 2: Be sure to disable the native ATV2 AirPlay server in the ATV2's settings. Using the native AirPlay server will crash XBMC.
}}
{{:User:Ned Scott/Sandbox2|1=Backup
| BGcolor=
| Question= Backing up XBMC's settings
| Answer=
*The most common way is to copy the [[userdata folder]] (via [[#FileTransfer|SFTP]]) (not to be confused with FTP) from the iOS device to another computer:
:<code> /private/var/mobile/Library/Preferences/XBMC/ </code> for all of your XBMC data, add-ons, skins, etc, or just <br/>
:<code> /private/var/mobile/Library/Preferences/XBMC/userdata/ </code> for just the settings files themselves (which takes up less space, but means you would have to re-download add-ons, etc). ([[Forum:92778]]).
*To restore, SFTP the directory back to its original location, then [[#SSH|SSH]] to the ATV2 and run the following command to reset ownership/permissions:
<pre>chown -R mobile:mobile /private/var/mobile/Library/Preferences/XBMC/</pre>
}}


=Apple TV 2 (black)=
;Same with three- or four-part TV Show Episode:
{{:User:Ned Scott/Sandbox2|1=ATV2_requirements|2=Requirements
:''name''.s01e01-02-03-04.''ext''
| BGcolor=
:''name''_[s01]_[e01-02-03-04]_.''ext''
| Question= Apple TV 2 specific requirements
:''name''.1x01.1x02.1x03.1x04.''ext''
| Answer=
*To '''[[HOW-TO:Install XBMC on Apple TV 2|install XBMC for iOS]]''' you must have a [[forum:99315|jailbroken]] [[Apple TV 2]] that is running any iOS between [[w:IOS version history#Version history: Apple TV (second generation)|versions 4.1 and 4.4.4]]
*'''It is highly recommended to be on an iOS version on or before 4.3'''
*Look [[#ATV2_version|here]] to find out which version you are currently running.
}}
{{:User:Ned Scott/Sandbox2|1=Jailbreaking
| BGcolor=WhiteSmoke
| Question= Jailbreaking
| Answer=
*See '''[[forum:99315|ATV2 jailbreak FAQ]]'''
*If you need additional help go to http://forum.firecore.com/ , http://forum.tomcool.org/ , or http://modmyi.com/forums/ . Do not ask for jailbreaking help on the forums or on the wiki.
}}
{{:User:Ned Scott/Sandbox2|1=Remotes|2=ATV2_remotes
| BGcolor=
| Question= Remotes for ATV2
| Answer=
* The '''ATV2 remote''' works with XBMC and can be customized. See: [[Joystick.AppleRemote.xml for ATV2|Joystick.AppleRemote.xml for ATV2]] for a custom setting that uses up/down for longer FF/RW jumping.
**'''How do I bring up the context menu?''' - Press and hold MENU
**'''How do I bring up the OSD during playback?''' - Press and hold SELECT
**Key repeat (such as holding down directional buttons to navigate) does not work right now on the Apple Remote. This is a known issue.
<!--** General Apple remote functions can be found at [[Global Apple Remote]] (not fully updated for ATV2)-->
* The ATV2 can also learn remotes in its native settings. XBMC will respond to these learned remotes. See [http://support.apple.com/kb/HT3296 here] for instructions.
* '''Web interface''', including add-on interfaces
* Standard Android and iOS remote apps
* '''Rowmote Pro''' (requires helper, see nitoTV)
* '''Bluetooth''' keyboards can be used after BTstack is installed using either nitoTV or the command line. See [[forum:92386|this forum post]] for more info.
* '''Harmony''' Remotes have experimental support and you can teach the ATV2 to use most standard IR remotes via Settings > General > Remotes > Learn Remote. You can get additional functions by following [http://forum.xbmc.org/showthread.php?p=738485#post738485 these instructions].
* The Apple iOS '''Remote app''' for iTunes/ATV
}}
{{:User:Ned Scott/Sandbox2|1=ATV2_output|2=Output
| BGcolor=WhiteSmoke
| Question= Resolutions ATV2 can play and output
| Answer=
*The ATV2 can playback [[#Formats|most videos]] saved as high as 1080p, but will only output a 720p signal to your TV. To see if you can really benefit with 1080p output, please consult this [http://hd.engadget.com/2006/12/09/1080p-charted-viewing-distance-to-screen-size/ chart]
}}
{{:User:Ned Scott/Sandbox2|1=USB
| BGcolor=
| Question= USB hard drives and devices
| Answer=
*The Apple TV 2 can not operate as a USB host, so hooking an external drive or any other USB device to it will not work. To [[#Media|access media]] it must be located on the local network, ATV2's limited internal memory, and/or streaming from the internet.
}}
{{:User:Ned Scott/Sandbox2|1=Timezone
| BGcolor=WhiteSmoke
| Question= Setting time zones on ATV2
| Answer=
*iOS 4.3 and higher, offers the ability to set the Time Zone via the Apple TV GUI, under Settings > General > Time Zone.
}}
{{:User:Ned Scott/Sandbox2|1=ATV2Software
| BGcolor=
| Question= Native ATV2 software after XBMC installation
| Answer=
*XBMC is installed onto the Apple TV internal flashdrive, much like any iOS app, but you will still be able you use your Apple TV software as normal, XBMC will only be an extra option that you can launch from the Apple TV's original menu when you want to utilize the extra features and functions that are available in XBMC compared to the original Apple TV software. So XBMC will not replace the original Apple TV software, it instead complements the existing Apple TV software.
}}
{{:User:Ned Scott/Sandbox2|1=Updates|2=Apple_updates
| BGcolor=WhiteSmoke
| Question= Software updates from Apple will crash XBMC
| Answer=
*Install updatebegone via nitoTV or [[#SSH|SSH]] into the ATV2 and type in:
apt-get install com.nito.updatebegone
reboot
*The above has fixed the issue in many cases but if it doesn't make sure your packages are current. SSH into the ATV2 and type in:
apt-get update && apt-get upgrade
reboot
*If the issue is still there, and you don't see any entries with apple.com in /etc/hosts, modify the file by using the following commands. [http://forum.xbmc.org/showpost.php?p=748981&postcount=1] SSH into the ATV2 and type in:
echo "127.0.0.1 appldnld.apple.com" >> /etc/hosts
echo "127.0.0.1 mesu.apple.com" >> /etc/hosts
echo "127.0.0.1 appldnld.apple.com.edgesuite.net" >> /etc/hosts
echo "" >> /etc/hosts
reboot
}}
{{:User:Ned Scott/Sandbox2|1=ATV2_version|2=iOS_Version
| BGcolor=
| Question= Finding the ATV2 software version
| Answer=
*Apple TV main menu > Settings > General > About > click Select to toggle between Apple TV software version and iOS build version.  Apple TV software is the application running on top of iOS similar to how FrontRow runs on MacOS. It's similar versions are easily confused with the [[w:IOS version history#iOS 4.x: Initial OS release on Apple TV|iOS versions]]. More info on the Apple TV software versions is available [http://support.apple.com/kb/HT4448 here].
}}
{{:User:Ned Scott/Sandbox2|1=direct_boot|2=boot
| BGcolor=WhiteSmoke
| Question= Directly booting into XBMC
| Answer=
*The ATV2 can be set up to directly boot into XBMC, bypassing the native ATV2 menu, but this will disable the ATV2 native menu completely.
*[[#SSH|SSH]] into the ATV2 and enter the following commands:
:*To enable direct booting: <pre>apt-get install org.tomcool.xbmc-booter</pre>
:*To disable direct booting: <pre>apt-get remove org.tomcool.xbmc-booter</pre>
}}
{{:User:Ned Scott/Sandbox2|1=USB_access
| BGcolor=
| Question= Use USB to transfer files to/from ATV2
| Answer=
*By installing afc2add you can have full file access of the ATV2 when it's plugged into a computer via the micro USB port. Once installed you can access the files by using an application such as [http://code.google.com/p/iphonebrowser/downloads/list iPhoneBrowser] or [http://www.macroplant.com/iexplorer/ iExplorer] (formally iPhone Explorer).
*To install afc2add you can either do it through the NitoTV menu or [[#SSH|SSH]] into the ATV2 and type in <code>apt-get install us.scw.afctwoadd</code>
*You can use this to transfer [[#logs|logs]] out of the ATV2, place add-on zips, restore backups (remember to [[#repair_settings|repair permissions]]), or even store a few small video files on the ATV2's internal memory.
}}


=iPad, iPhone, and iPod touch=
;No name
{{:User:Ned Scott/Sandbox2|1=iDevice_requirements|2=iDevices
To emphasize, you can also use any of the above examples with just the season/episode numbers:
| BGcolor=
:101.''ext''
| Question= iDevice requirements
:s01e01.''ext''
| Answer=
:01x01.''ext''
*To '''[[HOW-TO:Install XBMC on iPad/iPhone/iPod touch|install XBMC for iOS]]''' you must have a jailbroken [[w:iDevice|iDevice]] running iOS 4.x or higher.
:etc
*For hardware: iPad 1, iPad 2, iPhone 3GS, iPhone 4, iPhone 4S, iPod touch 3rd gen (16GB and 32GB models only), iPod touch 4th gen.
}}
{{:User:Ned Scott/Sandbox2|1=TouchControls
| BGcolor=WhiteSmoke
| Question= Touch screen controls
| Answer=
*'''Context menu:''' Two finger single tap the menu item.
*'''Go Back:''' Two finger swipe left.
*'''Zoom into/out of Image:''' Pinch.
*'''Slide out menus:''' Hold the menu item to bring it up, then swipe right to access the sub content.  
}}
{{:User:Ned Scott/Sandbox2|1=iRemotes|2=iDevice_remotes
| BGcolor=
| Question= Remotes for iDevices
| Answer=
* Direct '''touch screen''' input
* '''Web interface''', including add-on interfaces
* Standard Android and iOS remote Apps
}}
{{:User:Ned Scott/Sandbox2|1=iDevice_output
| BGcolor=WhiteSmoke
| Question= Resolutions iDevices can play and output
| Answer=
*iDevices can playback [[#Formats|most videos]] saved as high as 1080p. Native video output from a composite, component, VGA, or HDMI adapter on an iDevice is not currently supported, so iDevices can't output their capable resolution (via HDMI adapter: 720P on most supported iDevices, 1080P on the iPad 2 and iPhone 4S). Support for this may be added in the future.
*These cables can be used via jailbreak solutions found on [[w:Cydia|Cydia]] such as DisplayOut and TVout2, but will be limited to the current screen resolution.
*The final release of XBMC v11 (Eden) will include Retina support on iPhone 4, 4S, and the 4th gen iPod touch.
}}
{{:User:Ned Scott/Sandbox2|1= iPad_camera_kit|2=iPad_USB
| BGcolor=
| Question= iPad camera connector for USB and SD cards
| Answer=
*XBMC for iOS can read videos and files via the iPad Camera Connector Kit though the SD card reader or the USB port adapter (drives must be self powered or hub powered). The iPad Camera Connector Kit only works for the iPad 1 and 2. For troubleshooting tips when using the CCK, see [[forum:123816|this forum thread]].
}}


=Troubleshooting=
===Shows without seasons or only one season===
{{:User:Ned Scott/Sandbox2|1=Forum|2=IRC
Single or no season shows, such as anime or many types of one-off series (including miniseries) will not have a season number. To scan in shows like this we use scrapers that support "absolute ordering", such as the [[TheTVDB.com (Video Library)|TVDB.com]] scraper. '''To use this you must change the [[Video_library/Setting_content_and_scanning#TV_show_content_options|scraper settings]] to use the absolute ordering option.''' This setting can be set on individual TV show folders, so that your default settings for all TV shows can support TV show seasons, or vice versa. See [[#DVD order]]for an example of how that would be set up. Absolute ordering can also simply be the default setting for an entire source if all TV shows within that source only have one/no season.
| BGcolor=
| Question= Getting more help with XBMC for ATV2/iOS
| Answer=
* '''[http://forum.xbmc.org/forumdisplay.php?f=137 XBMC for iOS specific help forum]''' or the '''[irc://irc.freenode.org/xbmc-ios #xbmc-ios]''' [[w:IRC|IRC]] chat channel on irc.freenode.org
}}
{{:User:Ned Scott/Sandbox2|1=Userdata|2=Logs|3=logs|4=debuglog|5=xbmc.log
| BGcolor=WhiteSmoke
| Question= Userdata folder and logs
| Answer=
:''See '''[[How-to:Submit a proper bug report]]''' for bug reporting details, '''[[forum:92480|here]]''' for instructions on reporting an issue to the forums, and  '''[[How-to:find and post XBMC.log for iOS]]''' for how to extract the debug and other logs.''


*[[Userdata folder]]: <code>/private/var/mobile/Library/Preferences/XBMC/userdata/</code>
Naming conventions for absolute order follow similar conventions to normal episodes, but require "ep" rather than just "e" for the episode, and (obviously) do not have a season number.
*[[Debug log]]: <code>/private/var/mobile/Library/Preferences/XBMC.log</code>
*Syslog: <code>/var/log/syslog</code>
*CrashReporter: <code>/var/logs/CrashReporter/*.plist</code>
}}
{{:User:Ned Scott/Sandbox2|1=Settings|2=repair_settings
| BGcolor=
| Question= Repair settings
| Answer=
*Settings or sources not stored and updates are failing? This can happen when the setting xml files are manipulated outside XBMC. Connect to your iPad/ATV2 as root using an ssh client and repair file permissions.


*Run the following [[#SSH|SSH]] command on the iPad/ATV2:
;Default episode file naming conventions
* '''name -''' As mentioned above, ''name'' is optional and can be after or before the episode number.
:''name'' ep01.''ext''
:''name''.ep01.''ext''
:''name'' ep 01.''ext''


<pre>chown -R mobile:mobile /private/var/mobile/Library/Preferences/XBMC/</pre>
{{-}}
}}
{{:User:Ned Scott/Sandbox2|1=Reset
| BGcolor=WhiteSmoke
| Question= Reset ATV2 without unplugging
| Answer=
*Hold "menu" and "down" buttons for 5 sec.
}}
{{:User:Ned Scott/Sandbox2|1=NavSounds
| BGcolor=
| Question= Navigational sounds don't work in menus
| Answer=
*This is a known issue and will be fixed with the new audio engine (developed behind the scenes..).
}}
{{:User:Ned Scott/Sandbox2|1=SkinChange
| BGcolor=WhiteSmoke
| Question= Stuck on a bad iPad/iDevice skin
| Answer=
* If you changed skins on the iPad or other touch device and now can't navigate back to change them, delete <code>/private/var/mobile/Library/Preferences/XBMC/userdata/guisettings.xml</code>
}}
{{:User:Ned Scott/Sandbox2|1=NoSound
| BGcolor=
| Question= No sound with DTS or AC3
| Answer=
*It's probably not the XBMC software on your ATV2, but has to do with your receiver. Try [http://forum.xbmc.org/showpost.php?p=712719&postcount=90 this solution].
}}
{{:User:Ned Scott/Sandbox2|1=AC3
| BGcolor=WhiteSmoke
| Question= AC3 files stutter or have static noise
| Answer=
*AC3 Audio can stutter and pause video. Generating thumbnails may be the cause, go to XBMC > Settings > Video > File and deselect 'generate thumbnails'.
*Audio output could also be the culprit, go to Apple TV > Settings > Audio & Video > Audio Output and set it to "16 bit".
}}
{{:User:Ned Scott/Sandbox2|1=Buffering|2=Performance
| BGcolor=
| Question= Performance: video buffering, stuttering, choppiness
| Answer=
* Update to the [[HOW-TO:Install XBMC on Apple TV 2#Nightly|latest nightly build]].
* Use a wired network connection (if possible, even if just for testing to rule out wireless network issues).
* Delete cache files in the following dir: /private/var/mobile/Library/Caches/AppleTV/Video/LocalAndRental (leave .plist files)
* Switch to a different network protocol (especially if you are using SMB), i.e. FTP, AFP, WebDAV or uPNP are good alternatives.
* Try sharing the media on another device to rule out a device-specific (or network) issue.
* Configure Audio Output in XBMC > System > Settings > System to use Optical/Coax, even if you are using HDMI. If this fixes your buffering issue, please let us know on the [[forum:114070|forums]].
* Set to 16-bit audio, Apple TV > Settings > Audio & Video > Audio Output and set it to "16 bit".
* Turn off thumbnails, XBMC > Settings > Video > File and deselect 'generate thumbnails'.
* Disable playback sync completely, XBMC > Settings > Video > Playback > turn off "Sync playback to display"
* If you are having buffering issues using a Time Capsule on WiFi, try [[forumpost_s:959135|this]].
* Try switching on [[HOW-TO:Enable_dirty_regions|dirty regions]] to speed-up the GUI using advancedsettings.xml '''GUI only. Won't help for video playback.'''
* Reboot
}}
{{:User:Ned Scott/Sandbox2|1=Crashing|2=Crash|3=Fixes|4=Disk_space
| BGcolor=WhiteSmoke
| Question= Other ATV2 crash reasons/fixes
| Answer=
* Are you running the [[HOW-TO:Install XBMC on Apple TV 2#Nightly|latest nightly]]? It'll have the most recent bug fixes.
* Check your [[#Logs|logs]] for clues.
* Do you have [http://forum.firecore.com/topic/4224 Firecore Media Player] installed? Try removing it and testing again.
* Have you [[#repair_settings|verified proper ownership of your settings]]?
* Is an Apple software update crashing XBMC? Try [[#Apple_updates|blocking them]].
* Are you using a feature rich skin? Check to see if you're running [http://forum.xbmc.org/showpost.php?p=883003&postcount=86 out of memory].
* Have you run out of space on your ATV2? Check with (via [[#SSH|SSH]]) the <code>df -k</code> command. If any /dev/disk* filesystems are at 100%, use <code>du -h /</code> to see what's taking up space.<br /> First places to check are:  /private/var/mobile/Library/Preferences/XBMC/addons/packages, /private/var/mobile/Library/Caches/AppleTV/Video/LocalAndRental and<br /> /private/var/mobile/Library/Caches/AppleTV/Video/Other also if you have a huge database, [[HOW-TO:Synchronize_multiple_XBMC_libraries#Syncing_thumbnails_and_fanart|moving your fanart and thumbnails]] will free up some space.
* Does your xbmc.log have any SQL errors? Remove your databases and reboot: (via [[#SSH|SSH]]) <code>rm -f /private/var/mobile/Library/Preferences/XBMC/userdata/Database/*db</code> . This will reset your video database, but the devs are looking into a fix for the DB corruption issue.
* If you're seeing LIBAFPCLIENT errors in your logs you may want to switch to a [[forum:106659|different protocol]]. AFP is generally stable but [http://forum.xbmc.org/showthread.php?t=109723&page=21 development] is orphaned at the moment.
* If your Windows 7 SMB share stops streaming, try [[forumpost_s:959354|this]] fix
* Be sure to disable the native ATV2 AirPlay server in the ATV2's settings. Using the native AirPlay server will crash XBMC, so use XBMC's built in AirPlay server instead. See [[#AirPlay|here]].
* If you get a "no space left on device" error during XBMC installation, try [[forumpost_s:972014|this]] to move Applications folder to 2nd partition
}}


<headertabs />
==DVD order==
In TV Shows with series like '''Firefly''' you can set for instance the main TV Shows and set content to [[TheTVDB.com (Video Library)|TVDB]] with regular scraper settings, say '''No''' to scrapping content at this time, then navigate your way to the Firefly folder and set sub-content setting TVDB and changing scraper settings to.
# Folder contains a single TV show
# Either to absolute ordering single season or DVD order
# Scan everything by saying yes when you get prompted by XBMC at this time.
 
'''e.g.''' This will set main source with normal content and sub-folder with specific settings.
<pre>
TV Shows                  <<TVDB normal Settings all seasons>>
  |----TV Show 1
  |      |----Season 0
  |            |--Files
  |----TV Show 2
  |      |----Season #
  |            |--Files
  |----Firefly            <<TVDB Settings altered for single season and DVD order or absolute ordering>>
  |      |----Files
</pre>
 
== Multi-part episodes ==
Handling of multi-part episodes (two part episodes in one file, multiple episodes in DVD images, etc.) is supported. The first matched tvshowmatching regexp and "[-EeXx]+([0-9]+)" will be repeatedly applied against a file name until no more seasons or episodes are found.
;This allows for file names such as:
:showname_s01e01e02e03_s02e01e02
:showname.104-05-06-201-02
:showname.1x07x08x09
 
To break the file up in episodes that XBMC can work with you will have to create an nfo file with <epbookmark> tags.
More information can be found on the [[Import - Export Library#TV Episodes|Import - Export Library]] page.
 
Note that when using a custom RegExp to match a custom file naming convention, add (.*) to the end of the RegExp so that the 3rd RegExp capture is found for the second episode.
 
<!--== Multi-file episodes ==
'''This feature has been temporarily disabled, the plan is to implement it in a better fashion at a future date.'''<br />
You can stack multiple files into one episode.
For that to be available the [[Videos Settings#Library|Stack Duplicate TV Shows]] Video Library setting needs to be enabled.
All the files must have the same season and episode number and they all have to be in the same folder. (This is to prevent unwanted stacking of true duplicates in different folders). The items will be automatically stacked in sequential order based off the filenames being sorted in a "natural" order (like this: -part1.avi, -part2.avi, ..., -part10.avi.)-->
 
== TV Show specials ==
Special episodes are currently supported with [[TheTVDB.com (Video Library)|TheTVDB.com]] scraper. In order for the XBMC scraper regular expressions to recognize them, they should be part of season 0. (Specials naming order can be observed in the Specials Season of the relevant TV show at[http://TheTVDB.com TheTVDB.com]).
;Example
:[http://thetvdb.com/?tab=season&seriesid=76736&seasonid=24194&lid=7 Black Adder's Christmas Carol] should have a file name that matches season 0 episode 3 (e.g. contain s00e03).
 
<pre>
TV Shows
  |----BlackAdder
  |      |----Season 0
  |            |--filename.s00e01.tittle.*
  |            |--BlackAdder.s00e03.Blackadder's Christmas Carol.*
  |            |--etc...
</pre>
 
== Tweaking matches ==
''You can also use [[Add-on:XWMM]] to edit library entires from a web browser.''
 
=== The scraper picks the wrong TV Show ===
You can influence the search by having [[Import - Export Library#Video nfo Files|nfo]] files alongside your media
 
You can also try appending the year to the TV Show folder-name. (Note the showname on the selected site to be scraped must then include the year).
This might be needed for some TV Shows such as "Battlestar Galactica", "Doctor Who", "Jericho", and "Knight Rider" which will have multiple entries on a given TV metadata database because of remakes of the original show.
 
See the examples below:
<pre>
\TV Shows\Battlestar Galactica\Season 1\Battlestar Galactica - S01E01.avi (TheTVDB omits the year from the original shows)
\TV Shows\Battlestar Galactica 2003\Season 1\Battlestar Galactica - S01E01.avi (Remakes will include year at theTVDB.com)
\TV Shows\Cupid 1998\Season 1\Cupid - S01E01.avi
\TV Shows\Cupid 2003\Season 1\Cupid - S01E01.avi
\TV Shows\Cupid 2009\Season 1\Cupid - S01E01.avi
\TV Shows\Doctor Who\Season 1\Doctor Who - S01E01.avi
\TV Shows\Doctor Who 2005\Season 1\Doctor Who - S01E01.avi
\TV Shows\Jericho 1995\Season 1\Jericho - S01E01.avi
\TV Shows\Jericho 2006\Season 1\Jericho - S01E01.avi
\TV Shows\Knight Rider 1982\Season 1\Knight Rider - S01E01.avi
\TV Shows\Knight Rider 2008\Season 1\Knight Rider - S01E01.avi
</pre>
Note! "AVI" is just an example, as this applies to all video formats that XBMC supports.
 
Another good example is Merlin (which gets picked up as Mr Merlin series from 70's)and Merlin 2008 (which gets picked up as the current Merlin Series.
A directory structure should look something like.
 
<pre>
TV Shows
  |----Merlin 2008
  |      |----Season #
  |            |--Files
</pre>
 
[[File:Therenamer.JPG|right|thumb|500px|Settings can be changed to use '''s01e01''' or '''1x01''' or '''101''' capitalizing the S or E depending on how you like it.]]
To further simplify scraping you can cleanup the files before adding them to XBMC with [[Supplemental tools]]
An example of the settings for a popular tool [[Therenamer]] which should conform with the above naming conventions.
 
{{-}}
 
=== Custom directory structure and file names ===
You can make your own naming conventions / rules by adding or editing regular expressions in the [[advancedsettings.xml]] file, with the[[advancedsettings.xml#.3Ctvshowmatching.3E|tvshowmatching]] tag. When enumerating episodes for a series, XBMC '''only''' cares about the season and episode, so when designing regexps you should '''only''' be concerned with these things.
 
Here are several common naming schemes and corresponding regexps and examples.
 
'''\Season #\##''' (Season# is at very end of directory name, and filename starts with episode name, neither have to be a specific number of digits) :
<source lang="xml">
<tvshowmatching>
    <regexp>Season[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
</tvshowmatching>
</source>
'''Example''' : \Battlestar Galactica\Season 3\01 - Occupation.avi (Season 3, Episode 1)
 
 
'''###''' ([season#][episode#] with nothing in between all in filename, assumes episode number is always 2 digits) :
<source lang="xml">
<tvshowmatching>
    <regexp>([0-9]+)([0-9][0-9])[^\\/]*</regexp>
</tvshowmatching>
</source>
'''Example''' : \24\Season 6\601 - 6:00am to 7:00am.avi (Season 6, Episode 1)<br />
'''Example 2''' : \Lost\Season 1\Lost - 101.avi (Season 1, Episode 1)<br />
'''Example 3''' : \24\601 - 6:00am to 7:00am.avi (Season 6, Episode 1)
 
 
'''##x##''' ([season#]x[episode#] all in filename :
<source lang="xml">
<tvshowmatching>
  <regexp>([0-9]+)x([0-9]+)[^\\/]*</regexp>
</tvshowmatching>
</source>
'''Example''' : \Scrubs\Season 1\1x01.Pilot.avi (Season 1, Episode 1)
 
If you use leading 0's (for example, \Scrubs\01x01 - Pilot.avi instead of 1x1), and are having difficulty getting the TV Show scraper to work, try
 
'''##x##''' ([season#]x[episode#] all in filename :
<source lang="xml">
<tvshowmatching>
  <regexp>[0]*([0-9]+)x[0]*([0-9]+)[^\\/]*</regexp>
</tvshowmatching>
</source>
'''Example''' : \Scrubs\Season 1\01x01.Pilot.avi (Season 1, Episode 1)
which simply strips leading 0's from the result.
 
'''s##e##''' (s[season#]e[episode#] at beginning of filename)
<source lang="xml">
<tvshowmatching>
  <regexp>[\\/]s([0-9]+)e([0-9]+)</regexp>
</tvshowmatching>
</source>
'''Example''' : videos\mytv-comedy\Scrubs\season 1\s01e01 - Pilot (hdtv.xvid).avi
 
'''Season ## - Episode ##''' (Season [season#] - Episode [episode#] in the beginning or middle of filename)
<source lang="xml">
<tvshowmatching>
  <regexp>Season ([0-9]+) - Episode ([0-9]+)[^\\/]*</regexp>
</tvshowmatching>
</source>
'''Example''' : TV Shows\Scrubs\Season 1\Scrubs - Season 1 - Episode 01 - Pilot.avi
 
'''TV Shows in DVD Folders'''
Using the same directory structures as above, you can name DVD folders by adding the following xml to advancedsettings.xml. This information was gleaned from [[forum:55497|this forum thread]].
<source lang="xml">
<tvshowmatching append="no">
    <regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)\]?([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
    <regexp>[\._ \[\-\\/]([0-9]+)x([0-9]+)([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
    <regexp>[Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
    <regexp>[\._ \-\\/]([0-9]+)([0-9][0-9])([\._ \-][^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
  </tvshowmatching>
</source>
===Understanding Season Ordering Options===
Please see the thetvdb [[Add-on:The_TVDB#Understanding_Season_Ordering_on_theTVDB.com|scraper settings page]] for information on how to set season ordering correctly ''for each folder'' to match your naming.<br />
 
 
[[Category:Video]]
[[Category:XBMC Manual]]

Revision as of 11:55, 17 February 2013

Adding videos to the library/Contents

Adding videos to the library/Naming files

The TV Show lookup scraper relies on the following naming conventions in order to work as intended.

Directory structure and file names

Library.videos.tvshowsfanart.WSCR.jpg

XBMC needs a TV show folder with just the TV show name and then it needs file names that contain both episode numbers and season numbers (optional, see below). There can be season/year/whatever folders between the TV show folder and the episode files, but XBMC will not use these to figure out what the seasons are. While XBMC and scrapers can sometimes be forgiving of extra data in the file name, it's best to keep it simple and avoid extra text outside of the examples below (such as group names, resolution, etc). Advanced users can tweak the matching patterns that XBMC uses for this with regex and these advancedsettings.xml settings.

Directory layout example
TV Shows
   |----TV Show 1
   |       |----Season #
   |            |--Files
   |----TV Show 2 (year)
   |       |--Files
   |----TV Show 3
   |       |----2008
   |            |--Files
Library.videos.tvshowinfo.WSCR.jpg
Default TV show folder naming conventions
  • (year) - can be helpful for some TV Shows such as "Battlestar Galactica", "Doctor Who" and "Knight Rider" which can yield multiple results.
Name
Name (year)

Shows with seasons

Default episode file naming conventions
  • name - can be the TV show name, episode name, something else, or you can exclude the name and only have the season and episode numbers. You can also place the name after the season and episode numbers.
  • ext - The file extension, such as .mkv, .avi, .iso, etc.
  • Spaces and underscores are interchangeable in the examples below.
  • Periods can be used to break up text, but they cannot be used in between episode-number and episode-names that start with anumber. For e.g. name.s01e01.1.0.ext (episode name is one poin zero} so must become name.s01e01_1.0.ext
name.s01e01.ext
name.s01.e01.ext
name.s01_e01.ext
name [s01] [e01].ext
name.1x01.ext
name.101.ext
Defaults for two-part TV Show Episode will match
name.s01e01-02.ext
name_[s01]_[e01-02]_.ext
name.1x01.1x02.ext
Same with three- or four-part TV Show Episode
name.s01e01-02-03-04.ext
name_[s01]_[e01-02-03-04]_.ext
name.1x01.1x02.1x03.1x04.ext
No name

To emphasize, you can also use any of the above examples with just the season/episode numbers:

101.ext
s01e01.ext
01x01.ext
etc

Shows without seasons or only one season

Single or no season shows, such as anime or many types of one-off series (including miniseries) will not have a season number. To scan in shows like this we use scrapers that support "absolute ordering", such as the TVDB.com scraper. To use this you must change the scraper settings to use the absolute ordering option. This setting can be set on individual TV show folders, so that your default settings for all TV shows can support TV show seasons, or vice versa. See #DVD orderfor an example of how that would be set up. Absolute ordering can also simply be the default setting for an entire source if all TV shows within that source only have one/no season.

Naming conventions for absolute order follow similar conventions to normal episodes, but require "ep" rather than just "e" for the episode, and (obviously) do not have a season number.

Default episode file naming conventions
  • name - As mentioned above, name is optional and can be after or before the episode number.
name ep01.ext
name.ep01.ext
name ep 01.ext


DVD order

In TV Shows with series like Firefly you can set for instance the main TV Shows and set content to TVDB with regular scraper settings, say No to scrapping content at this time, then navigate your way to the Firefly folder and set sub-content setting TVDB and changing scraper settings to.

  1. Folder contains a single TV show
  2. Either to absolute ordering single season or DVD order
  3. Scan everything by saying yes when you get prompted by XBMC at this time.

e.g. This will set main source with normal content and sub-folder with specific settings.

TV Shows                   <<TVDB normal Settings all seasons>>
   |----TV Show 1
   |       |----Season 0
   |            |--Files
   |----TV Show 2
   |       |----Season #
   |            |--Files
   |----Firefly            <<TVDB Settings altered for single season and DVD order or absolute ordering>>
   |       |----Files

Multi-part episodes

Handling of multi-part episodes (two part episodes in one file, multiple episodes in DVD images, etc.) is supported. The first matched tvshowmatching regexp and "[-EeXx]+([0-9]+)" will be repeatedly applied against a file name until no more seasons or episodes are found.

This allows for file names such as
showname_s01e01e02e03_s02e01e02
showname.104-05-06-201-02
showname.1x07x08x09

To break the file up in episodes that XBMC can work with you will have to create an nfo file with <epbookmark> tags. More information can be found on the Import - Export Library page.

Note that when using a custom RegExp to match a custom file naming convention, add (.*) to the end of the RegExp so that the 3rd RegExp capture is found for the second episode.


TV Show specials

Special episodes are currently supported with TheTVDB.com scraper. In order for the XBMC scraper regular expressions to recognize them, they should be part of season 0. (Specials naming order can be observed in the Specials Season of the relevant TV show atTheTVDB.com).

Example
Black Adder's Christmas Carol should have a file name that matches season 0 episode 3 (e.g. contain s00e03).
TV Shows
   |----BlackAdder
   |       |----Season 0
   |            |--filename.s00e01.tittle.*
   |            |--BlackAdder.s00e03.Blackadder's Christmas Carol.*
   |            |--etc...

Tweaking matches

You can also use Add-on:XWMM to edit library entires from a web browser.

The scraper picks the wrong TV Show

You can influence the search by having nfo files alongside your media

You can also try appending the year to the TV Show folder-name. (Note the showname on the selected site to be scraped must then include the year). This might be needed for some TV Shows such as "Battlestar Galactica", "Doctor Who", "Jericho", and "Knight Rider" which will have multiple entries on a given TV metadata database because of remakes of the original show.

See the examples below:

\TV Shows\Battlestar Galactica\Season 1\Battlestar Galactica - S01E01.avi (TheTVDB omits the year from the original shows)
\TV Shows\Battlestar Galactica 2003\Season 1\Battlestar Galactica - S01E01.avi (Remakes will include year at theTVDB.com)
\TV Shows\Cupid 1998\Season 1\Cupid - S01E01.avi
\TV Shows\Cupid 2003\Season 1\Cupid - S01E01.avi
\TV Shows\Cupid 2009\Season 1\Cupid - S01E01.avi
\TV Shows\Doctor Who\Season 1\Doctor Who - S01E01.avi
\TV Shows\Doctor Who 2005\Season 1\Doctor Who - S01E01.avi
\TV Shows\Jericho 1995\Season 1\Jericho - S01E01.avi
\TV Shows\Jericho 2006\Season 1\Jericho - S01E01.avi
\TV Shows\Knight Rider 1982\Season 1\Knight Rider - S01E01.avi
\TV Shows\Knight Rider 2008\Season 1\Knight Rider - S01E01.avi

Note! "AVI" is just an example, as this applies to all video formats that XBMC supports.

Another good example is Merlin (which gets picked up as Mr Merlin series from 70's)and Merlin 2008 (which gets picked up as the current Merlin Series. A directory structure should look something like.

TV Shows
   |----Merlin 2008
   |       |----Season #
   |            |--Files
Settings can be changed to use s01e01 or 1x01 or 101 capitalizing the S or E depending on how you like it.

To further simplify scraping you can cleanup the files before adding them to XBMC with Supplemental tools An example of the settings for a popular tool Therenamer which should conform with the above naming conventions.


Custom directory structure and file names

You can make your own naming conventions / rules by adding or editing regular expressions in the advancedsettings.xml file, with thetvshowmatching tag. When enumerating episodes for a series, XBMC only cares about the season and episode, so when designing regexps you should only be concerned with these things.

Here are several common naming schemes and corresponding regexps and examples.

\Season #\## (Season# is at very end of directory name, and filename starts with episode name, neither have to be a specific number of digits) :

 <tvshowmatching>
     <regexp>Season[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
 </tvshowmatching>

Example : \Battlestar Galactica\Season 3\01 - Occupation.avi (Season 3, Episode 1)


### ([season#][episode#] with nothing in between all in filename, assumes episode number is always 2 digits) :

 
 <tvshowmatching>
     <regexp>([0-9]+)([0-9][0-9])[^\\/]*</regexp>
 </tvshowmatching>

Example : \24\Season 6\601 - 6:00am to 7:00am.avi (Season 6, Episode 1)
Example 2 : \Lost\Season 1\Lost - 101.avi (Season 1, Episode 1)
Example 3 : \24\601 - 6:00am to 7:00am.avi (Season 6, Episode 1)


##x## ([season#]x[episode#] all in filename :

 <tvshowmatching>
   <regexp>([0-9]+)x([0-9]+)[^\\/]*</regexp>
 </tvshowmatching>

Example : \Scrubs\Season 1\1x01.Pilot.avi (Season 1, Episode 1)

If you use leading 0's (for example, \Scrubs\01x01 - Pilot.avi instead of 1x1), and are having difficulty getting the TV Show scraper to work, try

##x## ([season#]x[episode#] all in filename :

 <tvshowmatching>
   <regexp>[0]*([0-9]+)x[0]*([0-9]+)[^\\/]*</regexp>
 </tvshowmatching>

Example : \Scrubs\Season 1\01x01.Pilot.avi (Season 1, Episode 1) which simply strips leading 0's from the result.

s##e## (s[season#]e[episode#] at beginning of filename)

 <tvshowmatching>
   <regexp>[\\/]s([0-9]+)e([0-9]+)</regexp>
 </tvshowmatching>

Example : videos\mytv-comedy\Scrubs\season 1\s01e01 - Pilot (hdtv.xvid).avi

Season ## - Episode ## (Season [season#] - Episode [episode#] in the beginning or middle of filename)

 <tvshowmatching>
   <regexp>Season ([0-9]+) - Episode ([0-9]+)[^\\/]*</regexp>
 </tvshowmatching>

Example : TV Shows\Scrubs\Season 1\Scrubs - Season 1 - Episode 01 - Pilot.avi

TV Shows in DVD Folders Using the same directory structures as above, you can name DVD folders by adding the following xml to advancedsettings.xml. This information was gleaned from this forum thread.

 <tvshowmatching append="no">
     <regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)\]?([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
     <regexp>[\._ \[\-\\/]([0-9]+)x([0-9]+)([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
     <regexp>[Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
     <regexp>[\._ \-\\/]([0-9]+)([0-9][0-9])([\._ \-][^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
   </tvshowmatching>

Understanding Season Ordering Options

Please see the thetvdb scraper settings page for information on how to set season ordering correctly for each folder to match your naming.