Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 16 Dec 2017, 11:28
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Simple jpg viewer / slideshow - script request
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [33 Posts]   Goto page: 1, 2, 3 Next
Author Message
greengeek


Joined: 20 Jul 2010
Posts: 4748
Location: Republic of Novo Zelande

PostPosted: Sat 28 Oct 2017, 15:43    Post subject:  Simple jpg viewer / slideshow - script request
Subject description: Place script in slideshow directory?
 

Script request:

I have a directory "jpgstore" which contains up to 20,000 jpg images taken by my homemade security camera and I would like to display them as a slideshow in the simplest way possible.

I have tried viewnior and it works, but it seems to allow a quickest display time of one second per image. Ideally i would like to be able to set the "frame rate" anywhere between 10 per second up to 5 seconds per frame. This would allow me to animate the jpg images so I can do a "quick review" of the events trapped by the camera, or set the speed for a slower look if needed.

I don't need a fancy speed dial or gui - just a script with changeable parameters.

It sounds as if feh may do the job (just about to download/install it and try it now....) but I have it in the back of my mind that someone here (maybe Technosaurus?) posted a method to use X to display a borderless window or something similar.

I would like the script to be placed in the same directory as the jpgs so that it does not need to be told what directory to look for - I just want to click it and have a slideshow run.

Any thoughts appreciated.

cheers!

EDIT : Summary of solutions:
So far the best solution seems to be "pho" which is highlighted in these posts:
http://www.murga-linux.com/puppy/viewtopic.php?p=972919#972919 (for Carolina)
http://www.murga-linux.com/puppy/viewtopic.php?p=972923#972923 (for Slacko 5.6)

Other similar options are still useful but require some dependencies:

Musher0 highlighted qiv and I made a test pet here:
http://www.murga-linux.com/puppy/viewtopic.php?p=972629#972629 but it also requires "imlib"

feh works well but the pet was too big to post here. Also it requires imlib2 and gliblib dependencies:
https://github.com/derf/feh

Last edited by greengeek on Wed 01 Nov 2017, 14:45; edited 6 times in total
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4748
Location: Republic of Novo Zelande

PostPosted: Sat 28 Oct 2017, 15:52    Post subject:  

Just gave feh a try and it works but I would prefer not to have to rely on it and its dependencies if there is any other way to do this.

Slideshow syntax for feh is:

Code:
# feh -D1
(1 second delay per image)

Code:
# feh -D0.1
(0.1 second delay per image)
Last edited by greengeek on Sat 28 Oct 2017, 15:55; edited 1 time in total
Back to top
View user's profile Send private message 
ally


Joined: 19 May 2012
Posts: 1649
Location: lincoln, uk

PostPosted: Sat 28 Oct 2017, 15:54    Post subject:  

quick google...

http://ffmpeg.gusari.org/viewtopic.php?f=25&t=39

hth

Smile
Back to top
View user's profile Send private message Visit poster's website 
greengeek


Joined: 20 Jul 2010
Posts: 4748
Location: Republic of Novo Zelande

PostPosted: Sat 28 Oct 2017, 16:00    Post subject:  

Hi Ally - thanks for this - ffmpeg seems a good option. I wonder if there is a way to have the output displayed in a "live window" rather than as an mp4 output file?
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11282
Location: Gatineau (Qc), Canada

PostPosted: Sat 28 Oct 2017, 16:30    Post subject:  

greengeek wrote:
Just gave feh a try and it works but I would prefer not to have to rely on it and its dependencies if there is any other way to do this.

Slideshow syntax for feh is:

Code:
# feh -D1
(1 second delay per image)

Code:
# feh -D0.1
(0.1 second delay per image)

Hi greengeek.

IIRC, qiv requires no dependencies. It is very similar
to feh otherwise. Qiv offers full screen, slide show and delay for display (whatever
is needed) options as well.

IHTH.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2659
Location: South Australia

PostPosted: Sat 28 Oct 2017, 16:57    Post subject:  

feh offers full screen as well by pressing the v key. Press h to pause the slide show.
_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
greengeek


Joined: 20 Jul 2010
Posts: 4748
Location: Republic of Novo Zelande

PostPosted: Sun 29 Oct 2017, 12:59    Post subject:  

musher0 wrote:
IIRC, qiv requires no dependencies. It is very similar to feh otherwise.
Thanks musher - I just tried downloading qiv source and attempted a compile but I get the following eror:
Code:
/bin/sh: imlib-config: command not found
main.c:9:22: fatal error: gdk/gdkx.h: No such file or directory
compilation terminated.
make: *** [main.o] Error 1
#

I guess this means it needs imlib which is one of the dependencies of feh also. I will have another go tonight - compiling is a weak point for me but I need the practice...

