Virtual Folders

Discuss issues related to PS3 Media Server development (only for programmers)

Re: Virtual Folders

Postby IAmATeaf » Wed Jan 12, 2011 9:29 pm

I've compiled the latest trunk release, amended by PMS.conf to include:

Code: Select all
vfolders = @vfolders.json


Then created the file vfolders.json in the same folder location as PMS.conf which contains:

Code: Select all
[
    {
       "name":"Movies",
       "files":["C:\\Downloads\\Movies","C:\\Downloads\\Videos"]
    }
]


but I get nothing related to the folders above on the PS3. Anybody have any pointers as to what I'm doing wrong?
IAmATeaf
 
Posts: 1
Joined: Tue Jan 11, 2011 10:45 am

Re: Virtual Folders

Postby speyeder » Mon Mar 14, 2011 9:56 pm

Hi All. First time posting. New to PS3MS...

I've been using TVersity for a while now, and I decided to give PS3 Media Server a try because it is receiving much praise lately, and my "spare parts" media server could use the extra efficiently that PS3MS provides. However, the one thing I can stand is that the folders by the same name don't merge (this is the most convenient aspect of TVersity, IMO) After searching I found this thread. Apparently, I'm not alone from the post count (as compared to other posts in the developer area).

Anyway, I've been trying to make this work but it looks like the update.jar is not even being recognized (see stacktrace below). I downloaded the the last udpate.jar posted in this thread and put it into the PS3MS install directory, as instructed in this thread. I used the PMS.bat file to start it because I could be sure that the update.jar would be added to the class path using this method (does PMS.exe pick up the update.jar too?) .

Any ideas on what could be the problem?

Other things to note:
I'm know Java, but before I dig through volumes of code, I think it prudent to ask those that have already been there. I'd be willing to contribute when I have time. What's the best way to get started?

Thanks in advance for your help!

Code: Select all
main] TRACE 15:10:59.578 Exception in thread "main" java.lang.NoClassDefFoundError: net/pms/configuration/FileSerializer
[main] TRACE 15:10:59.593    at net.pms.configuration.MapFileConfiguration.parse(MapFileConfiguration.java:85)
[main] TRACE 15:10:59.593    at net.pms.PMS.manageRoot(PMS.java:480)
[main] TRACE 15:10:59.593    at net.pms.configuration.RendererConfiguration.getRootFolder(RendererConfiguration.java:88)
[main] TRACE 15:10:59.593    at net.pms.PMS.getRootFolder(PMS.java:141)
[main] TRACE 15:10:59.593    at net.pms.PMS.manageRoot(PMS.java:479)
[main] TRACE 15:10:59.593    at net.pms.PMS.init(PMS.java:389)
[main] TRACE 15:10:59.593    at net.pms.PMS.get(PMS.java:1106)
[main] TRACE 15:10:59.593    at net.pms.PMS.main(PMS.java:1170)
[main] TRACE 15:10:59.593 Caused by: java.lang.ClassNotFoundException: net.pms.configuration.FileSerializer
[main] TRACE 15:10:59.593    at java.net.URLClassLoader$1.run(Unknown Source)
[main] TRACE 15:10:59.593    at java.security.AccessController.doPrivileged(Native Method)
[main] TRACE 15:10:59.593    at java.net.URLClassLoader.findClass(Unknown Source)
[main] TRACE 15:10:59.593    at java.lang.ClassLoader.loadClass(Unknown Source)
[main] TRACE 15:10:59.593    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[main] TRACE 15:10:59.593    at java.lang.ClassLoader.loadClass(Unknown Source)
[main] TRACE 15:10:59.593    ... 8 more
speyeder
 
Posts: 2
Joined: Mon Mar 14, 2011 9:27 pm

Re: Virtual Folders

Postby chocolateboy » Mon Mar 14, 2011 10:00 pm

speyeder wrote:Anyway, I've been trying to make this work but it looks like the update.jar is not even being recognized


viewtopic.php?f=14&t=8001#p41522
viewtopic.php?f=6&t=3507&p=36904#p36904
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: Virtual Folders

Postby speyeder » Mon Mar 14, 2011 10:10 pm

Wow... (snappy!) Thanks! if it were a snake...
speyeder
 
Posts: 2
Joined: Mon Mar 14, 2011 9:27 pm

Re: Virtual Folders

Postby Squirl1899 » Sat Apr 02, 2011 7:03 pm

I was able to get the folders working but I cannot get the thumbnails to work.
pms.conf
Code: Select all
thumbnails = true
alternativeffmpegpath = C:\\Program Files (x86)\\PS3 Media Server\\win32\\dvrms\\ffmpeg_MPGMUX.exe
mencoder_ass = true
mencoder_fontconfig = true
mencoder_ass_defaultstyle = true
prevents_sleep_mode = true
maxvideobuffer = 600
nbcores = 4
mencoder_disablesubs = true
mencoder_mt = true
engines = tsmuxer,mencoder,avsmencoder,avsffmpeg,mplayeraudio,ffmpegaudio,tsmuxeraudio,pmsencoder,vlcvideo,mencoderwebvideo,mplayervideodump,mplayerwebaudio,vlcaudio,ffmpegdvrmsremux,rawthumbs
usecache = true
use_mplayer_for_video_thumbs = true
dvd_isos_thumbnails = true
thumbnail_seek_pos = 20
alternate_thumb_folder = D:\\Users\\Michael\\Documents\\DVD Covers and Labels\\PS3MS Covers
hide_transcode_folder = false
hide_extensions = false
hide_enginenames = false
folders =Y:\\Movies,H:\\Movies
vfolders = @vfolders.json
thumbnails = true
hostname = 10.0.0.4
ip_filter = 10.0.0.8
http_engine_v2 = false


