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 22 Nov 2014, 10:20
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Take a Shot! - yet another screenshot utility...
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 5 [62 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
SFR


Joined: 26 Oct 2011
Posts: 1097

PostPosted: Tue 03 Jun 2014, 15:28    Post subject:  

Version 1.4:

- output formats: removed - TGA, PCX, PPM; added - GIF
- added options to take sequence of snapshots
- 'Add datestamp' checkbox now adds only date
- new checkbox 'Add timestamp'
- program icon changed (/usr/local/lib/X11/mini-icons/mini-camera.xpm)
- lots of minor fixes

Now, a bit about the new 'sequence' feature.
When you select any of output formats except GIF, then if "Number of frames" is greater than 1, a subfolder will be created in which the sequence of snapshots will be saved.
In case of GIF, the result is already assembled animation.

'Number of frames' can be 1-999
'Frames per second' can be 1-10

So (see the first screenshot) having 250 frames and 10 fps we get 250/10=25 seconds of animation if it's GIF (see the second screenshot) or 250 "loose" images if it's PNG/JPG/BMP/TIF.

Just take seriously the built-in warning regarding huge GIFs - if it's too big, an attempt to view it in image viewer may lock up the system!

The new version was tested only on Slacko-5.7, so heads up about behaviuor in other Puplets are welcomed!

First post updated!

Have fun &
Greetings!
Screenshot.png
 Description   
 Filesize   29.95 KB
 Viewed   448 Time(s)

Screenshot.png

Screenshot.gif
 Description   
 Filesize   224.81 KB
 Viewed   454 Time(s)

Screenshot.gif


_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.

Last edited by SFR on Tue 03 Jun 2014, 17:53; edited 2 times in total
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2665
Location: New Zealand

PostPosted: Tue 03 Jun 2014, 15:31    Post subject:  

All that in 220kb - nice!
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1097

PostPosted: Tue 03 Jun 2014, 15:35    Post subject:  

greengeek wrote:
All that in 220kb - nice!

gifsicle --optimize=3 does that. Very Happy
Unoptimized takes ~3.5M.

Btw, if gifsicle is present, optimization is applied automatically.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Thu 05 Jun 2014, 12:39    Post subject:  

Many thanks!
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
nilsonmorales


Joined: 15 Apr 2011
Posts: 516
Location: El salvador

PostPosted: Fri 06 Jun 2014, 14:54    Post subject: review spanish translate for new package  

Good job!!
tas.mo.tar.gz
Description  Traduccion en español
gz

 Download 
Filename  tas.mo.tar.gz 
Filesize  1.77 KB 
Downloaded  48 Time(s) 

_________________
My blog


Back to top
View user's profile Send private message MSN Messenger 
SFR


Joined: 26 Oct 2011
Posts: 1097

PostPosted: Fri 06 Jun 2014, 16:16    Post subject:  

Thanks Nilson, tas_NLS-1.4.pet uploaded.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4436
Location: Earth

PostPosted: Fri 06 Jun 2014, 16:23    Post subject:  

@SFR, Thanks for this update. I was hoping for such a tool to automate what we, as testors, do to support the developers of Puppy distros.

You have made our job so much easier with this update. We can now begin providing more meaningful pictures of what we want others to see.
THANKS!!!!!

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1469
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Fri 06 Jun 2014, 17:36    Post subject:  

Doesn't create a gif in Wary 5.5, seems to be a problem with ffmpeg.

Code:
 built on Jul 25 2012 04:52:58 with gcc 4.3.4
  configuration: --prefix=/usr --cpu=i486 --enable-shared --enable-gpl --enable-nonfree --enable-x11grab --enable-small --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-zlib --enable-postproc --disable-debug --enable-bzlib --enable-version3 --enable-libtheora --enable-swscale
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  8. 0 / 53.  8. 0
  libavformat  53.  5. 0 / 53.  5. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[x11grab @ 0x8064390] device: :0.0+nomouse -> display: :0.0 x: 0 y: 0 width: 1440 height: 900
[x11grab @ 0x8064390] shared memory extension found
Playing WAVE '/usr/share/audio/beep_high.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
[x11grab @ 0x8064390] Estimating duration from bitrate, this may be inaccurate
Input #0, x11grab, from ':0.0+nomouse':
  Duration: N/A, start: 1402056185.943210, bitrate: 1036800 kb/s
    Stream #0.0: Video: rawvideo, bgra, 1440x900, 1036800 kb/s, 25 tbr, 1000k tbn, 25 tbc
[buffer @ 0x805fc80] w:1440 h:900 pixfmt:bgra tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x805fd10] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
Impossible to convert between the formats supported by the filter 'auto-inserted scaler 0' and the filter 'out'
Error opening filters!
gifsicle:<stdin>: empty file

