(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 01 Oct 2020, 13:18
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Take a Gif!
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Mon 27 Apr 2020, 18:11    Post subject:  Take a Gif!
Subject description: Create animated .gif screencast, a modified "Take a Shot"
 

Take a Gif! (TKAGIF) a screencast/screenshot utility.

Edit 2020-05-17 attached v2.0, that has options for High, Medium and Low quality, more info here:
http://murga-linux.com/puppy/viewtopic.php?p=1058241#1058241

Can be used to directly create a "visual how-to" animated .gif of the Desktop (or part), as seen sometimes on this forum (e.g. by Mike Walsh and myself)

This is a very much modified Take a Shot! by SFR (TAS) (as the name may suspect already).
The main difference is that this is much more focused on making an animated .gif screencast.
TAS can also make a GIF screencast, but not in a very advanced and/or easy way IMHO.

With 'Take a Gif' I tried to accomplish that the resulting .gif filesize is as small as possible but with reasonable quality.

Features:
- A checkbox for low quality .gif, depending on duration and scaling the resulting filesize can be less than 256K (so small enough to attach at this forum).
- Set duration
- When duration is set to 0, you can stop capturing manually by clicking a tiny X button at the far top-left of the screen
- With option "Region" you can draw a retangle, and will "show region" during the capture.
(this using "scrox" by William McEwan, it's included in the .pet attached).
- Included all the other options that TAS has (e.g. jpg, png format screenshot, include mouse pointer, etc..)
Note: After capturing to .gif, it may take some time to process (first captures to a temp. .mkv video, which will be converted to .gif, this is the best way to get small filesize .gif)

Requirements: ffmpeg (and scrox, as said, it's included).
I'm not sure if it works well with an old ffmpeg version
Tested on BusterPup and BionicPup

Many thanks to the author and contributers of TAS !!

Demo gif:


Fred
tkagif-2.0.pet
Description  Take a Gif .pet package v2.0, added options for High, Medium and Low quality
pet

 Download 
Filename  tkagif-2.0.pet 
Filesize  70.21 KB 
Downloaded  116 Time(s) 
tkagif-v2.0.jpg
 Description   Take Gif v2.0 added options for High, Medium and Low quality
 Filesize   45.42 KB
 Viewed   238 Time(s)

tkagif-v2.0.jpg

tkagif-1.0.pet
Description  Take a Gif .pet package v1.0
pet

 Download 
Filename  tkagif-1.0.pet 
Filesize  69.94 KB 
Downloaded  150 Time(s) 

_________________
Dog Linux website
Tinylinux blog by wiak

Last edited by fredx181 on Sun 17 May 2020, 06:56; edited 3 times in total
Back to top
View user's profile Send private message 
puppyluvr


Joined: 06 Jan 2008
Posts: 3512
Location: Chickasha Oklahoma

PostPosted: Tue 28 Apr 2020, 03:24    Post subject:  

Very Happy Hello,
Great idea!

_________________
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...
Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


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

PostPosted: Tue 28 Apr 2020, 05:42    Post subject:  

Hey, nice one, Fred..!

Works very sweetly in jrb's 'Quirky64-lite'. Mine's even more of a Frankenstein than the original; I've had to swap the Tahr64 ( k3.14.79 ) kernel for the Xenial64 one ( k4.9.58 ), in order for the audio in this modern HP Pavilion tower to be recognised.

I'm also running one of the 'standalone', statically-compiled ffmpeg packages from John van Sickle.....which perhaps helps. (Does GIF creation make use of ffmpeg? I suspect it does....)

Anyways; very nice too. I'll experiment a bit with it during the course of the day.

Cheers!


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Tue 28 Apr 2020, 05:55    Post subject:  

Hey Mike, glad it works for you. Smile
Quote:
I'm also running one of the 'standalone', statically-compiled ffmpeg packages from John van Sickle.....which perhaps helps. (Does GIF creation make use of ffmpeg? I suspect it does....)

Yes, it uses ffmpeg, and (as I wrote above), I'm not sure which version is required.
(the ffmpeg in Stretchpup, Busterpup and Bionicpup is new enough, that's all I know)

EDIT: Any suggestions for improval ?

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Mike Walsh


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

PostPosted: Tue 28 Apr 2020, 06:35    Post subject:  

@ Fred:-

Quirky64-lite's "infocenter", just as a demo, like.....

[Click to enlarge:-]





(You'll see there's a couple of screen-recorder apps here. Including Will's brilliant WeX, and RecordMyDesktop. That was only added last night; I had no end of fun getting this to run, 'cos I needed to import most of Tahr64's Python set-up to get this one working.....and track down some of the 'pyglib' items from /old-releases/ubuntu/pool, too!)

DogRadio works very sweetly here, too; DeaDBeeF is a 'no-go' in Quirky, for some reason. Segfaults like crazy....

And I prefer a single CPU readout in gKrellM. I don't need one for each of four cores, that's just overkill.....a general indication is all that's required.

Can't think of any 'improvements' ATM. But I may find some.... Laughing

(EDIT:- Hmm; not showing properly, for some reason. Now why is that? )

(EDIT2:- Seems to just be Firefox, for some reason. It's displaying fine in Opera... Ah, well.)


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Tue 28 Apr 2020, 07:01    Post subject:  

Mike Walsh wrote:
(EDIT:- Hmm; not showing properly, for some reason. Now why is that? )

(EDIT2:- Seems to just be Firefox, for some reason. It's displaying fine in Opera... Ah, well.)


For me showing fine in Firefox, looks great!.
Well... now it's so super easy to make, we expect much more GIF visual how-to's from you in the future Laughing Wink

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Tue 28 Apr 2020, 12:49    Post subject:  

Just see now this topic has been moved from Desktop to Graphics section, fine too, but can't see the reason why though.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13653
Location: Arizona USA

PostPosted: Tue 28 Apr 2020, 16:29    Post subject:  

Fred, I think most screen capture programs are in Graphics. It seems to me that's the first place anyone who's looking for a screen capture program would look. If you agree, I'll move Take a Shot to Graphics too. If you think I'm wrong, I'll move it back.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Tue 28 Apr 2020, 17:21    Post subject:  

Flash wrote:
Fred, I think most screen capture programs are in Graphics. It seems to me that's the first place anyone who's looking for a screen capture program would look. If you agree, I'll move Take a Shot to Graphics too. If you think I'm wrong, I'll move it back.


Hi Flash, yes, ok it's fine for me that this topic is in Graphics now (in Desktop also fine, btw), about moving Take a Shot I'm not the one to agree or not, better ask SFR the author, I'd say.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Mike Walsh


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

PostPosted: Tue 28 Apr 2020, 19:25    Post subject:  

fredx181 wrote:
Hey Mike, glad it works for you. Smile
Quote:
I'm also running one of the 'standalone', statically-compiled ffmpeg packages from John van Sickle.....which perhaps helps. (Does GIF creation make use of ffmpeg? I suspect it does....)

Yes, it uses ffmpeg, and (as I wrote above), I'm not sure which version is required.
(the ffmpeg in Stretchpup, Busterpup and Bionicpup is new enough, that's all I know)


Just as an aside, 'ffmpeg --version' in terminal returns v3.3.4 © 2017, so.....reasonably new, methinks. (Certainly new enough to run this A-OK, and definitely more up-to-date than Quirky's original. Puppy's ffmpeg has always been a 'stripped to the bones' minimal version; like, er, 209kb for the original, as against over 46 MB for this one. And that is 'stripped'.....)

Code:
# ffmpeg --version
ffmpeg version 3.3.4-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.4.0 (Debian 6.4.0-4) 20170820
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
#




Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Wed 29 Apr 2020, 02:53    Post subject:  

Mike Walsh wrote:
Puppy's ffmpeg has always been a 'stripped to the bones' minimal version; like, er, 209kb for the original, as against over 46 MB for this one. And that is 'stripped'.....

You can only make a fair comparison when you'd count also the size of all dependencies of the 209kb ffmpeg (dynamically linked), e.g. libavcodec, libavformat, etc.. which the static ffmpeg has builtin.

EDIT: to add: in fact using the static ffmpeg is a waste of space, because other programs (multimedia) depend on the ffmpeg libraries, so then these will be "double" installed.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Makoto


Joined: 03 Sep 2009
Posts: 2267
Location: Out wandering... maybe.

PostPosted: Wed 29 Apr 2020, 04:57    Post subject:  

Fred:

I know that's not optimal/ideal, but isn't it only really an issue if you're low on hard drive/pupsave space?

Just for fun, I took the latest static build from here, identifying as...

Code:
ffmpeg version N-52056-ge5d25d1147-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2020 the FFmpeg developers


...and ran it through UPX.

Code:
upx -9 ffmpeg
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2020
UPX 3.96        Markus Oberhumer, Laszlo Molnar & John Reiser   Jan 23rd 2020

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
  48154236 ->  17975176   37.33%   linux/i386    ffmpeg                       

Packed 1 file.


The result is an ~18MB binary that can still be executed. Very Happy

_________________
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
Mike Walsh


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

PostPosted: Wed 29 Apr 2020, 06:42    Post subject:  

@ Makoto:-

Well; thanks very much for putting me onto that one, mate! It appears to work extremely well indeed.

I've just used it to compress the 46MB ffmpeg 3.3.4 I'm using in Quirky 64.....all the way down to just 15MB. And that's pretty impressive! I'd heard a lot about how good lzma compression is, but that's the first time I've experienced it for myself.....

Code:
# /mnt/sdb2/WORK-1/upx /mnt/sdb2/WORK-1/ffmpeg
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2020
UPX 3.96        Markus Oberhumer, Laszlo Molnar & John Reiser   Jan 23rd 2020

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
  47388192 ->  14769500   31.17%   linux/amd64   ffmpeg                       

Packed 1 file.
#


-----------------------------------------------

I have to agree about the 'waste of space' mentioned by Fred NOT being such an issue for Puppians, however, compared to years ago. As we all replace our hardware over the years, invariably our resources become more plentiful. Witness my own case; the old Compaq tower had a very early 64-bit dual-core CPU, along with only 3 GB of DDR1 RAM. This new HP Pavilion 'mini-tower', conversely, has a modern quad-core processor, running at almost twice the speed, with far more advanced instruction sets; 8 GB of DDR4 RAM, and nearly 5 TB of storage. And by today's standards, that's considered distinctly average....really only a 'cooking' box. I may yet bump this up to 16 GB RAM.....prices are not so 'out-of-the-way' now, and where the old Athlon64 dual-core would have cost around GBP £750-800 when new, this Pentium 'Gold' currently retails for around £55-60.

That's progress, I guess. Anyway....

.....thanks again!

[EDIT:-] I'm going to post about this one. This is too good to pass up, given that many Puppians still are running some pretty elderly hardware.

"Utilities", I think...


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Wed 29 Apr 2020, 07:49    Post subject:  

Makoto wrote:
The result is an ~18MB binary that can still be executed


Wow, that's indeed a big difference compared to 46 MB, thanks.
Yeah, disk space isn't much of an issue nowadays, however for some it may be one of the reasons to choose a small distro like Puppy.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Makoto


Joined: 03 Sep 2009
Posts: 2267
Location: Out wandering... maybe.

PostPosted: Wed 29 Apr 2020, 14:03    Post subject:  

Glad to be of some small help. Smile

I've been using UPX since... I think the mid-90s (gah, has it really been THAT long? Shocked ), when hard drive space really was at a premium. Hadn't thought about how useful it might be for someone else, these days. Embarassed

_________________
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
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.1236s ][ Queries: 13 (0.0616s) ][ GZIP on ]