Slideshow into a ScreenSaver? SOLVED -- but Improving

Using applications, configuring, problems
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#16 Post by musher0 »

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... :?: 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: Select all

diapo-qiv h
from console:

Code: Select all

####
# /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/?31d4d59423cac1c ... WfQ3Mstl0=

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.
Attachments
diapo-qiv-0.1.pet
(2.18 KiB) Downloaded 81 times
With-Shift-exclamation-mark.jpg
That's actually the &quot;Shift-!&quot; key combo. Then you type &quot;diapo-qiv&quot; in the box,
and then you hit the &quot;Enter&quot; key.
(160.58 KiB) Downloaded 388 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#17 Post by Mike Walsh »

Hi, musher0.

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

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:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#18 Post by musher0 »

Thanks, Mike.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#19 Post by Mike Walsh »

Afternoon, all.

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


Image


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/ ... sp=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:
Last edited by Mike Walsh on Thu 06 Sep 2018, 20:10, edited 3 times in total.

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#20 Post by mikeslr »

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. :oops: Then, again, seems everyone else did as well. :)

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

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#21 Post by musher0 »

No apologies are necessary, mikeslr. But thanks.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#22 Post by greengeek »

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/viewto ... 923#972923

Stu90 had a terminal wallpaper changer here:
http://murga-linux.com/puppy/viewtopic. ... 144#628144
Maybe either of these two image swappers can be given a gui to sweeten them?

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#23 Post by Mike Walsh »

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:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#24 Post by musher0 »

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: Select all

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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#25 Post by musher0 »

Hello all.

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

https://photo.stackexchange.com/questio ... with-music
(q.v. Answer # 1)

Anybody knows anything about this? Anybody ever tried it?

TIA.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#26 Post by Mike Walsh »

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! :D I'm quite happy to be corrected if necessary...


Mike. :wink:

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

#27 Post by ETP »

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
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#28 Post by musher0 »

@ETP:
Oh, Madame Musher just loved Nick Drake's music! And except for the
abstract art, she found most pictures breath-taking.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#29 Post by mikeslr »

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.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#30 Post by musher0 »

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

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!" :)

BFN
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

#31 Post by ETP »

@ Monsieur et Madame Musher,

If you select the back left facing arrow towards the top of the screen you can access
the complete shared video album where there are 2 complete Nick Drake albums available for download [ Shift + D when playing or paused ]
(59.40 & 41.45)
There is also a 3rd Nick Drake video (4.06) at the bottom left which just has his
"Northern Sky" track.

@ Mike
There is still life in this old dog. :lol:
I will post details of my manual method tomorrow.
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Solving The avplay ffplay conumdrum

#32 Post by mikeslr »

Hi musher0, Mike Walsh & All,

I wasn't aware that avplay had been the standard inclusion in older puppies. My exposure to the problem came running Tahrpup based on Trusty Tahr in which Ubuntu had opted for avconv/avplay rather than ffmpeg/ffplay which it had used in Lucid and precise. Tahrpup's other applications, such as ffconvert and pmusic, expected ffmpeg. By Xenial Xerus Ubuntu had switched back to ffmpeg/ffplay eliminating the problem in Xenialpup.

The simplest work-around in Tahrpup was to create a symbolic link to avconv in /usr/bin named ffmpeg: Code "ln -s avconv ffmpeg".

In Puppies which include ffmpeg/ffplay avconv/avplay will not be present, and vice-versa.

Currently ffmpeg/ffplay seems to be the standard inclusion. While the reverse procedure is equally possible, for now at least, in order to write one application which fits all:

Test for the presence of avplay or avconv and, if present, write symbolic links to them named, respectively, ffplay and ffmpeg.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#33 Post by greengeek »

Just some further information about "pho"

(It is so lightweight and easy to use - less than 30Kb and no extra dependencies!)

The pet for Slacko 5.6 is here

Run the slideshow as follows:

pho -s3 -p -r /images_directory/*.*

-s3 means slideshow mode with 3 second delay
-p means presentation mode ie: fullscreen, no borders
-r means repeat the show after all images have been displayed.

The pet linked above should work on many puppies but if you wish to compile for your own puppy the homepage for pho is here:
https://www.shallowsky.com/software/pho/

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

#34 Post by ETP »

Hi musher0,

The download link to the required pet [ BlueScreenSaver.pet (28.9MB) ] can be found in this post which gives a bit more detail:

http://murga-linux.com/puppy/viewtopic. ... 585#784354

OOTB that pet should work if you have vlc installed and will play the included webm video.
It contains a single script who's content is as follows:

Code: Select all

#!/bin/sh
# ETP June 2014 - A manually invoked screen saver. (Press Ctrl+q to close)
vlc --fullscreen --loop /root/noob/blue_ss.webm &
Assuming that you downloaded the mp4 video of the wallpaper slideshow I would suggest modifying the script as follows
so that it plays that video and provision is made for using either vlc or mpv. (Move the downloaded video to the noob folder)

Code: Select all

#!/bin/sh
# ETP June 2014 - A manually invoked screen saver. (Press Ctrl+q to close)
#vlc --fullscreen --loop /root/noob/blue_ss.webm &
#
#Modified for Musher 9th Sept 2018
#
#vlc --fullscreen --loop /root/noob/Wallpapers.mp4 &
#
#                          *** Or *** (Transpose hashes)
#
mpv --fs --loop-file /root/noob/Wallpapers.mp4 & # (Press q to close)
Once tested you will no doubt wish to substitute an mp4 slideshow of you own. The wallpapers video was made by uploading
them to an album on Google Photos which provides free, unlimited storage and has its own slideshow mode.

That slideshow running in the browser was then recorded with SSR whilst also playing a Nick Drake album in mpv to provide
the background music. For family photographs you may wish to record some commentary using a microphone to remind you
of events, places & dates.

Google Photos despite its name handles albums of both videos & images.
Whilst I used SSR any desktop recorder that also records audio may be used.
Attachments
image-8.png
Contents of BlueScreensaver.pet &amp; changes to it's .desktop file once dragged onto the desktop.
(78.4 KiB) Downloaded 248 times
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#35 Post by musher0 »

Excellent! Thanks. ETP.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply