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 Fri 16 Nov 2018, 17:14
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Slideshow into a ScreenSaver? SOLVED -- but Improving
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [38 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
musher0

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

PostPosted: Thu 06 Sep 2018, 00:37    Post subject:  

Hi.

I guess I'm now late to the party since mikesLr has marked this as solved.

And I suppose some malicious tongues will say that I wish to give
Mike_Walsh some competition. Not so.

Not that I wish to be prima donna, or worse a belladonna... Question but I did
publish the following slide-show script on 2016-11-09 or there abouts and it
went unnoticed. Was it on this board or in the French section or somewhere
else? But does it matter?

If started from console, this script has a few settings for viewing
-- all or an alphabetical selection of pictures in a directory
-- definition of the delay.

This is the help panel called from
Code:
diapo-qiv h
from console:
Code:
####
# /usr/local/bin/diapo-qiv.sh
#
### Goal : slideshow with the qiv viewer. (https://spiegl.de/qiv)
### Usage (through examples)
# Open a terminal in a directory of jpg, jpeg or png images, and
# then type one of the following commands:
## 1) diapo-qiv.sh
#       Will display during 6 seconds the jpg or png files in the directory
#       (six seconds being the default display duration in this script);
#
## 2) diapo-qiv.sh 4
#       Will display during 4 seconds the jpg or png files in the directory;
#
## 3) diapo-qiv.sh 5 B
#       Displays during 5 seconds the jpg or png files in the directory
#       whose name begins with B or b;
#
## 4) diapo-qiv.sh 3 B G
#       Displays during 3 seconds the jpg or png files in the directory
#       whose name begins with B or b, and G or g;
#
## 5) diapo-qiv.sh 7 B G M
#       Displays during 7 seconds the jpg or png files in the directory
#       whose name begins with B or b, G or g, and M or m;
#
## 6) diapo-qiv.sh 50 B G M X
#       Displays during 50 seconds the jpg or png files in the directory
#       whose name begins with B ou b, G or g, M or m, and X or x;
#
## 7) diapo-qiv.sh h
#       Displays this help message.
#
### Important Notes:
#       This script accepts from 0 to 5 parameters only;
#       always type the duration paramater first;
#       the display duration is either from 3 to 15 seconds, or
#       20, 25, 30, 40, 50, 60 or 90 seconds;
#       type the 1st letter of the filename in UPPERCASE;
#       this script displays images in jpg, jpeg or png formats;
#       if you type a wrong character, the script will remind you;
#       files with a jpeg extension will be renamed as jpg's.
#
###
# (c) Christian L'Écuyer (alias musher0 in the Puppy forum),
#     Gatineau (Qc), Canada, 2016-11-09. GPL3. Rev. 2016-11-25.
####

You can pick up the full bash script from here now:
https://privatebin.net/?31d4d59423cac1c9#8nSBkisukTOnSMGOMGD/QEmkSIrsPgk30rWfQ3Mstl0=

Seeing Mike_Walsh's panel above, I remembered that if you start from a
ROX directory full of pictures with the Shift-! hotkey and then type
< diapo-qiv > (without the chevrons) in the rectangle, it defaults to all
pictures in the dir., with an exposure (delay) of 6 seconds.

Please see screen cap.

A pet of the slide-show script is attached. The pet contains no *.desktop file
and obviously no menu entry -- since you don't need any if you start your
slide-show this way.

You will also need a separate pet or deb or rpm or whatever archive
for the qiv utility itself.

Please do not come crying to papa complaining that your slide-show does
not work if you have not downloaded and installed those two items.

As usual, people will do what they want with this.

Best regards.
diapo-qiv-0.1.pet
Description 
pet

 Download 
Filename  diapo-qiv-0.1.pet 
Filesize  2.18 KB 
Downloaded  22 Time(s) 
With-Shift-exclamation-mark.jpg
 Description   That's actually the "Shift-!" key combo. Then you type "diapo-qiv" in the box,
and then you hit the "Enter" key.
 Filesize   160.58 KB
 Viewed   311 Time(s)

With-Shift-exclamation-mark.jpg


_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4373
Location: King's Lynn, UK.

PostPosted: Thu 06 Sep 2018, 05:49    Post subject:  

Hi, musher0.

Listen, mate; I never see anything we do here as 'late to the party'..! Laughing

Okay, I know this is going to smack very slightly of a recently-departed individual. But you-know-who had, I suppose, some 'method in his madness'.

Many forums frown on 'necro-posting', and like to keep everything current, up-to-date, topical, and in its own little cubbyhole. But in all honesty, that's where the greatest of this Forum's treasures lies.....in the past.

And I'll not hear a word about 'competition'. What competition?

I couldn't care less how many different ways we have available for doing the same thing. The more, the merrier, I say. Not everyone will want to perform a given action the same way; I know I prefer to have plenty of choice myself.

And, to me, that's what it all boils down to. We provide Puppians in general with as wide a choice as possible... The decision is then down to them.

Keep the alternatives coming..!


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

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

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

PostPosted: Thu 06 Sep 2018, 06:09    Post subject:  

Thanks, Mike.
_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4373
Location: King's Lynn, UK.

PostPosted: Thu 06 Sep 2018, 10:17    Post subject:  

Afternoon, all.

Right. Now then; here's 'QIV-slideshow Mk 2'...





With further assistance from Fred/MochiMoppel & crew, have added a selector button for full-screen. Also added one for enabling/disabling the 'status-bar' in full-screen mode (not applicable in 'standard' viewing mode, since here it appears to be hard-coded to always show.)

There's also an 'Information' button which brings up a second YAD 'text' window, explaining some of the functions (keyboard and mouse-controlled), and a 'Quit' button to, well, quit.

Re-uploaded to the previously-mentioned location:-

https://drive.google.com/drive/folders/1V-Nd1ZSs7fEeuVXIpFGOgj41EbpMSlqQ?usp=sharing

....so, help yourselves to the appropriate version.

Credits are due to:-

Fredx181
MochiMoppel
(and, of course) Smokey01.....whose YAD tutorial has proved absolutely invaluable. Thanks to all.


Enjoy.

Edit:- Have added a special version just for Lucid 5.2.8.7. This makes use of an older version of qiv - 2.2.2 instead of 2.3.1 - and includes libImlib2.so.1, required by that version. YAD v0.40.0 works fine in Lucid, and full functionality is still there.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------


Last edited by Mike Walsh on Thu 06 Sep 2018, 16:10; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
mikeslr


Joined: 16 Jun 2008
Posts: 2779
Location: 500 seconds from Sol

PostPosted: Thu 06 Sep 2018, 10:37    Post subject:  

Please accept my apology, musher0.

I seem to have lost the ability to capture all the important details of a writing when it is scanned the first time. So I missed your inclusion of the diapo-qiv-lst.sh.zip attached to your initial post on this thread. Embarassed Then, again, seems everyone else did as well. Smile

Since I agree with Mike Walsh about the value of choice, call it a happy accident. Had we realized the full import of your post it is unlikely that Mike Walsh would have struggled to obtain his solution. And as learning new things is itself rewarding, he would not have increased his knowledge of Yad; and I, by following the discussion on the Yad thread --at least for the present-- have a better understanding of Yad's syntax.

And thanks for the more detailed explanation of your solution; and the diapo-qiv-0.1.pet you attached.

mikesLr
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Thu 06 Sep 2018, 17:29    Post subject:  

No apologies are necessary, mikeslr. But thanks.
_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
greengeek


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

PostPosted: Fri 07 Sep 2018, 03:36    Post subject:  

I have previously trialled qiv but found it needed an imlib dependency. In the end I settled on "pho" which was tiny.

Also, Geoffrey had used pho before on Carolina and his pet is 27kb (no dependencies)

I don't know if it can be used in the way mikeslr intended as a screensaver - but I guess that depends on how a screensaver function is triggered.

Some discussion about it here:
http://www.murga-linux.com/puppy/viewtopic.php?p=972923#972923

Stu90 had a terminal wallpaper changer here:
http://murga-linux.com/puppy/viewtopic.php?p=628144#628144
Maybe either of these two image swappers can be given a gui to sweeten them?
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4373
Location: King's Lynn, UK.

PostPosted: Fri 07 Sep 2018, 09:07    Post subject:  

Hiya, GG.

Imlib2 appears to be a standard requirement for qiv in any case. I've had to provide it in the package I've put together for Lucid, since Lucid only comes with the original Imlib library.....and this wants the newer one. Most later Pups come with it as standard; certainly, it ran straight off in my copy of 560.

Amazingly, I managed to download the older qiv, initially, through Lucid's PPM, from oldreleases.ubuntu.com; I think Richard must have done some tweaking to Lucid's PPM config files!

It's a neat little viewer, though.....in the best traditions of Puppy.


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

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

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

PostPosted: Sat 08 Sep 2018, 21:18    Post subject:  

Hello all.

mikesLr's question keeps bugging me!

It sure would be nice if we could have a sound and picture "screensaver /
slideshow". And useful, too, for many occasions: family gatherings (family
pictures), romantic setting (to seduce Madame Musher again!), maybe even
as some kind of ad playing on a recycled compy on a shelf in your small
shop (why not?).