_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1097

PostPosted: Fri 06 Jun 2014, 17:58    Post subject:  

Geoffrey wrote:
Doesn't create a gif in Wary 5.5, seems to be a problem with ffmpeg.

Ok, thanks for the info.
I just checked TAS vs. Wary in VBox - the problem was with PIX_FMT, which was set to pal8 for GIF.
Now for all formats it's just rgb24, like it was before.

Try tas-1.5, should be ok now.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1469
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Sat 07 Jun 2014, 03:11    Post subject:  

SFR wrote:
Geoffrey wrote:
Doesn't create a gif in Wary 5.5, seems to be a problem with ffmpeg.

Ok, thanks for the info.
I just checked TAS vs. Wary in VBox - the problem was with PIX_FMT, which was set to pal8 for GIF.
Now for all formats it's just rgb24, like it was before.

Try tas-1.5, should be ok now.

Greetings!


Thanks works a treat, an option to loop the gif would be nice, maybe even scale the image.

gifsicle works great at reducing the size, the original gif was 46.1 MB, down to 205.4 kB.

Code:
ffmpeg    -s $(xrandr  | awk '/, current /{ gsub(/\,/,""); print $8"x"$10}') -f x11grab -r 10  -i :0.0 -b 500k -pix_fmt rgb24 -y -loop_output 0 -vf scale=640:480 output.gif


Code:
gifsicle -V -i --optimize=3 --conserve-memory < /root/output.gif > /root/output2.gif
output2.gif
 Description   Gif looped and scales to 640x480
 Filesize   200.55 KB
 Viewed   284 Time(s)

output2.gif


_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1097

PostPosted: Sat 07 Jun 2014, 06:00    Post subject:  

Quote:
an option to loop the gif would be nice

Hmm, here in Slacko-5.7 GIFs are looped (∞) by default and -loop_output isn't recognizable anymore in ffmpeg-2.0.x (seems it's been deprecated years ago).
-loop works fine, but not with Wary's ffmpeg-0.8.12...
I'll include some workaround in future release, probably sth like:
[ "`ffmpeg --help 2>&1 | grep 'loop_output'`" ] && loop_output || loop

Quote:
maybe even scale the image

Perhaps, common for all output formats, option "Scale to:" would be a useful addition indeed, I have to rethink that...

Thanks again for the feedback &
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1097

PostPosted: Sun 08 Jun 2014, 06:45    Post subject:  

Version 1.6:

- fixed GIF looping issue in older versions of ffmpeg (thanks to Geoffrey)

- added "Scale (%)" option - in percents, so aspect ratio is preserved.
Range is 25%-100%.

- added command-line option "quick", which instantly takes a snapshot of the entire screen (incl. mouse cursor) and saves Quickshot.png to $HOME dir.
Usefull for binding with e.g. PrtSc key.
Invocation: tas quick

- handling of ffmpeg errors is now internal - no more logging to the console, but it's possible to view the log via xmessage (if something went wrong).

- destination directory doesn't have to be already there, it will be created if doesn't exist

- dir & filenames can contain any (hopefully) characters now, except % (which is used by ffmpeg to enumerate output files) and, only for filenames, / character, which will be replaced with _ char.

Btw, strange thing I noticed, while testing in Wary, Precise, Lucid and Carolina, is that resulting GIFs are being played ~1.5x faster than they should, regardless of resolution, fps, anything.
For example, having 10fps we'll get GIF with a 6ms delay, but should be 100/10=10ms.
Dunno why's that, probably too old ffmpeg, but fortunately I managed to fix that thanks to gifsicle, by reapplying the correct delay.

First post updated!

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 516
Location: El salvador

PostPosted: Sun 08 Jun 2014, 11:13    Post subject: Spanish .mo file 1.6  

Saludos.
tas-1.6.mo.tar.gz
Description  Locales en español para tas-1.6
gz

 Download 
Filename  tas-1.6.mo.tar.gz 
Filesize  1.87 KB 
Downloaded  48 Time(s) 

_________________
My blog


Back to top
View user's profile Send private message MSN Messenger 
SFR


Joined: 26 Oct 2011
Posts: 1097

PostPosted: Sun 08 Jun 2014, 11:38    Post subject:  

Thanks again, tas-NLS-1.6.pet updated.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
greengeek

Joined: 20 Jul 2010
Posts: 2665
Location: New Zealand

PostPosted: Sun 08 Jun 2014, 15:21    Post subject:  

Amazing. This is fantastic SFR. Works perfectly in my derivative of slacko5.6
Love the fact that it doesn't overwrite previous screenshots (my usual annoying trick). Such an easy way to capture activity on the desktop. Great stuff.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 5 [62 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
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.0993s ][ Queries: 12 (0.0116s) ][ GZIP on ]