Video Wont Play - YAMJ/yamj-v2 GitHub Wiki
Index is generated and looks fine, but when a video is selected the "buffering" message appears before a blank screen and then returns to the index.
This is nearly always to do with the path setting in your library.xml file. If you are not using a library file, read up here: LibraryXMLInfo
The <path> line in the library file is where your PC looks to find the video files to index. As the PCH does not have access to the same settings and configuration as your PC the <nmtpath> line in the library file is used to define where the PCH looks to find these movies.
Let's work through an example to see how each of these elements relates to the other.
Video files are stored in a directory on your pc mapped to T:. It does not matter if this is a local physical drive on your PC or a network drive on another PC or Server.
Let's also assume that T: is actually the following UNC path \\COMPUTER\VideoDir\
On a windows PC the share name for this would be VideoDir
So that you have a library that looks like this:
| My PC | Full Path |
|---|---|
| T:\Movies\Movie1.avi | \COMPUTER\VideoDir\Movies\Movie1.avi |
| T:\Movies\Movie2.avi | \COMPUTER\VideoDir\Movies\Movie2.avi |
| T:\Movies\Directory\Movie3.mkv | \COMPUTER\VideoDir\Directory\Movies\Movie1.avi |
On the PCH you should have a share defined that points to T: and it will have a name, for example MyVideos It is VERY important to note the CASE of this share name. The PCH is a linux based computer and linux is case sensitive unlike windows, so MyVideos is different to MYVIDEOS and myvideos.
So let's put this together and create our library.xml file.
| Where | Location | Library File |
|---|---|---|
| PC | T: | path |
| Popcorn Hour | MyVideos | nmtpath |
So this maps to the library.xml like this:
<library>
<path>T:\</path>
<nmtpath>file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/MyVideos/</nmtpath>
</library>
The nmtpath is made up of 3 parts:
-
file:///opt/sybhttpd/localhost.drives/- This is a static part of the tag and does not need to be changed
-
NETWORK_SHARE
- This tells the PCH that the next part of the tag is a network share. Other options are available, see Root Paths
-
MyVideos
- This is the share name that is on the network set-up page
It is worth checking and re-checking the case of these paths in the library.xml file as this will be the cause of most couldn't play errors.
If you change the library.xml file, you will need to delete your jukebox directory and re-run YAMJ so the correct paths are created.
There is an issue with the Popcorn Hour that allows only one SMB/NFS share to be mounted at one time. Please ensure that you have browsed to the share at least once since the last time you rebooted the PCH.
For this reason, you should have the Jukebox on the same share as your video files, one the hard disk of the PCH or via a HTTP server.