Your Digital Media Has Never Looked So Good

 
ptyler
Topic Author
Posts: 1
Joined: Wed Nov 09, 2005 10:17 pm

Shuffle all photos under a network share structure??

Wed Nov 23, 2005 7:35 pm

I have my Roku Photobridge connected to a XP machine with shares. It has no problem using the built in slideshow to show all the pictures (7500+) in all the subdirectories of the share.

However I cannot figure out how to get them to appear in a random order. Right now it loops through them all in order.

Are there 3rd party apps or patches that can do this?

Thanks
 
MoJo
Posts: 136
Joined: Thu Sep 09, 2004 11:07 pm

Wed Nov 23, 2005 8:56 pm

There are currently no third party apps for photo browsing and the functionality you see now is all you get. It hasn't changed since 1.5.18.

The good is that the photo browser does work and the rotate and zoom functions are pretty cool but the bad is a total lack of random order, playlists, photo album software connect, etc.

The third party devs have been busy with video and music apps (which are obviously a cooler media) but hopefully one of these brilliant guys will take a stab at a photo viewing app in the near future.

Several of us prodded The Endless (the most prominent third part app developer) about this a month or two ago (as a joke). We can always hope! :-)
 
r111
Posts: 202
Joined: Thu Aug 19, 2004 8:38 am
Location: Orange Co, CA
Contact:

Thu Nov 24, 2005 12:17 pm

Here is a multi-directory random picture viewer script that I stole from some other poster a long time ago and modified a bit. Negatives are no rotation or zoom control.

#!/bin/sh
#random jpeg slideshow
PATH=$PATH:"/usr/local/bin"
#define the root dir you want, all subdirs will be included
JPEGPATH=/mnt/smb/nfs/nas1/Photoshow
#after these files are created, you can edit them to remove dirs
JPEGDIRS=/mnt/smb/nfs/nas1/Photoshow/jpegdirs.txt
JPEGLIST=/mnt/smb/nfs/nas1/Photoshow/jpeglist.txt

photo=$(ps -ef | grep photo | grep -v grep)
echo $photo
if [ -z "$photo" ]; then
   photo -p&
   sleep 2
fi

if [ ! -s $JPEGLIST ]; then
   # Find all directories with jpegs in them...
   find $JPEGPATH -name \*.jpg -print >> $JPEGLIST 2>/dev/null
   find $JPEGPATH -name \*.JPG -print >> $JPEGLIST 2>/dev/null
#   find /mnt -name \*.JPEG -print >> $JPEGLIST 2>/dev/null
#   find /mnt -name \*.jpeg -print >> $JPEGLIST 2>/dev/null

   cat $JPEGLIST | sed -e 's/\/[^\/]*$//' |awk -F/ '!/\.+/ {print $0}' | sort -u > $JPEGDIRS
fi

while ( true ); do
   RANDOM=$(date +%s)
   numberOfPicDirs=$(cat $JPEGDIRS | wc -l)

   directoryToShow=$[ ( $RANDOM % $numberOfPicDirs ) +1 ]

   directoryIs="$(cat $JPEGDIRS | tail -n $directoryToShow | head -n 1)"

   echo $directoryIs
   result=$(ecp photoApp IMAGEDIR "$directoryIs")
   if [ "$result" != "photoApp: ok" ]; then
      exit
   fi
   numberOfPics=$(grep "$directoryIs" $JPEGLIST | wc -l| sed -e 's/ //g')
   echo "|$numberOfPics|"
   for (( i=0; $i < $numberOfPics; i=$i+1 )); do
      echo "i=$i"
      result=$(ecp photoApp NEXT_IMAGE)
      if [ "$result" != "photoApp: ok" ]; then
         echo "Bye Bye.."
         exit
      fi
      sleep 10
   done
done
 
leenuxg33k
Posts: 170
Joined: Sun Jan 23, 2005 7:09 pm
Location: Boston, MA
Contact:

Sat Nov 26, 2005 7:54 pm

r111 wrote:
Here is a multi-directory random picture viewer script that I stole from some other poster a long time ago and modified a bit. Negatives are no rotation or zoom control.



I'm glad someone found it useful. :-)
 
shawnlarasteele
Posts: 3
Joined: Thu Dec 01, 2005 11:02 am

PhotoBridge doesn't seem to do "Photo" very well

Thu Dec 01, 2005 11:08 am

For something specialized, I'd expect better "photo" support. I want it to behave like the windows "my pictures slideshow". Pressing next through 2000 pix isn't very fun.

I'm afraid mine'll have to go back.
 
MoJo
Posts: 136
Joined: Thu Sep 09, 2004 11:07 pm

Thu Dec 01, 2005 11:16 am

You can push "play" on the root folder and it will do a slide show of all photos with in it (in order though) or click on the slideshow app at the root level where your photos are and get the same thing.