EDIT : I think I'm almost there now - I was trying to compile an older, more basic version of qiv and it needed imlib version 1 and the only pet I had available was imlib2. Now that I have tried to compile the latest version of qiv it is happy with imlib2 and started up ok automatically when I asked "make install". Just got to figure out the best way to use it..

feh works really well so it will be interesting to compare the two.

Still hoping to find a viewer that works without any dependencies though.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4748
Location: Republic of Novo Zelande

PostPosted: Sun 29 Oct 2017, 13:32    Post subject:  

OK - i got qiv going.
Just for the record the syntax for my needs is:
Code:
# qiv --slide -d0.2 *jpg


I have made a pet which I can use on my Slacko 5.6 derivative - this pet contains a cutdown version of the imlib2 dependencies so do not use it if you have imlib already installed or if you need a full set of imlib loaders to handle other image formats - this is for jpg only.

***WARNING***
Do not use this pet if you use a savefile.
Only try this pet on a "live" puppy (ie: fresh boot of Slacko 5.6)

This pet only handles .jpg files (had to chop the rest of the loaders to get below the 256Kb limit for attachments).

Load the pet, navigate to your image directory, then in a terminal enter:

qiv --slide -d0.2 *jpg

Shorten the delay from 0.2 to 0.1 if you want "fast forward" through the images.
qiv_and_S56_jpgdeps_gg-0.0.pet
Description 
pet

 Download 
Filename  qiv_and_S56_jpgdeps_gg-0.0.pet 
Filesize  239.56 KB 
Downloaded  12 Time(s) 
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11282
Location: Gatineau (Qc), Canada

PostPosted: Sun 29 Oct 2017, 15:44    Post subject:  

Hi greengeek.

If you can get that delay down to 0.04 second, you'll get 24 images per second,
and you'll have yourself a movie !!! Laughing Just teasing !

(BTW, I don't know of any regular picture viewer that could handle such a speed...)

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4748
Location: Republic of Novo Zelande

PostPosted: Mon 30 Oct 2017, 01:16    Post subject:  

musher0 wrote:
If you can get that delay down to 0.04 second, you'll get 24 images per second, and you'll have yourself a movie !!!.
That raises a good question - would I be better off capturing the webcam output as a movie and stripping still frames out of it? That may possibly be a method that takes less overall storage space (depending on formats?) - but I decided to capture jpg images because I thought that might give the best quality "stills".

But is there a way to get good quality stills (and efficient storage space usage) by creating a movie format direct from the webcam? Maybe someone has already done this?
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11282
Location: Gatineau (Qc), Canada

PostPosted: Mon 30 Oct 2017, 11:33    Post subject:  

Hi greegeek.

I know nothing about video security software, unfortunately, so I cannot help you with
that decision.

Maybe somewhere on the Web, someone has produced a comparison table for such
things, with pros and cons? Just a thought.

Good luck.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
souleau


Joined: 23 Oct 2016
Posts: 114

PostPosted: Mon 30 Oct 2017, 12:14    Post subject:  

musher0 wrote:
If you can get that delay down to 0.04 second, you'll get 24 images per second,
and you'll have yourself a movie !!! Laughing Just teasing !

(BTW, I don't know of any regular picture viewer that could handle such a speed...)


Feh can do that. I use feh for exactly such purpose to have an animated desktop screen buildup at boot, loading conky drawing it line by line top down, speed 0.05., plus, I have a big version of my avatar in the middle of the screen, and it blinks its eye once, speed 0.03.

As long as the images are a reasonably small size, these speeds are achievable. And so, yes, animations.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4748
Location: Republic of Novo Zelande

PostPosted: Tue 31 Oct 2017, 12:22    Post subject:  

Is "xloadimage" available within anyone elses Puppy? It is missing from my Slacko 5.6 but seems as if it should be part of any Linux that uses X.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11282
Location: Gatineau (Qc), Canada

PostPosted: Tue 31 Oct 2017, 12:56    Post subject:  

greengeek wrote:
Is "xloadimage" available within anyone elses Puppy? It is missing from my Slacko 5.6 but seems as if it should be part of any Linux that uses X.

Hi gg.

It still exists, but it may not be what you want. The (c) has not been renewed since
1992, and there is no jpg or png support according to:

http://sioseis.ucsd.edu/xloadimage.html

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2313
Location: Queensland

PostPosted: Wed 01 Nov 2017, 03:01    Post subject:  

Pho image viewer does a number of things including slideshow

http://shallowsky.com/software/pho/

https://github.com/akkana/pho

easy to compile, just run "make" in the extracted directory

to make it smaller run "strip --strip-unneeded pho"
pho-1.0pre1.tar.gz
Description  Binary compiled in Carolina 1.3
gz

 Download 
Filename  pho-1.0pre1.tar.gz 
Filesize  27.01 KB 
Downloaded  21 Time(s) 

_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [33 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0750s ][ Queries: 14 (0.0042s) ][ GZIP on ]