Convert H264 to APNG
Turn H264 videos into APNG. A looping animated PNG at 10 frames per second and at most 480 pixels wide unless asked otherwise, every frame in full color without loss, so the file is often larger than a GIF.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop H264 files on the dialor turn it to pick what to do
A looping animation from a raw H.264 stream.Each frame keeps full color. The sound is dropped.
What you get
One APNG that loops. It plays at 10 frames per second and is at most 480 pixels wide unless you ask for something else.
Every frame is kept in full color without loss. The file is often larger than a GIF would be.
What it leaves behind
The sound. The APNG has no audio.
Anything wider than the maximum width is shrunk, and its shape is kept. Anything narrower stays as it is, so nothing is enlarged.
Options
Set Max width (px) or Max height (px) to change the size limit. Both only shrink, and neither enlarges a small picture.
Set Frame rate (fps) to a value from 1 to 50. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.
Set Start at (s) to cut seconds from the beginning. Set Stop at (s) to end at a second of the original. It counts from the start of the original, so it must be later than Start at. To cut a clip first, see trim H264.
When it stops
If the file cannot be parsed, the conversion stops with
input_corrupted.
H264 and APNG.What each format is, and the options this conversion takes.
- 01 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 02 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 default 480 - 03 · trim_end
Stop at (s)
Stops at this second of the original. It counts from the start of the original, not from where trimming starts, so it must be later than Start at.
0 to 86400 - 04 · trim_start
Start at (s)
Cuts this many seconds from the beginning. Decimals such as 1.5 work.
0 to 86400 - 05 · video.fps
Frame rate (fps)
Frames per second. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.
1 to 50 default 10
The formats
Raw H.264 Stream
An H.264 elementary stream with no container, as encoders and cameras write it.
- Extensions
- .h264 .264
- MIME type
- video
/h264 - Kind
- Video
Animated PNG
Animated PNG, full-color animation with alpha.
- Extensions
- .apng
- MIME type
- image
/apng - Kind
- Images
In your code.The same H264 to APNG conversion through the API, for your app or your agent.
$ cv convert clip.h264 clip.apng$ cv convert clip.h264 clip.apngQuestions.What people ask about H264 to APNG.
No. The sound is dropped, and the APNG has no audio.
Every frame is kept in full color without loss, so the file is often larger than a GIF.
Set Frame rate (fps) higher. The default is 10, and 24 to 30 looks natural. More frames are not described as making the file smaller, but fewer frames do.
Yes. Set Start at (s) to cut from the beginning and Stop at (s) to end at a later second of the original.