9

I'm looking for an application that converts any video into animated PNG format (aka. APNG).

The application should read MKV files as well as other popular formats and allow to select:

  • Dimensions of resulting animation in pixels
  • Framerate
  • Compression options
  • Target file size
  • (bonus) Subtitle for embedding

I noticed that APNGs are usually significantly smaller than animated GIFs (by about 10-20%) while also showing much better colors (>256 colors, no dithering or slopy gradients) so I'm thinking of switching to that if I can find a good app.

4

You can:

  1. split into PNGs: e.g. with FFmpeg ffmpeg -i input.mov -r 0.25 output_%04d.png (to get a picture every four seconds in this example).
  2. resize the PNGs: e.g. with ImageMagick: mogrify -resize 30x30% *.png (to 30% in this example)
  3. Create APNG file from a bunch of PNGs: e.g. using APNG Edit.

  • is it possible to emded subtitles like that? – user6532 Jul 20 '14 at 18:55
  • @user64308 yes, added in answer. You might have to script around though. – Franck Dernoncourt Jul 20 '14 at 19:00
  • I meant while splitting video into PNGs, like making screenshots of a video player with subs on, but automatically, in a command line. Manually retyping text and using an external tool to paste it in will produce a different result and I'd like to achieve a "media player with subs on" animation feel. – user6532 Jul 20 '14 at 19:03
  • @user64308 yes, added in answer. – Franck Dernoncourt Jul 20 '14 at 19:10
3

You can use VirtualDub APNG Mod:

  • free and open source
  • it is a VirtualDub Mod so you have access to all VirtualDub features such as changing the FPS or change dimensions (i.e. resize):

enter image description here

enter image description here

  • handle APNG:

enter image description here

enter image description here

  • compatible with major video formats such as .mkv files: you need to download some import plugins/filters. I personally use the FFMPEG Input Driver (32-bit, I had issues with 64-bit) which provides support for 31 video formats
  • afaik Virtualdub doesn't read MKV, nor does it allow to embed subtitles, but I know there is a Virtualdub MKV version with limited capabilities, which I don't suppose can convert to APNG – user6532 Jul 20 '14 at 18:42
  • does it mean I can make this version support MKV and other formats by installing a plugin/filter or…? – user6532 Jul 20 '14 at 18:46
  • @user64308 yes, added in answer. – Franck Dernoncourt Jul 20 '14 at 18:46
2

Ezgif now supports video to APNG conversions.

http://ezgif.com/video-to-apng

You can upload any video format supported by ffmpeg, and select duration, resolution and frames per second.

  • Unfortunately I can never get their chroma key alpha transparency effect to work. – Ryan Oct 1 at 21:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy