Welcome, Guest. Please login or register.

Author Topic: Linux slideshow software  (Read 4779 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Linux slideshow software
« on: January 31, 2009, 01:53:55 PM »
I've got Debian running on my EFIKA and I'm using it as a digital photo frame. I'm using the GLSlideShow screensaver for this, but I'm having a couple of problems. First, the screen sometimes goes black with no image displayed for a few seconds. More importantly though, the slideshow doesn't have flexible options for scaling the images.

So, does anyone know of a good slideshow app for Linux? It should have various options for scaling, support a variety of formats, and be able to scan a directory for images and randomly play them. I also need it to start without user intervention.
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline pyrre

Re: Linux slideshow software
« Reply #1 on: February 01, 2009, 01:34:51 AM »
I don't know if you have tried.
But a quick google search:
link
link
several links

Hope some of them works out...
Amiga 1200 Tower Os 3.9
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC, Indivision AGA MK2.
Amiga 2000 (rev 4.0) Os 1.2/1.3
2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+ Os 2.1
Derringer 030, 32MBram, Buddha in sidecar, Indivision ECS.
Amiga CD32
Video decoder
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Linux slideshow software
« Reply #2 on: February 01, 2009, 11:07:05 AM »
Probably not what you want to hear... but you could easily write your own! The SDL_gfx library has some good real time scaling functions.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Linux slideshow software
« Reply #3 on: February 01, 2009, 11:12:00 AM »
Thanks for the info. Yes, I have spent some time Googling but nothing quite seems to meet my needs. Should have mentioned that to avoid coming across as lazy ;-)

I have looked at qiv already and is almost perfect. The problem with it is that it seems to require a text file containing the names of the images you want it to display (the -F parameter in other words). Do you know if it's possible to use it without that, by telling it to use a directory as the location of the images?

Feh looks promising, though there's not much info on how it handles scaling of images. I'll try to install it and see what happens.

Thanks for the Softpedia link. I have never heard of that site! If the other two apps aren't any good then I'll start trawling through.
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Linux slideshow software
« Reply #4 on: February 01, 2009, 11:13:17 AM »
Quote
bloodline wrote:
Probably not what you want to hear... but you could easily write your own! The SDL_gfx library has some good real time scaling functions.

I considered it actually. Shouldn't be a massive job to load the image, scale it and display it.

If only RealBasic cross-compiled for PPC Linux :-(
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Linux slideshow software
« Reply #5 on: February 01, 2009, 11:27:19 AM »
I really really promise you that SDL and C isn't that hard! :-D

http://friedspace.com/SDLTest.c

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Linux slideshow software
« Reply #6 on: February 01, 2009, 02:38:08 PM »
Quote
bloodline wrote:
I really really promise you that SDL and C isn't that hard! :-D

http://friedspace.com/SDLTest.c

Actually I do quite like SDL. I started writing a GridWars/Geometry Wars clone for the GP2X in C++/SDL and SDL was the only thing about the programming experience which didn't suck! I only gave up on it because the AI was too difficult for me to get my head around and then I started my degree ;-)

So yes, I do like SDL. It's just a shame about all the C malarkey :-P
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Linux slideshow software
« Reply #7 on: February 01, 2009, 05:43:07 PM »
Quote

motorollin wrote:
Quote
bloodline wrote:
I really really promise you that SDL and C isn't that hard! :-D

http://friedspace.com/SDLTest.c

Actually I do quite like SDL. I started writing a GridWars/Geometry Wars clone for the GP2X in C++/SDL and SDL was the only thing about the programming experience which didn't suck! I only gave up on it because the AI was too difficult for me to get my head around and then I started my degree ;-)

So yes, I do like SDL. It's just a shame about all the C malarkey :-P


Game AI is a headf**k... I have found it much easier though, if you run it in a separate thread... then you can just treat it as a program in its own right, and give it the same access to the game engine as the human gets.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Linux slideshow software
« Reply #8 on: February 01, 2009, 05:56:39 PM »
Quote
bloodline wrote:
Game AI is a headf**k... I have found it much easier though, if you run it in a separate thread... then you can just treat it as a program in its own right, and give it the same access to the game engine as the human gets.

IIRC each enemy object had its own thread. The problem came when I needed to code the green square enemies. In Geometry Wars they move towards the player but avoid bullets. They move smoothly all the time, so change course to avoid the bullet but still move vaguely towards the player. I couldn't get the equations right to make them move away from the bullet without them either jumping or making sudden, drastic course adjustments away from the player.

I did have a look at the BlitzMax code for GridWars and converted the equations for the enemy movements to C, but it still didn't work properly :-(
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Linux slideshow software
« Reply #9 on: February 01, 2009, 06:18:36 PM »
Grid Wars: http://www.youtube.com/watch?v=EKBuz6oWGzg


Probably a problem with your detection algorithm...

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Linux slideshow software
« Reply #10 on: February 01, 2009, 06:42:41 PM »
I played GridWars a lot before starting on my GP2X remake. The problem was probably a combination between the detection algorithm and the movement code.

I think the way I did it was for the bullets to tell the green squares to move. So when the bullet moved, it checked the position of all the green squares. If any of them were in its path it triggered a method in them to get out of the way. Probably not the most efficient way, but it's the only way I could find which remotely worked.

Shortly after I gave up, Geometry Wars Was released for the Nintendo DS, so I didn't need to remake it any more ;-)
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Oliver

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: Linux slideshow software
« Reply #11 on: February 03, 2009, 05:49:39 PM »
Quote
motorollin wrote:
I have looked at qiv already and is almost perfect. The problem with it is that it seems to require a text file containing the names of the images you want it to display (the -F parameter in other words). Do you know if it's possible to use it without that, by telling it to use a directory as the location of the images?


How about automating the generation of a directory list as a text file for qiv to use at startup? Perhaps it would be possible to periodically send a signal to qiv to update its list? I haven't used qiv before, and not sure if it can be caused to update on the fly (i'm thinking in terms of a daemon which can be caused to re-read its environment variables, and settings, etc.).
Good good study, day day up!
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Linux slideshow software
« Reply #12 on: February 03, 2009, 07:47:46 PM »
Hmm, good idea! A shell script to create the file and then launch qiv should be just the thing. Thanks!
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Oliver

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: Linux slideshow software
« Reply #13 on: February 04, 2009, 12:27:17 AM »
Quote
motorollin wrote:
Hmm, good idea! A shell script to create the file and then launch qiv should be just the thing. Thanks!


 :-)
Good good study, day day up!
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Linux slideshow software
« Reply #14 on: February 04, 2009, 05:01:57 PM »
Well it turns out the --file parameter is optional. If you omit it, then qiv expects the filename to be passed as the last argument. So you can just do "qiv [options] ~/Pictures/*"

Unfortunately, qiv can't scale images in such a way that you don't get a letterbox effect, so I'll have to keep looking :-(
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10