vfolders.json
Code: Select all
[
    {
        "name": "HD Movies",
                files: ["Y:\\Movies","H:\\Movies"]
            }
        ]
    }
]



Any suggestions? I did it all manually because everytime I would put the update.jar in the ps3 media folder, it would not run and I would get a java error log.

PS3 Media Server (Sub Junk Build) 1.21.0-SB20
QuadCore Intel Core i7-2720QM, 3000 MHz (30 x 100)
Intel Cougar Point HM67, Intel Sandy Bridge
8169 MB (DDR3-1333 DDR3 SDRAM)
NVIDIA GeForce GTX 470M (1536 MB)
SSD: INTEL SSDSA2M120G2GC (120 GB, SATA-II)
HDD:ST9750420AS (750 GB, 7200 RPM, SATA-II)
Microsoft Windows 7 Ultimate 64bit SP 1
PSMS (Sub Junk Build) 1.21.0-SB20
QuadCore Intel Core i7-2720QM, 3000 MHz
8GB RAM (DDR3-1333 SDRAM)
NVIDIA GeForce GTX 470M (1.5GB)
SSD: INTEL SSDSA2M120G2GC (120 GB, SATA-II)
HDD:ST9750420AS (750 GB, 7200 RPM, SATA-II)
Windows 7 Ultimate 64bit SP 1
Squirl1899
 
Posts: 1
Joined: Tue Oct 05, 2010 2:24 pm

Re: Virtual Folders

Postby jamiecreek » Sun May 01, 2011 10:58 am

Hmm.. I'm using this as it is now in trunk/v1.21.1. I frequently get the following issue:

1) The list of folders that appear will be incomplete the first time I choose a subfolder with virtual children.
2) When it reloads/refreshes, it appends to the list rather than replaces it, so whatever loaded initially becomes duplicated, sometimes multiple times.

I've not had a chance to look at the code and see why it is yet, but I may do later.
jamiecreek
 
Posts: 5
Joined: Tue Jun 30, 2009 7:23 pm

Re: Virtual Folders

Postby squadjot » Wed Jun 29, 2011 6:54 am

It would be SO awesome if you could add single files like this..
[
{
"name": "HD MEGA",
"files": ["D:\\Media\\Video\\TheBestMovie.avi","D:\\Media\\Video\\AnotherMovie.mkv"]
}
]

EDIT:
The problem is if you keep every movie in a folder, you might have folders IN you moviefolder "/info" "/subs" etc etc.
All theese folders get included in the virtual folder, wich makes it very messy!

So one solution would be to able to pick single files, another would be an exclude filter option in json.
Maybe could simply be a trye/false flag that exludes subfolders entirely.

Another problem is that no Thumbnails is shown!

-----

I don't know how much focus there is on Virtual Folders, but if it got finalized to a point where you can truly create a virtual structure..then that would be a milestone, and would open new possibilities not only for categorizing, but ways to "shift" how you want you files to be shown, while keeping your original structure behind the scenes.

*Also keep in mind devices show structure differently ( i.e Bravia DOES show thumbnails on folders , PS3 does not etc.)

Besides that, awesome work, finally got it to work.. now i'm just a bit bummed out i can't do what i hoped i could do.
User avatar
squadjot
 
Posts: 243
Joined: Thu Mar 25, 2010 10:03 pm

Re: Virtual Folders

Postby timmyj » Sat Jul 23, 2011 5:50 am

i assume this feature is part of ps3ms 1.30.1?

anyway I've been trying to get it to work without luck, i want to merge the Movies folders from drives D,E and N, and TV folders from D and N

i've added to PMS.conf

Code: Select all
folders = D:\\Movies,D:\\TV,E:\\Movies,N:\\Movies,N:\\TV
vfolders = @vfolders.json


and created vfolders.json in the same directory which contains:

Code: Select all
[
            {
                "name": "Movies",
                files: [
                    "D://Movies",
                    "E://Movies",
               "N://Movies",
                ]
            "name": "TV",
                files: [
                    "D://TV",
                    "N://TV",
                ]
            }
]


is my syntax wrong? or is this capability not enabled in the official 1.30.1 build
thanks
timmyj
 
Posts: 5
Joined: Sun Nov 14, 2010 12:19 pm

Re: Virtual Folders

Postby squadjot » Sat Jul 23, 2011 11:55 am

First , the forward slashes has to be backward slashes.
Second, the last folder in each array should not have a comma afterwards it


edit: Hmm, try to study the structure of json, it's like any coding/script lingo, you use open/close tags:

Code: Select all
[
   {
      "name":"Movies",
      "files":["D:\\Movies", "E:\\Movies", "N:\\Movies"]
   }
   ,
   {
      "name":"TV",
      "files":["D:\\TV", "N:\\TV"]
   }
]


edit2:

you dont need this:
Code: Select all
folders = D:\\Movies,D:\\TV,E:\\Movies,N:\\Movies,N:\\TV
User avatar
squadjot
 
Posts: 243
Joined: Thu Mar 25, 2010 10:03 pm

Re: Virtual Folders

Postby timmyj » Sun Jul 24, 2011 2:25 am

thanks for the amendments but it still aint working
timmyj
 
Posts: 5
Joined: Sun Nov 14, 2010 12:19 pm

PreviousNext

Return to Developers

Who is online

Users browsing this forum: No registered users and 4 guests