You don't have to press next every time. Even on a sub folder (before you drill into it) pushing the play button will start a slide show of that folder.
 
dgburns
Posts: 807
Joined: Mon Jun 27, 2005 9:37 am

Fri Dec 02, 2005 10:16 pm

MoJo wrote:
You don't have to press next every time. Even on a sub folder (before you drill into it) pushing the play button will start a slide show of that folder.


Yeah...

But Photobridge is SUPPOSED to be a PHOTO viewer. The latest beta brought back "shuffle play" for audio clips (even though audio is a secondary capability), you'd THINK the PHOTO handling would be a bit more robust than just single-stepping in a fixed order.
HD-1500 RevB #1 (media room)
Mitsubishi WD-62528 62" LCD RPTV
Kenwood VR-407 receiver w/PSB Alpha's
PS/3 60GB (now 250GB) w/750GB Seagate ext
M1000 (upstairs)
HD-1000 RevB #2 (bedroom)
Visco 32" LCD
AR 2.1 audio system
PS/2
 
MoJo
Posts: 136
Joined: Thu Sep 09, 2004 11:07 pm

Fri Dec 02, 2005 11:26 pm

I hear ya dgburns. Believe me. However, as a user of the HD1000 since September 2004 I can tell you that NOBODY has been begging Roku for more photo features until literally the last week or two, other than a few random posts here and there. Video and Music consumed the time of RokuDon and the other third party devs and I can understand why. Of all the things that didn't work on the Roku, photos is the one thing that did.

That being said, I would love nothing more than to see additional features/functionality to view pictures randomly, by tags or at least by some sort of playlist. My wife is a picture taking maniac, and a good one too, and our image library grows by hundreds per week. 6 Megapixel shots too taken at the highest quality (1 step below RAW). As of this posting we're at 35.3GB and 7245 (family) photos. Yikes! That doesn't include the thousands we have deleted because they were not up to snuff.

I think we are at the mercy of one of the brilliant third party devs on this one but as photo viewing isn't really as sexy as video or audio it's probably not gonna happen anytime soon. We can always hope though. :-)
 
dgburns
Posts: 807
Joined: Mon Jun 27, 2005 9:37 am

Sat Dec 03, 2005 11:55 pm

Apparently until some 3rd-party developer takes interest, the best we'll have is manually creating our own "Art Packs".

I'm getting a D70 for Christmas, which is why I've suddenly become interested...
HD-1500 RevB #1 (media room)

Mitsubishi WD-62528 62" LCD RPTV

Kenwood VR-407 receiver w/PSB Alpha's

PS/3 60GB (now 250GB) w/750GB Seagate ext

M1000 (upstairs)

HD-1000 RevB #2 (bedroom)

Visco 32" LCD

AR 2.1 audio system

PS/2
 
barrygordon
Posts: 275
Joined: Thu Aug 19, 2004 6:33 am
Location: Merritt Island FL
Contact:

Tue Dec 06, 2005 12:43 pm

I have a little windows based tool that greatly assists in making artpaks. It is written in VB, allows for the inclusion of music, reordering the photos, photo selection etc. It still is just a hack. Un forutnately it is limited by the Roku Photo viewer and Art Pak concept

Send me a PM if you want a copy
 
jerryyaoatsj
Posts: 1
Joined: Wed Nov 30, 2005 12:47 am
Location: San Jose, CA

Wed Dec 07, 2005 12:54 pm

Thanks to barrygordon for the easy use VB application to create ArtPack.
I created my artpack within 15 minutes without writing one line of script.

It's nice to have someone really handy and helpfule on this forum.

Jerry :D
HD-1000 rev. A
 
barrygordon
Posts: 275
Joined: Thu Aug 19, 2004 6:33 am
Location: Merritt Island FL
Contact:

Wed Dec 07, 2005 2:15 pm

You're welcome
 
rkhobbit
Posts: 17
Joined: Tue May 09, 2006 8:41 am
Location: McKinney, TX

Fri May 19, 2006 8:01 am

r111 wrote:
Here is a multi-directory random picture viewer script that I stole from some other poster a long time ago and modified a bit. Negatives are no rotation or zoom control.

#!/bin/sh
#random jpeg slideshow
PATH=$PATH:"/usr/local/bin"
#define the root dir you want, all subdirs will be included
JPEGPATH=/mnt/smb/nfs/nas1/Photoshow
#after these files are created, you can edit them to remove dirs
JPEGDIRS=/mnt/smb/nfs/nas1/Photoshow/jpegdirs.txt
JPEGLIST=/mnt/smb/nfs/nas1/Photoshow/jpeglist.txt

photo=$(ps -ef | grep photo | grep -v grep)
echo $photo
if [ -z "$photo" ]; then
   photo -p&
   sleep 2
