Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
blog:vmd-tricks [2017/10/19 15:27]
thoelken
blog:vmd-tricks [2017/10/19 15:28] (current)
thoelken
Line 13: Line 13:
 Be sure to render in the resolution you want your GIF or movie to be in the end. Otherwise you loose quality or `ffmpeg` will not accept certain aspect ratios (you will have to pad with black pixels and you don't want that!) Be sure to render in the resolution you want your GIF or movie to be in the end. Otherwise you loose quality or `ffmpeg` will not accept certain aspect ratios (you will have to pad with black pixels and you don't want that!)
   ​   ​
-Assembling the frames into a GIF with [imagemagick](www.imagemagick.org):​+Assembling the frames into a GIF with [imagemagick](https://www.imagemagick.org):​
  
   convert -quality 5 -loop 0 -delay 5 out_%04d.png animation.gif   convert -quality 5 -loop 0 -delay 5 out_%04d.png animation.gif
Line 19: Line 19:
 The quality option did not change my results visibly (no idea if this is [working as intended](https://​www.imagemagick.org/​script/​command-line-options.php#​quality)). The `-loop 0` parameter controls how often the animation is repeated. If your animation is large and you want to be nice to users of old PCs, limit this to a couple of times, because the CPU will have to flip through all the frames indefinitively with `0`. Experiment with delay based on how many frames you have for the speed of the animation. The quality option did not change my results visibly (no idea if this is [working as intended](https://​www.imagemagick.org/​script/​command-line-options.php#​quality)). The `-loop 0` parameter controls how often the animation is repeated. If your animation is large and you want to be nice to users of old PCs, limit this to a couple of times, because the CPU will have to flip through all the frames indefinitively with `0`. Experiment with delay based on how many frames you have for the speed of the animation.
  
-Creating a short movie from the same frames using [ffmpeg](www.ffmpeg.org):​+Creating a short movie from the same frames using [ffmpeg](https://www.ffmpeg.org):​
   ​   ​
   ffmpeg -i out_%04d.png -vcodec libx264 -preset slow -crf 22 -r 15 -threads 0 video.mp4   ffmpeg -i out_%04d.png -vcodec libx264 -preset slow -crf 22 -r 15 -threads 0 video.mp4