~~~

I've been exploring a couple of avenues with this in mind. One of these
avenues consists of using ffplay as basis. As I hope everybody knows, ffplay
(or avplay) is traditionnally used to play movie formats.

I don't know how many Pups come ex-factory with ffplay or the equivalent
avplay, but the following works for one (1) piece of music and one (1) picture:
Code:
ffplay -nodisp 01-Anna\'s_Theme.ogg & ffplay MV5BMjIyMjE3MjMwN15BMl5BanBnXkFtZTcwODUyNzkwNQ\@\@._V1_.jpg

Notes:
-- Don't pay much attention to the individual picture or piece in that
one-liner. The above uses the soundtrack of "The Red Violin" and pictures
of it available on the Web.

But this one-liner can most easily be replicated if you put even a single
piece of music, and a single jpg or png picture in a dedicated directory.
(I say "single" for now; but it obviously will have to become a "list" in
short order.)

-- it seems that the two instances of ffplay have to be in that order (music,
then picture).

-- with the < -nodisp > parm, ffplay shows no "waves" or whatever in a
"movie" window, just the description and stats of the musical piece, like any
CLI music player (e.g. mpg321, ogg123, SoX's "play", etc.).

At that point we could use a urxvt wrapper window of perhaps 1 line x 90
col. to show only the last line of the musical piece, the one that "wiggles"
showing the sound stats, and place that little window as info below or
above the slideshow window itself.

-- Once the script has some substance to offer, some type of nice GUI (such
as M_W's above) could be considered / added.

~~~

First advantage would be: ease of distribution. Only a script would be
needed since the Pup would already have the "motor" (ffplay/avplay) for
doing this.

Second advantage would be: no limitation of formats. Ffplay can play any
musical format you throw at it, even the ones proprietary to M$ (I am
thinking here of the popular wma format in particular). And of course it can
display any picture format.

~~~

I'll try to keep you posted.

Anybody having this kind of experience with ffplay or similar, please chime
in to share it? I'd be most grateful. I do not wish to reinvent the wheel if I
can avoid it!

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Sat 08 Sep 2018, 21:52    Post subject:  

Hello all.

I just read something about creating a musical slide show with Impress:

https://photo.stackexchange.com/questions/39099/what-software-should-i-use-to-create-a-slideshow-with-music
(q.v. Answer # 1)

Anybody knows anything about this? Anybody ever tried it?

TIA.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 4373
Location: King's Lynn, UK.

PostPosted: Sun 09 Sep 2018, 05:24    Post subject:  

Hi, musher0.

Mm. Interesting idea.

I don't know too much about Puppy's multimedia 'engines' over time. The one thing I am aware of is this; avplay was the older 'standard' in this respect.....ffplay has all but superseded it (though I think I read somewhere that Phil Broughton had returned to avplay (for some reason) when he originally put Tahrpup 6.0.CE together, some 4 years ago).

I could, of course, be completely wrong. It has been known! Very Happy I'm quite happy to be corrected if necessary...


Mike. Wink

_________________
MY PUPPY PACKAGES | 'Thanks' are always appreciated!
--------------------------------------

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


Joined: 19 Oct 2010
Posts: 1111
Location: UK

PostPosted: Sun 09 Sep 2018, 06:07    Post subject:  

Hi musher0,

For an example of an alternative approach to doing this just click on the following link:

https://goo.gl/i2mnV6

Whilst the above is a video of a slideshow of wallpapers it could equally well be family photographs with music or commentary of your choice.

To download the mp4 ( 153MB ) just press Shift + D during playback.

Looped local playback of of such an mp4 using vlc or mpv may be assigned to a desktop icon with a hotkey combination e.g. Shift + Pause.

I suggest that you run this past Madame Musher and if interested, come back to me for more details plus a pet that can easily be modified to provide this feature.

_________________
Regards ETP

Kennels
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Sun 09 Sep 2018, 09:49    Post subject:  

@ETP:
Oh, Madame Musher just loved Nick Drake's music! And except for the
abstract art, she found most pictures breath-taking.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 2779
Location: 500 seconds from Sol

PostPosted: Sun 09 Sep 2018, 10:21    Post subject:  

Hi All,

Pre-2nd-cup of coffee, so too soon for me to think logically. But not to soon to see a better thread title was required.
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Sun 09 Sep 2018, 11:48    Post subject:  

Thanks, mikeslr!
You're having a delicious Costa-Rican brown, perhaps? Smile

Anyway, I came back to inform everyone that some "wheels" already exist
in Linux to create "musical slideshows", as shown in this discussion.

If anyone has experience with any of the following apps:

-- Imagination
-- PhotoFilmStrip
-- KdenLive
-- Videoporama
(the URLs for these apps are in the discussion link above)

or even the one-liner: < ffmpeg -f image2 -i image%d.jpg video.mpg >,

please chime in and share? It will be much appreciated. Plus of course
ETP's much awaited suggestion.

Ladies and Gentlemen, I think "we're on a roll!" Smile

BFN

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [38 Posts]   Goto page: Previous 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.0980s ][ Queries: 12 (0.0230s) ][ GZIP on ]