fi

if [ ! -s $JPEGLIST ]; then
   # Find all directories with jpegs in them...
   find $JPEGPATH -name \*.jpg -print >> $JPEGLIST 2>/dev/null
   find $JPEGPATH -name \*.JPG -print >> $JPEGLIST 2>/dev/null
#   find /mnt -name \*.JPEG -print >> $JPEGLIST 2>/dev/null
#   find /mnt -name \*.jpeg -print >> $JPEGLIST 2>/dev/null

   cat $JPEGLIST | sed -e 's/\/[^\/]*$//' |awk -F/ '!/\.+/ {print $0}' | sort -u > $JPEGDIRS
fi

while ( true ); do
   RANDOM=$(date +%s)
   numberOfPicDirs=$(cat $JPEGDIRS | wc -l)

   directoryToShow=$[ ( $RANDOM % $numberOfPicDirs ) +1 ]

   directoryIs="$(cat $JPEGDIRS | tail -n $directoryToShow | head -n 1)"

   echo $directoryIs
   result=$(ecp photoApp IMAGEDIR "$directoryIs")
   if [ "$result" != "photoApp: ok" ]; then
      exit
   fi
   numberOfPics=$(grep "$directoryIs" $JPEGLIST | wc -l| sed -e 's/ //g')
   echo "|$numberOfPics|"
   for (( i=0; $i < $numberOfPics; i=$i+1 )); do
      echo "i=$i"
      result=$(ecp photoApp NEXT_IMAGE)
      if [ "$result" != "photoApp: ok" ]; then
         echo "Bye Bye.."
         exit
      fi
      sleep 10
   done
done


How does one use this script to display random photos on an HD1000? Do I copy and save it as a text file using notepad and give it a .roku extension and then load it in a CF card or share directory?
_______
rkhobbit
 
leenuxg33k
Posts: 170
Joined: Sun Jan 23, 2005 7:09 pm
Location: Boston, MA
Contact:

Fri May 19, 2006 9:09 am

rkhobbit wrote:
r111 wrote:
Here is a multi-directory random picture viewer script that I stole from some other poster a long time ago and modified a bit. Negatives are no rotation or zoom control.

#!/bin/sh
#random jpeg slideshow
PATH=$PATH:"/usr/local/bin"
#define the root dir you want, all subdirs will be included
JPEGPATH=/mnt/smb/nfs/nas1/Photoshow
#after these files are created, you can edit them to remove dirs
JPEGDIRS=/mnt/smb/nfs/nas1/Photoshow/jpegdirs.txt
JPEGLIST=/mnt/smb/nfs/nas1/Photoshow/jpeglist.txt



How does one use this script to display random photos on an HD1000? Do I copy and save it as a text file using notepad and give it a .roku extension and then load it in a CF card or share directory?
_______
rkhobbit


You need to edit the JPEG paths above to match your SMB mounts on your roku. I don't know if you can edit it with notepad since it might add funny cr/lf. Someone with Windows experience should be able to answer that part. I have not tried it on a Compact flash card. I imagine there would be some issues since the card will be mounted read only. But if you store it on a SMB share it should work fine.
 
rkhobbit
Posts: 17
Joined: Tue May 09, 2006 8:41 am
Location: McKinney, TX

Fri May 19, 2006 10:48 am

leenuxg33k wrote:
rkhobbit wrote:
r111 wrote:
Here is a multi-directory random picture viewer script that I stole from some other poster a long time ago and modified a bit. Negatives are no rotation or zoom control.

#!/bin/sh
#random jpeg slideshow
PATH=$PATH:"/usr/local/bin"
#define the root dir you want, all subdirs will be included
JPEGPATH=/mnt/smb/nfs/nas1/Photoshow
#after these files are created, you can edit them to remove dirs
JPEGDIRS=/mnt/smb/nfs/nas1/Photoshow/jpegdirs.txt
JPEGLIST=/mnt/smb/nfs/nas1/Photoshow/jpeglist.txt



How does one use this script to display random photos on an HD1000? Do I copy and save it as a text file using notepad and give it a .roku extension and then load it in a CF card or share directory?
_______
rkhobbit


You need to edit the JPEG paths above to match your SMB mounts on your roku. I don't know if you can edit it with notepad since it might add funny cr/lf. Someone with Windows experience should be able to answer that part. I have not tried it on a Compact flash card. I imagine there would be some issues since the card will be mounted read only. But if you store it on a SMB share it should work fine.


Thanks for the help... Once I edit the code with the correct path to my JPEGs on my shared network drive, I'll need to save it as a file... Is there a particular filename.ext I need to save it as so I can access this as an application on my HD1000? Will a filename like photo.roku work?

_______
rkhobbit

Who is online

Users browsing this forum: No registered users and 2 guests