|
Phoenix This forum is for discussing the user-created Phoenix custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Thanks, I just needed a ballpark. My collection is quite a bit smaller than yours, so I shouldn't need to worry about it yet.
|
#22
|
||||
|
||||
I mean the worst thing that can happen is that you run out of space on the RAM disk and therefore no more thumbs are generated, so you just need to increase the size accordingly and re-run the script (which will clear the cache as well).
__________________
Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard Last edited by routerunner; 05-08-2012 at 05:50 PM. |
#23
|
||||
|
||||
Another reason caching is just a better option...
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#24
|
|||
|
|||
Ok, I got some time to play with this a bit, and I've run into a few issues.
First, I noticed that my SageTV installation is in "C:\Program Files (x86)\SageTV" so I modified the 5th line to reflect this. Then, I noticed that I don't have a "Fanart" directory in "SageTV\SageTV\Phoenix". But since the part of the script that refers to it is REMed, I guess it doesn't matter. The OSFMount lines work fine, but I have to "Run As Administrator" or I get access denied errors. After that is where I get problems.. The purpose of the next few lines is a bit murky to me, but it looks like you're deleting the existing userdata directory, and replacing it with a soft link to one that is on the ram disk. Is that correct? If so, I'm a bit concerned because I have other things in that directory that aren't strictly cache -- I have ADM configuration settings too. Maybe this should be userdata\Phoenix? It fails anyway... maybe it doesn't like the spaces I have in the path name? The next sequence of lines appear to do the same thing for the Thumbnails, but they fail too, probably for the same reason. In this case, I tried wrapping the path name in "double quotes" and it failed because "The process cannot access the file because it is in use by another process." Probably because Sage is running on an extender in the other room. Lastly, I noticed that my userdata\Phoenix\cache directory is over 2GB in size... is that normal? Thanks again... there are a few things that I need to get fixed but this is looking promising so far! Here's a copy of the script and its output: Code:
C:\Program Files (x86)\SageTV>REM C:\Program Files (x86)\SageTV>REM This batch will create a RamDisk via OSFMount and copy the Fanart into for speed access C:\Program Files (x86)\SageTV>REM C:\Program Files (x86)\SageTV>set OSFMountDirectory=C:\Program Files\OSFMount\ C:\Program Files (x86)\SageTV>set JunctionDirectory=C:\Program Files\Junction\ C:\Program Files (x86)\SageTV>set SageTVDirectory=C:\Program Files (x86)\SageTV\ SageTV\ C:\Program Files (x86)\SageTV>set FanartSource=C:\Program Files (x86)\SageTV\Sag eTV\STVs\Phoenix\Fanart\ C:\Program Files (x86)\SageTV>set FanartDestination=F: C:\Program Files (x86)\SageTV>REM RAM Disk Size in Mb C:\Program Files (x86)\SageTV>set RAMDiskSize=256 C:\Program Files (x86)\SageTV>REM Accepted values (as written): 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K C:\Program Files (x86)\SageTV>set RAMDiskAllocationUnitSize=8192 C:\Program Files (x86)\SageTV>REM C:\Program Files (x86)\SageTV>REM Creates the RAM Disk C:\Program Files (x86)\SageTV>REM C:\Program Files (x86)\SageTV>cd C:\Program Files\OSFMount\ C:\Program Files\OSFMount>OSFMount -d -m F: Notifying applications... Flushing file buffers... Locking volume... Dismounting filesystem... Removing device... Removing mountpoint... Done. C:\Program Files\OSFMount>OSFMount -a -t vm -s 256M -m F: Creating device... Created device 7: F: -> VM image Notifying applications... Done. C:\Program Files\OSFMount>format F: /FS:NTFS /A:8192 /V:Fanart /Q /Y The type of the file system is RAW. The new file system is NTFS. QuickFormatting 256M Creating file system structures. Format complete. 256.0 MB total disk space. 253.2 MB are available. C:\Program Files\OSFMount>pause Press any key to continue . . . C:\Program Files\OSFMount>REM C:\Program Files\OSFMount>REM Copy the Fanart into RAM Disk C:\Program Files\OSFMount>REM C:\Program Files\OSFMount>REM cd C:\Program Files (x86)\SageTV\SageTV\STVs\Phoen ix\Fanart\ C:\Program Files\OSFMount>REM xcopy *.* F:\ /E C:\Program Files\OSFMount>pause Press any key to continue . . . C:\Program Files\OSFMount>REM C:\Program Files\OSFMount>REM Create a Windows virtual folder for the Fanart cac he C:\Program Files\OSFMount>REM C:\Program Files\OSFMount>cd C:\Program Files\Junction\ C:\Program Files\Junction>rmdir /S /Q C:\Program Files (x86)\SageTV\SageTV\userd ata The system cannot find the file specified. The system cannot find the file specified. The system cannot find the path specified. C:\Program Files\Junction>mkdir F:\userdata\Phoenix\cache C:\Program Files\Junction>junction /accepteula -q "C:\Program Files (x86)\SageTV \SageTV\userdata" "F:\userdata" Junction v1.06 - Windows junction creator and reparse point viewer Copyright (C) 2000-2010 Mark Russinovich Sysinternals - www.sysinternals.com Error creating C:\Program Files (x86)\SageTV\SageTV\userdata: Cannot create a file when that file already exists. C:\Program Files\Junction>pause Press any key to continue . . . C:\Program Files\Junction>REM C:\Program Files\Junction>REM Create a Windows virtual folder for the Thumbnails cache C:\Program Files\Junction>REM C:\Program Files\Junction>cd C:\Program Files\Junction\ C:\Program Files\Junction>rmdir /S /Q C:\Program Files (x86)\SageTV\SageTV\Gener atedThumbnails The system cannot find the file specified. The system cannot find the file specified. The system cannot find the path specified. C:\Program Files\Junction>mkdir F:\GeneratedThumbnails C:\Program Files\Junction>junction /accepteula -q "C:\Program Files (x86)\SageTV \SageTV\GeneratedThumbnails" "F:\GeneratedThumbnails" Junction v1.06 - Windows junction creator and reparse point viewer Copyright (C) 2000-2010 Mark Russinovich Sysinternals - www.sysinternals.com Error creating C:\Program Files (x86)\SageTV\SageTV\GeneratedThumbnails: Cannot create a file when that file already exists. C:\Program Files\Junction>pause Press any key to continue . . . |
#25
|
||||
|
||||
Goodness me what a post... OK, I'll try to answer to all your questions, please see my comments below.
Quote:
suppose your inner directory in C: is: C:\Program Files\SageTV\SageTV\userdata\Phoenix\cache\imagetrans then you need to create the same directory in your RAM disk called: F:\imagetrans and finally link that directory back to your original in C:, so that any attempt to R/W into C:\Program Files\SageTV\SageTV\userdata\Phoenix\cache\imagetrans will effectively R/W into: F:\imagetrans Same thing applies to the "CachedThumbnails", but that would be easy as what is in the script already should be fine. Deleting your inner directory as per the script will not delete others directory/files that branches from the same tree. Quote:
You'll find out that a small poster (jpg) in the fanart directory gets scaled to a PNG with a huge size for no benefit, I didn't like that at all. Code:
C:\Program Files\OSFMount>cd C:\Program Files\Junction\ C:\Program Files\Junction>rmdir /S /Q C:\Program Files (x86)\SageTV\SageTV\userd ata The system cannot find the file specified. The system cannot find the file specified. The system cannot find the path specified. I can see whether I can post a small video on YouTube that shows this mod in action on my system. It is working really well considering that my server is running from a standard 80Gb 2.5" WD 5400 HDD with 128Mb RAM Disk drive, but again I took all the precautions to reduce the caching to the bare minimum and the Fanart file size never exceed the 100Kb on backgrounds (1024x576, no chroma sub-sampling, 50% quality JPG) and 40Kb on posters (256x360, no chroma sub-sampling, 30% quality JPG). Eddy
__________________
Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard Last edited by routerunner; 05-09-2012 at 06:55 AM. |
#26
|
||||
|
||||
re: RAM Disk speed test
I've performed some speed tests on this RAM disk by using Parkdale (in attachment) and the results are pretty impressive, around 2/3Gb per second ballpark...
__________________
Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard |
#27
|
|||
|
|||
I played around with it a bit more last night, and I got it to the point where I THINK it should be working. Here's the script that I'm using now.
Code:
REM REM This batch will create a RamDisk via OSFMount and copy the Fanart into for speed access REM set OSFMountDirectory=C:\Program Files\OSFMount\ set JunctionDirectory=C:\Program Files\Junction\ set SageTVDirectory=C:\Program Files (x86)\SageTV\SageTV\ set FanartDestination=F: REM RAM Disk Size in Mb set RAMDiskSize=1024 REM Accepted values (as written): 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K set RAMDiskAllocationUnitSize=8192 REM REM Creates the RAM Disk REM cd %OSFMountDirectory% OSFMount -d -m %FanartDestination% OSFMount -a -t vm -s %RAMDiskSize%M -m %FanartDestination% format %FanartDestination% /FS:NTFS /A:%RAMDiskAllocationUnitSize% /V:Fanart /Q /Y REM REM Create a Windows virtual folder for the Phoenix Fanart cache REM cd %JunctionDirectory% rmdir /S /Q "%SageTVDirectory%userdata\Phoenix\Fanart" mkdir %FanartDestination%\userdata\Phoenix\Fanart mkdir %FanartDestination%\userdata\Phoenix\Fanart\Movies mkdir %FanartDestination%\userdata\Phoenix\Fanart\TV junction /accepteula -q "%SageTVDirectory%userdata\Phoenix\Fanart" "%FanartDestination%\userdata\Phoenix\Fanart" REM REM Create a Windows virtual folder for the Phoenix\cache\imagetrans cache REM cd %JunctionDirectory% rmdir /S /Q "%SageTVDirectory%userdata\Phoenix\cache\imagetrans" mkdir %FanartDestination%\userdata\Phoenix\cache\imagetrans\bmtfanart mkdir %FanartDestination%\userdata\Phoenix\cache\imagetrans\phoenix-20poster mkdir %FanartDestination%\userdata\Phoenix\cache\imagetrans\phoenix-35banner mkdir %FanartDestination%\userdata\Phoenix\cache\imagetrans\phoenix-85banner mkdir %FanartDestination%\userdata\Phoenix\cache\imagetrans\phoenix-bgthumb mkdir %FanartDestination%\userdata\Phoenix\cache\imagetrans\phoenix-fullbg mkdir %FanartDestination%\userdata\Phoenix\cache\imagetrans\webfanart junction /accepteula -q "%SageTVDirectory%userdata\Phoenix\cache\imagetrans" "%FanartDestination%\userdata\Phoenix\cache\imagetrans" pause BTW, no, I don't use a separate plugin for Fanart. Isn't all that built into BMT/Phoenix? Edit: Another thought. Any reason I can't just point the central fanart repository to the F: drive and avoid all the business with the links? Or would that mean I'd have to re-fetch the entire collection every time I reboot? Last edited by Dargason; 05-09-2012 at 11:12 AM. |
#28
|
||||
|
||||
Pointing teh fanart directory to the F: drive works for the initial pull of fanart, but most all the fanart systems in place utilize caching in the userdata or cache folder, so subsequent calls would pull the images from there instead of the ram drive.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#29
|
||||
|
||||
Quote:
Just saw your note on the plugins in use. BMT/Phoenix provides the download of the fanart, and provides the caching mechanism, but it is up to the subsequent UI Mod plugin that displays the fanart to actually utilize the cache features. What UI Mod plugin are you using to display the fanart in the UI?
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room Last edited by Fuzzy; 05-09-2012 at 01:25 PM. |
#30
|
|||
|
|||
Quote:
Quote:
So, basically BMT fills up userdata/Phoenix/Fanart, and then the UI caches the stuff at userdata/Phoenix/cache? If this is true, what I want is to create a ramdisk version of the cache folder, and leave the Fanart folder alone, right? Last edited by Dargason; 05-09-2012 at 01:30 PM. |
#31
|
||||
|
||||
Quote:
The result can be observed in this YouTube file I've just uploaded HERE
__________________
Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard |
#32
|
|||
|
|||
Thanks. Obviously my understanding of how and where these files are located is pretty limited.
My imagetrans directory has at least a gigabyte of stuff in it... since I don't use JREKiwi's plugin, can I assume that the Phoenix UI caches stuff here as well? On a related topic, I didn't see anything in the BMT configuration that allows me to determine file sizes, image qualities, etc. Is this something that JREWiki's plugin does? I would gladly sacrifice some image quality to speed things up. |
#33
|
||||
|
||||
Quote:
Quote:
Eddy
__________________
Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard |
#34
|
|||
|
|||
I just watched the video. Very impressive!
I'll play around with the ramdisk caching a bit more and see if I can figure out how to get it working... |
#35
|
||||
|
||||
Quote:
Code:
REM REM Create a Windows virtual folder for the Phoenix Fanart cache REM cd %JunctionDirectory% rmdir /S /Q "%SageTVDirectory%userdata\Phoenix\Fanart" mkdir %FanartDestination%\userdata\Phoenix\Fanart mkdir %FanartDestination%\userdata\Phoenix\Fanart\Movies mkdir %FanartDestination%\userdata\Phoenix\Fanart\TV junction /accepteula -q "%SageTVDirectory%userdata\Phoenix\Fanart" "%FanartDestination%\userdata\Phoenix\Fanart" Also, did you try the script from the command line? Does the "RMDIR" command works or need to be replaced by "RD" as per my suggestion? EDIT: Just found this on another thread: C:\Program Files\SageTV\SageTV\userdata\Phoenix\cache\videothumb Is maybe where your video/movie thumbnails get cached?
__________________
Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard Last edited by routerunner; 05-09-2012 at 05:29 PM. |
#36
|
|||
|
|||
I just took out the generatedthumbnails thing because I was simplifying things... I'll put it back in once I get things working.
The RMDIR command works fine, but you have to enclose the path in double quotes if it has spaces in it. Yes, now that I understand what the directories are for, I am now only caching the phoenix/cache/imagetrans directory, and not the Fanart directory itself. So now I have the imagetrans directory on the ramdisk, and it gets populated with stuff when I run Sage on the server client, but running Sage on an extender (at least my HD200) didn't seem to do it. Do extenders cache in a different place? I didn't have time tonight to do much testing, so I'll let it run the way it is for a while. |
#37
|
||||
|
||||
Quote:
I recommend you to use your HD200 first to see whether the directories gets populated so you know whether is the case or not. EDIT: To clarify, the above thumbnails generation mechanism was happening with Phoenix fanart prior the JREkiwi plugin whom did merge two previous plugins implementation (SageTV v7 Fanart and Fanart for MC), I've no idea whether the existing Phoenix Fanart incarnation does this or not.
__________________
Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard Last edited by routerunner; 05-10-2012 at 08:03 AM. |
#38
|
|||
|
|||
I see that I wrote that in a misleading way... the order of events was
1) create empty ramdisk cache 2) Play around with movie wall on HD200 to see if it populates the cache 3) discover that there is nothing being added to the cache 4) start up the client on the server machine and play around with movie wall 5) observe that there are now files in the cache. I'll try this again tonight and see what happens, but I'll try playing with the HD300 as well. btw, phoenix runs super fast on the client machine once all the images are cached. |
#39
|
||||
|
||||
Quote:
Have you noticed this comment below as well? Quote:
__________________
Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard |
#40
|
|||
|
|||
Yes, I saw the comment about the videothumbs directory, but I didn't have a chance to check on that until this evening. I don't have a videothumbs directory.
I repeated the test I did before... I deleted files from the cache, then played around with the HD200 and then the HD300. I didn't get any new files added to the cache in either case. Then I played with the client that is installed on the server machine and the cache repopulated itself. It seems pretty clear that the files are being cached somewhere else for extenders (or not being cached at all... but it acts like there's a cache somewhere). |
Tags |
cache, extender, fanart, ramdisk |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TV Recordings - large thumbnail fanart displayed on top of poster fanart | mkanet | Diamond | 5 | 03-25-2011 03:33 PM |
BMT / Fanart / Themes Leveraging Fanart? | Addict | SageTV v7 Customizations | 2 | 09-09-2010 05:38 AM |
Fanart: Complete Fanart Collection... 4000 Movies and TV shows | mkanet | SageTV Customizations | 24 | 04-20-2010 03:31 PM |
Can someone who uses fanart please answer an easy question | mkanet | SageMC Custom Interface | 5 | 06-15-2009 04:59 PM |
SageMC, Fanart, MediaScraper & Central FanArt folder structure – Help requested | rmac321 | SageMC Custom Interface | 24 | 06-14-2009 02:00 PM |