Cyknight Posted April 26, 2016 Share Posted April 26, 2016 Oh, if it's directly on the controller, it may have more to do with the proxy, not a driver - but don't confuse composer with the controller. Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 26, 2016 Author Share Posted April 26, 2016 Yes on the controller. It is rather a driver not a proxy. You can check it yourself, it's at /etc/c4i/control4_discchanger_232.c4i Quote Link to comment Share on other sites More sharing options...
Cyknight Posted April 26, 2016 Share Posted April 26, 2016 Didn't say it WAS the proxy, just that it may have to do with the proxy. Alternatively, if it's 'just' a driver, while they've moved away from having lots and lots of driver native to the controllers, it could just be a left-over. Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 26, 2016 Author Share Posted April 26, 2016 21 hours ago, Cyknight said: Nicely done - though your are essentially bypassing the original goal of having this showing under now playing as well as screensavers media art. I installed the screensaver agent, it says I can use pictures from the controller hard drive as a source. However, it doesn't list that as a selectableoption, it only lists a network share that I use for movies as possible file storage location. Any hints about how to enable the controller hard drive to the list? Thanks Rick Quote Link to comment Share on other sites More sharing options...
THawes Posted April 26, 2016 Share Posted April 26, 2016 19 minutes ago, ziocan said: I installed the screensaver agent, it says I can use pictures from the controller hard drive as a source. However, it doesn't list that as a selectableoption, it only lists a network share that I use for movies as possible file storage location. Any hints about how to enable the controller hard drive to the list? Thanks Rick While I am just taking a guess here, that is probably referring to older controllers that had internal hard drives for storage (HC-500, for example). Quote Link to comment Share on other sites More sharing options...
thegreatheed Posted April 26, 2016 Share Posted April 26, 2016 hc500 or hc1000 only. Quote Link to comment Share on other sites More sharing options...
Cyknight Posted April 26, 2016 Share Posted April 26, 2016 Best way to use screensaver now is to just plug a usb stick in the back of a controller. Best not to use a NAS as it creates a continues access whenever any screensaver is in use. Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 26, 2016 Author Share Posted April 26, 2016 Never mind, I can duplicate the network storage driver and using SMB protocol.... /control4# smbclient -L localhost Password: Domain=[CONTROL4HOME] OS=[Unix] Server=[Samba 3.0.37] Sharename Type Comment --------- ---- ------- media Disk Media Directory db Disk Media Database drivers Disk Driver Directory skins Disk Skin Directory log Disk Log Directory updatelog Disk Update Log direcotry Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 26, 2016 Author Share Posted April 26, 2016 Guys trying to fool the controller again so that the "random photo screensaver" will become "show current cover art" :-) The recent models like HC250 and HC800 _do_ have an internal storage. It's flash, not HD but _can_ be used.... I just mounted my HC800 media folder as a network share by duplicating the network share driver and connecting to my controller's IP address and "media" share as listed above. It just works. Still have to see if my idea is feasible (random pictures screen saver which actually only chooses the same picture over and over, except I will update that picture with the current album playing's cover art) Quote Link to comment Share on other sites More sharing options...
thegreatheed Posted April 26, 2016 Share Posted April 26, 2016 mounting the internal storage as network storage is not stable. just sticking in a $5 usb stick works WAY better, and should provide the same results. Quote Link to comment Share on other sites More sharing options...
Cyknight Posted April 26, 2016 Share Posted April 26, 2016 Not just unstable, that memory if memory serves (no pun intended) is used as volatile memory, using it for 'storage' and exterior read access is liable to create issues. Quote Link to comment Share on other sites More sharing options...
Cyknight Posted April 26, 2016 Share Posted April 26, 2016 Not just unstable, that memory if memory serves (no pun intended) is used as volatile memory, using it for 'storage' and exterior read access is liable to create issues. Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 27, 2016 Author Share Posted April 27, 2016 10 hours ago, Cyknight said: Not just unstable, that memory if memory serves (no pun intended) is used as volatile memory, using it for 'storage' and exterior read access is liable to create issues. I installed tons of extra utilities on the controller, no problem at all. There is a lot of free space in the HC800. Only possible instability you can have is if you happen to fill the available space, because driver sandboxes reside on the same filesystem. I am not going to upload anything anyway. I will try to build a link to the current playing CD's artwork file, which will be repointed each time the disc is changed. I'll let you know if I succeed. Quote Link to comment Share on other sites More sharing options...
Cyknight Posted April 27, 2016 Share Posted April 27, 2016 5 hours ago, ziocan said: I installed tons of extra utilities on the controller, no problem at all. There is a lot of free space in the HC800. Only possible instability you can have is if you happen to fill the available space, because driver sandboxes reside on the same filesystem. I am not going to upload anything anyway. I will try to build a link to the current playing CD's artwork file, which will be repointed each time the disc is changed. I'll let you know if I succeed. HAH!, then your system must not be all that large, because I was pushing 'room' on mine Happy hunting! Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 27, 2016 Author Share Posted April 27, 2016 15 minutes ago, Cyknight said: HAH!, then your system must not be all that large, because I was pushing 'room' on mine Right!! Only 2 rooms, not large at all. Agree, YMMV. But then, with large installations, you have multiple controllers to hack into :-) Quote Link to comment Share on other sites More sharing options...
Cyknight Posted April 27, 2016 Share Posted April 27, 2016 3 hours ago, ziocan said: Right!! Only 2 rooms, not large at all. Agree, YMMV. But then, with large installations, you have multiple controllers to hack into :-) Not really. First I'm not so sure you'd be able to 'call' secondary controllers, second because if planned from the start it is entirely possible to have an EA5 (or HC800) as your only and only true controller, supplemented by i/o extenders as needed running a HUGE system. It would also not need to be big as far as rooms etc goes, it will depend on what drivers you have (new c4z drivers with icons take up MUCH more space for example), but also the existing size of your media library (800 CDs and/or DVD is not a large number at all depending on who you're asking.....) Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 27, 2016 Author Share Posted April 27, 2016 It all depends what you mean with "call".... there is only one director of course, so you can only "call" primaries but again the fantasy is the limit :-) Drivers using new media proxy have html files and images loaded on the controller I see... but it would be easy to trick a controller to use external storage even for internal things like drivers sandboxes or even internal www server. I know, 800 slots is poor man's Collection ... but isn't people getting rid of changers anyway ;-) And oh the screensaver trick works perfecto!! Basically, I set up an extra instance of the network storage driver, then I connected to a share on the controller itself, on localhost (127.0.0.1) . Then I went to media section of composer and uploaded a single image - a random one, it doesn't matter what. Composer creates several images out of this one, and uploads them all on the controller in /mnt/media/control4_pictures/control4_pictures. Two steps were needed on controller to enable current cover art to become my screen saver: - add one more line in nowplaying.cgi script (new version attached below), which basically copies the image that I send to the popup when track changes also to a file named /mnt/media/control4_pictures/control4_pictures/800x480/nowplaying.jpg - replace the image file that composer uploaded with a symbolic link to nowplaying.jpg: /mnt/media/control4_pictures/control4_pictures/800x480# ls -l -rw-r----- 1 root root 5199 Apr 27 21:16 nowplaying.jpg lrwxrwxrwx 1 root root 14 Apr 27 20:12 nowplaying_C4ef5c1cbe-1231-4fb1-91b3-82fd14c8c1c8.jpg -> nowplaying.jpg Basically what happens is, when the screensaver kicks in, it thinks that it has a slideshow of pictures available. In fact it has a slideshow, but it only contains one picture. The trick is that I change this picture each time the cover art changes. I was not sure that the director was re-sending the picture again and again in this particular situation with only one picture, but it does :-) So when cover art changes the new one is sent, and at next loop of the navigator's screen saver, the new cover will show up. Not sure I will use the screen saver though. If I decide to, I might need to upload to the controller the linux pbm suite so I can scale up the cover and also add track information to the image :-) #!/bin/sh # ALBUM_ROOT=/mnt/media/images/album cover_path=$(cat /control4/drivers/lua/sandbox/*/now_playing_cover.txt) echo -e "Content-type: image/jpeg\r\n" cat $ALBUM_ROOT/$cover_path.jpg cp $ALBUM_ROOT/$cover_path.jpg /mnt/media/control4_pictures/control4_pictures/800x480/nowplaying.jpg exit 0 Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 27, 2016 Author Share Posted April 27, 2016 upscaling done already... Quote Link to comment Share on other sites More sharing options...
Cyknight Posted April 27, 2016 Share Posted April 27, 2016 Curious what version you're on - loop backs to 127.0.0.1 were blocked as of one of the more recent releases, as it caused issues. And to stick with it - while you have cover-art, there is still no disc/song/artist info Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 27, 2016 Author Share Posted April 27, 2016 GImme some time... :-) I'm on 2.7.2 Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 27, 2016 Author Share Posted April 27, 2016 There you go. Font is the default netpbm one but can be easily improved. Screenshoot + upgraded nowplaying.cgi script. Also had to modify driver to write out track info in a file, I was only dumping artwork path). #!/bin/sh # ALBUM_ROOT=/mnt/media/images/album SS_DIR=/mnt/media/control4_pictures/control4_pictures/800x480 cover_path=$(cat /control4/drivers/lua/sandbox/*/now_playing_cover.txt) line1=$(cat /control4/drivers/lua/sandbox/*/now_playing_info.txt | head -1) line2=$(cat /control4/drivers/lua/sandbox/*/now_playing_info.txt | tail -1) echo -e "Content-type: image/jpeg\r\n" cat $ALBUM_ROOT/$cover_path.jpg cat $ALBUM_ROOT/$cover_path.jpg | jpegtopnm 2>/dev/null | pnmscale -height 320 > $SS_DIR/cover.pnm pbmtext -builtin bdf "$line1" | ppmchange rgb:0/0/0 rgb:ff/ff/0 rgb:ff/ff/ff rgb:0/0/0 | pnmscale 3 > $SS_DIR/cdinfo1.pbm pbmtext -builtin bdf "$line2" | ppmchange rgb:0/0/0 rgb:ff/ff/0 rgb:ff/ff/ff rgb:0/0/0 | pnmscale 2 > $SS_DIR/cdinfo2.pbm pnmcat -black -tb $SS_DIR/cdinfo1.pbm $SS_DIR/cdinfo2.pbm $SS_DIR/cover.pnm | pnmtojpeg -quality=100 > $SS_DIR/nowplaying.jpg exit 0 Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 27, 2016 Author Share Posted April 27, 2016 I have installed a better font I noticed, however, that the screen saver alternates between two different sizes of the image. I have added a screenshot of both. It alternates every time it loops (I set it to change picture every 15 seconds). Having never tried the picture screensaver with the Agent before, can you confirm that this is somewhat normal? Thanks Rick Quote Link to comment Share on other sites More sharing options...
Cyknight Posted April 28, 2016 Share Posted April 28, 2016 The agent must be seeing two files or resolution settings. or alternatively it may see 'wrong' resolutions (as normally several sixes are created to accommodate different screens) and therefor 'changes' on your set time. Quote Link to comment Share on other sites More sharing options...
ziocan Posted April 28, 2016 Author Share Posted April 28, 2016 Hmmm... I will check resolution of the generated image, however, before the upscaling/labelling thing, the cover art was displayed as a tiny image and this makes me think the screensaver will just fetch the image from the specified folder (named after the resolution, in this case 800x480) and display it. After all, this makes sense: Composer is creating versions of images for all the resolution types, why should the screen saver (or the navigator itself for that matter) have to resize them? The images are supposed to be properly sized by Composer at time of upload. I suspect that the saver sees that I only have a single picture in the show, and therefore thinks that this single picture will not save the screen at all, since it would never be changing (well in its mind at least). Therefore, it zooms in and out the single picture in order to try to save screen from burn out. If this theory is correct (and it would be a clever idea from C4 anyway) this means that creating two "fake" images instead of one should stop this zooming thing. I'll try this later this evening, when I'll be home. Quote Link to comment Share on other sites More sharing options...
Cyknight Posted April 28, 2016 Share Posted April 28, 2016 6 hours ago, ziocan said: Therefore, it zooms in and out the single picture in order to try to save screen from burn out. Fair point, it may well do exactly that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.