Convert videos into animated gifs using Node, libav and imagemagick