Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

2 votes
2 answers
756 views
How can I convert an animated gif to indivual frames and then back again to animated gif?
I want to manually modify an animated gif. So I'm trying to convert it to individual (editable) frames, after which I can draw my modification and then re-assemble the frames. First I convert a 31 seconds long mp4 to animated gif : ``` ffmpeg -i Daisies.mp4 -r 15 -vf scale=512:-1 -ss 00:00:03 -to 00...
I want to manually modify an animated gif. So I'm trying to convert it to individual (editable) frames, after which I can draw my modification and then re-assemble the frames. First I convert a 31 seconds long mp4 to animated gif :
ffmpeg   -i Daisies.mp4   -r 15   -vf scale=512:-1   -ss 00:00:03 -to 00:00:06   DaisiesOK.gif
This animated gif is OK. Then I convert this animated gif to individual frames :
magick convert DaisiesOK.gif Daisies.png
The first frame looks OK, except it's in 256 colors, but the next ones are very pale, full of transparent pixels. These frames to animated gif :
magick convert -delay 20 -loop 0 *.png Daisies.gif
Gives a very ugly video, the daisies have white "shadows", the place where they started from (they're swaying) stays imprinted with white daisy edges. If I try to use jpeg instead of png, it's even worse, most of the video is just black. How can I extract the frames preserving all the color information? Does the problem come from imagemagick or from ffmpeg?
Alain Reve (123 rep)
Feb 9, 2025, 05:50 PM • Last activity: Feb 13, 2025, 11:26 AM
0 votes
1 answers
29 views
Are there any editors for script command that allow to fix typos?
I want to record a gif with interaction of my Linux tool (REPL), but it's time consuming to make it perfect without any mistakes when I type the commands. So I was wondering of using script command and then edit it later, but I will probably break the script if I try to edit it. So are there any too...
I want to record a gif with interaction of my Linux tool (REPL), but it's time consuming to make it perfect without any mistakes when I type the commands. So I was wondering of using script command and then edit it later, but I will probably break the script if I try to edit it. So are there any tools that allow to edit the session and timing from script command? Or maybe something that will allow me to write the code that will be automated in the shell with visual feedback? I asked ChatGPT he suggested to use expect, but the output doesn't look good. It can automate a single executable (my program) but it will don't show the shell prompt, how I type the program name, and execute it. ChatGPT also suggested to use asciinema, but it only animates a fixed text. And I want to animate the interaction with the shell.
jcubic (10310 rep)
Nov 8, 2024, 02:32 PM • Last activity: Nov 8, 2024, 03:07 PM
23 votes
4 answers
53881 views
webp animation to gif animation (cli)
I was surprised today to find apparently how difficult it is to go from a `webp` animation to `gif` animation. My `GIMP 2.8.22` and `ImageMagick 7.0.7-21` on `linux 4.14.13-1-ARCH` don't seem to support the format, and the only tool available in repos seem to be `libwebp 0.4.1` which includes a deco...
I was surprised today to find apparently how difficult it is to go from a webp animation to gif animation. My GIMP 2.8.22 and ImageMagick 7.0.7-21 on linux 4.14.13-1-ARCH don't seem to support the format, and the only tool available in repos seem to be libwebp 0.4.1 which includes a decode tool that lets you extract individual frames to some image formats, none of them being gif (It's a licensing problem maybe?) Anyway, I used the following script: #!/bin/bash DELAY=${DELAY:-10} LOOP=${LOOP:-0} r=realpath $1 d=dirname $r pushd $d > /dev/null f=basename $r n=webpinfo -summary $f | grep frames | sed -e 's/.* \([0-9]*\)$/\1/' pfx=echo -n $f | sed -e 's/^\(.*\).webp$/\1/' if [ -z $pfx ]; then pfx=$f fi echo "converting $n frames from $f working dir $d file stem '$pfx'" for ((i=0; i /dev/null Which creates a gif animation from the extracted frames of the file supplied in the first argument. I tried it on this file and the resulting file was kind of artifacty. Is it proper form to post in this forum for suggestions of improvement of the procedure/invocations? And: If there are custom tools for this conversion, please share your knowledge! :)
lash (811 rep)
Jan 26, 2018, 04:02 AM • Last activity: Jan 18, 2023, 12:38 PM
3 votes
1 answers
454 views
Playing pdf with embedded animations
I have been trying to find a PDF viewer in Linux with the ability to play embedded animations (with the video data saved into the PDF). I have read tens of forum questions and tried many different viewers (evince, okular, acroread, foxit...) but nothing has worked so far. However, since all the ques...
I have been trying to find a PDF viewer in Linux with the ability to play embedded animations (with the video data saved into the PDF). I have read tens of forum questions and tried many different viewers (evince, okular, acroread, foxit...) but nothing has worked so far. However, since all the questions I have seen were from 2015 or older, I figured that by this point (2018!) something might exist that did the trick. So, is there a way to play embedded animations in PDFs using Linux? Cheers
TomCho (529 rep)
Jan 16, 2018, 09:46 PM • Last activity: Mar 26, 2021, 01:21 PM
1 votes
1 answers
3982 views
XFCE - Autohide Animations
I am running Ubuntu with Unity. I also have an xfce panel installed on top of it. I have set it to autohide, but when it does it is blinks in/out of existence. I have tried setting an animation for the window class in compiz, with no luck. How can I add some decent animations to the xfce panel?
I am running Ubuntu with Unity. I also have an xfce panel installed on top of it. I have set it to autohide, but when it does it is blinks in/out of existence. I have tried setting an animation for the window class in compiz, with no luck. How can I add some decent animations to the xfce panel?
jadenPete (357 rep)
Mar 5, 2016, 03:55 PM • Last activity: Nov 30, 2019, 05:20 AM
1 votes
1 answers
138 views
What is the name of this interactive animated cat on kde desktop?
I've recently found a computer on which there was an animated cat sitting on the system tray. He followed clicks, and looked like this: [![enter image description here][1]][1] [1]: https://i.sstatic.net/LOJ9Z.png I tried to find what it's called by running `ps -fe > cat.txt`, but after looking throu...
I've recently found a computer on which there was an animated cat sitting on the system tray. He followed clicks, and looked like this: enter image description here I tried to find what it's called by running ps -fe > cat.txt, but after looking through the output and googling items I couldn't identify, I haven't found this program. Does anyone know what it's called?
sisisisi (157 rep)
Nov 13, 2019, 11:34 AM • Last activity: Nov 13, 2019, 12:16 PM
16 votes
2 answers
9611 views
Workspace sliding animation in i3
How could I have a workspace sliding animation in i3 on ArchLinux ? I don't want to use a full DE, I'm right now using compton as a compositor but it only offers fade in/out when switching workspaces, I can't make it perform a sliding animation such as the one in KDE or Gnome. I don't mind installin...
How could I have a workspace sliding animation in i3 on ArchLinux ? I don't want to use a full DE, I'm right now using compton as a compositor but it only offers fade in/out when switching workspaces, I can't make it perform a sliding animation such as the one in KDE or Gnome. I don't mind installing another compositor but I'd like to be able to do it with compton and i3 if it's possible. (I don't mind neither having to use a more low level api and code the animation myself, but I don't know where to start) ---------- The second step would be to have a workspace switching like on MacOs (Or now also on Windows 10) where you drag your fingers on the trackpad and it switches between workspaces smoothly : if you stop draging the workspace will just pop back in place. (I'm talking about this ) That would be really cool to setup on a Linux system. I'm using Libinput (and libinput gestures) but I don't know if there is such a feature. ---------- How could I get the closest to the MacOs/Windows10 workspace switching experience with i3 on ArchLinux ?
tourdetour (452 rep)
Jun 12, 2017, 09:36 AM • Last activity: Oct 27, 2019, 11:29 AM
1 votes
0 answers
687 views
Debian Grub - display a splash image/animation for the entire course of the boot (similar to KUbuntu)?
**The issue -** I am looking into displaying a splash image as soon as I start my computer instead of a blinking cursor. For instance KUbuntu does this, it displays an animation during the *whole boot* instead of blinking cursor/dmesg output. **What I've tried -** I tried installing plymouth and mod...
**The issue -** I am looking into displaying a splash image as soon as I start my computer instead of a blinking cursor. For instance KUbuntu does this, it displays an animation during the *whole boot* instead of blinking cursor/dmesg output. **What I've tried -** I tried installing plymouth and modifying grub configuration but I only get a blinking cursor for the first 10 seconds of the boot and then the default plymouth theme for a brief second, I want it to be displayed during the entire duration of the boot. My */etc/default/grub* configuration: GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""
Kjell (11 rep)
Nov 11, 2018, 04:28 PM • Last activity: Nov 11, 2018, 06:34 PM
0 votes
1 answers
256 views
Maya xGen data has offset while rendering in Katana with Renderman
Has someone noticed the offset in katana renderman, while using the interactive grooming of Maya 2017 and export the xgen data as alembic? I tried following the steps mentioned in the renderman official site https://rmanwiki.pixar.com/display/RFK/XGen+in+Katana But the offset is still observed betwe...
Has someone noticed the offset in katana renderman, while using the interactive grooming of Maya 2017 and export the xgen data as alembic? I tried following the steps mentioned in the renderman official site https://rmanwiki.pixar.com/display/RFK/XGen+in+Katana But the offset is still observed between the driver mesh and the xgen baked out curves. Any help or link that explains the resolve for this issue would be highly appreciated. Thanks!
Sukhpal Vasdev (11 rep)
Feb 16, 2018, 09:20 AM • Last activity: Oct 3, 2018, 03:47 PM
1 votes
0 answers
428 views
Change Gnome 3 wallpaper without animation or flicker
Approx 10 years ago I wrote a small program to give me a simple "animated wallpaper", which worked well on whichever versions of Fedora and Gnome were current at the time (I believe it was Gnome 2). Recently I came across it again in my archives and am trying to get it to work again with Fedora 28 a...
Approx 10 years ago I wrote a small program to give me a simple "animated wallpaper", which worked well on whichever versions of Fedora and Gnome were current at the time (I believe it was Gnome 2). Recently I came across it again in my archives and am trying to get it to work again with Fedora 28 and Gnome 3.28.1, but have some small issues. The program wrote a new wallpaper file to disk once a second, and then set it using a system call to gconftool-2. This low frame rate was fine since the difference between two successive wallpaper images was too slight to be noticeable. I see that nowadays I need to use gsettings instead of gconftool-2. This works fine in that the wallpaper changes correctly, but there is an animation effect every time it's called, which obviously becomes annoying if it happens once a second. I've discovered I can disable these effects with gsettings set org.gnome.desktop.interface enable-animations false but the background still goes momentarily black each time I change the wallpaper, giving a flickering effect. So my question is: How can I get the wallpaper to change instantly, with no animation or flicker? I've seen that I already have an animated wallpaper pre-installed with Gnome that uses an XML file to specify the time a new image should be shown, and the duration to transition between images. If this is the only/best option, I can try to adapt my old program to use this system. But this would probably involve me writing thousands of images to disk, and then I'd have to write the XML. If there's a simple change that would allow me to avoid this, I'd love to hear it.
OpenSauce (111 rep)
Jul 17, 2018, 06:42 AM
0 votes
2 answers
834 views
View wrl file on debian
I want to watch an wrl file (showing some physics object) in Debian http://www.phys.ufl.edu/fermisurface/vrml2/Mo.wrl **Does anyone know a way, how to watch it?** All workarounds etc. are welcome So far I tried: - whitedune: most promissing, as it does not totally chrash, when opening the file - fre...
I want to watch an wrl file (showing some physics object) in Debian http://www.phys.ufl.edu/fermisurface/vrml2/Mo.wrl **Does anyone know a way, how to watch it?** All workarounds etc. are welcome So far I tried: - whitedune: most promissing, as it does not totally chrash, when opening the file - freewrl: Segmentation fault after compilation on debian - blender, meshlab, g3dviewer: import problems with wrl file - openvrml-player: gives warning 'Browser creation failed: Failed to execute program /usr/lib/x86_64-linux-gnu/openvrml/openvrml-xembed: Success' and crashes, when opening wrl file
Markus Dutschke (243 rep)
Mar 9, 2017, 01:35 PM • Last activity: Mar 24, 2017, 07:37 PM
2 votes
1 answers
49 views
record image effects as animations
I've done only some very basic stuff with ImageMagick (mainly resizing, also messing with color filters a bit). Imagemagick has a simple example for overlaying images: convert anthony_1.jpg anthony_2.jpg -average anthony_ghosts.jpg But I have no idea how to do this in an animated way. An example (wi...
I've done only some very basic stuff with ImageMagick (mainly resizing, also messing with color filters a bit). Imagemagick has a simple example for overlaying images: convert anthony_1.jpg anthony_2.jpg -average anthony_ghosts.jpg But I have no idea how to do this in an animated way. An example (with explanation) for ImageMagick or another program would be appreciated.
max pleaner (783 rep)
Nov 25, 2016, 06:58 PM • Last activity: Nov 25, 2016, 09:03 PM
1 votes
0 answers
2071 views
How to open a gif without loop repetition with oeg
I use to open `.gif` file with eog -f myfile.gif The gif animation is however running in loop. What I want is to display the animation once and then quit. How to avoid this? Please also help in case you would have any better utility to open `.gif`,
I use to open .gif file with eog -f myfile.gif The gif animation is however running in loop. What I want is to display the animation once and then quit. How to avoid this? Please also help in case you would have any better utility to open .gif,
user123456 (5258 rep)
Oct 19, 2016, 07:07 PM
3 votes
1 answers
1468 views
How to do handwriting animation in LibreOffice Impress presentations?
I've got some slides with handwriting-style fonts on them. Is there a way to do a "handwriting" animation on them? To make it seem like the text is being written, letter by letter? I've figured out some effects that sort of fade in from the left, but it's not really a convincing "handwriting" effect...
I've got some slides with handwriting-style fonts on them. Is there a way to do a "handwriting" animation on them? To make it seem like the text is being written, letter by letter? I've figured out some effects that sort of fade in from the left, but it's not really a convincing "handwriting" effect.
hwjp (123 rep)
Jul 26, 2016, 09:05 PM • Last activity: Aug 1, 2016, 09:08 AM
1 votes
0 answers
534 views
How to continue animation progress in Plymouth script?
Is it possible to continue the animation progress in a Plymouth theme until the animation has ended and is ready to quit. I am creating a custom one for my OS and i want to show up the display manager only when the Plymouth theme script has completed its animation and is ready to quit.
Is it possible to continue the animation progress in a Plymouth theme until the animation has ended and is ready to quit. I am creating a custom one for my OS and i want to show up the display manager only when the Plymouth theme script has completed its animation and is ready to quit.
Soumya Kanti Sar (133 rep)
Jan 23, 2016, 10:53 AM • Last activity: Jan 26, 2016, 06:38 AM
3 votes
1 answers
4253 views
How to disable all animations?
I'm using LXDE with Openbox.I hate that animations slow down work. How to disable all animations completely?
I'm using LXDE with Openbox.I hate that animations slow down work. How to disable all animations completely?
user251046 (445 rep)
Aug 5, 2014, 02:40 PM • Last activity: Oct 2, 2015, 09:36 PM
2 votes
1 answers
1417 views
Create animated WebP file from WebP files?
I have converted a sequence of images to WebP, and I want to compile them into an animation. I downloaded `libwebp`, but it's a `tar.gz` archive and I don't know how to install those. Is there another way to create an animated WebP file some other way?
I have converted a sequence of images to WebP, and I want to compile them into an animation. I downloaded libwebp, but it's a tar.gz archive and I don't know how to install those. Is there another way to create an animated WebP file some other way?
whitewings (2527 rep)
Jul 10, 2014, 04:44 AM • Last activity: May 10, 2015, 08:07 AM
1 votes
1 answers
1467 views
Convert Multiple Videos to Multiple GIFs
What command will convert multiple video files to multiple GIFs? I use the following command to convert 1 video to GIF: ffmpeg -i input.flv -vf scale=320:-1 output.gif I assume I'll need a bash script or some command with loop. [This thread](https://superuser.com/questions/818017/convert-mutiple-gif...
What command will convert multiple video files to multiple GIFs? I use the following command to convert 1 video to GIF: ffmpeg -i input.flv -vf scale=320:-1 output.gif I assume I'll need a bash script or some command with loop. [This thread](https://superuser.com/questions/818017/convert-mutiple-gifs) is vaguely related to my question.
whitewings (2527 rep)
Dec 16, 2014, 02:07 PM • Last activity: Dec 16, 2014, 03:35 PM
1 votes
0 answers
3291 views
any way to get rotation cube on xmonad/i3
I really like xmonad and I used to it on my arch station. But recently I remembered *no clue why out of fashion* rotating cube animation effect, that was available with compiz (or kwin, but I don't like it so much). So my question - is it possible to somehow enable this animation for workspace switc...
I really like xmonad and I used to it on my arch station. But recently I remembered *no clue why out of fashion* rotating cube animation effect, that was available with compiz (or kwin, but I don't like it so much). So my question - is it possible to somehow enable this animation for workspace switching in xmonad (or at least at any other tiling wm like i3 or awesome)? Its not necessary has to be compiz. I can make compiz enabled under xfce, or xmonad --replace in xfce to enable xmonad under xfce, but not both. thanks.
sandric (181 rep)
Nov 12, 2014, 07:43 PM • Last activity: Nov 23, 2014, 03:58 AM
9 votes
2 answers
7521 views
Remove nth frames of a gif (remove a frame every n frames)
I've recorded a `.gif` of the screen with ffmpeg. I've used `gifsicle` and `imagemagick` to compress it a bit, but it's still to big. My intent is making it small by removing, say, a frame every 2 frames, so that the total count of frames will be halved. I couldn't find a way to do it, neither with...
I've recorded a .gif of the screen with ffmpeg. I've used gifsicle and imagemagick to compress it a bit, but it's still to big. My intent is making it small by removing, say, a frame every 2 frames, so that the total count of frames will be halved. I couldn't find a way to do it, neither with gifsicle nor with imagemagick. man pages didn't help. **How can I remove a frame from a .gif animation every n frames?**
Vittorio Romeo (205 rep)
Sep 3, 2013, 11:29 AM • Last activity: Oct 14, 2014, 12:28 PM
Showing page 1 of 20 total questions