Convert APNG to TS Online

Upload an APNG and convert it to a TS video, with options like merge images, frame duration, background color, and video codec selection.

Initializing... drag & drop files here

Supports: APNG, PNG

OptionsAdvanced Options - Our defaults are optimized for the best results. We recommend you keeping the defaults unless you have a specific need.
Show All Options
Background Color
Background Color
File Compression
Preset
Video resolution

Convert APNG to TS: What This Tutorial Covers

This page walks through turning an animated PNG into an MPEG transport stream (.ts) — the packetised container that broadcast, IPTV, and HLS tooling expects. You will end up with a silent, opaque video clip that carries every frame of the animation at its original timing, plus the settings that decide its codec, size, and the colour that replaces the APNG's transparency.

How to Convert APNG to TS

  1. Upload Your APNG File: Drag and drop the file onto the page or click "Add Files". Both .apng and animated .png are accepted, and each file in the batch becomes its own transport stream.
  2. Set the Quality Preset: Under File Compression, leave Quality Preset on Very High (Recommended) for a visually lossless result, or step it down to shrink the stream; Constant Quality and Constraint Quality expose the raw CRF value if you prefer to set it yourself.
  3. Pick the Background Color and Video resolution: Background Color (White by default) is the colour your transparent pixels are composited onto, because a transport stream has no alpha channel. Video resolution starts on Keep original and can be pinned to a preset, a percentage, or an exact Width × Height.
  4. Convert and Download: Click Convert and save the .ts file. Uploads travel over an encrypted connection, run on our servers, and are deleted automatically after a few hours — no sign-up, no watermark.

Walk-through: Quality, Codec, and the Background Colour

Three settings do almost all the work on this page, and they interact.

  • Quality Preset drives a constant-quality encode rather than a bitrate target. Very High lands in the visually lossless band — around CRF 18 for H.264 — which is the right default because APNG sources are pixel-clean line art or UI animation, exactly the content that shows blocking first when you over-compress. Drop to High or Medium only when the stream has to fit a size budget.
  • Video Codec, in the advanced options, decides what actually goes inside the packets. H.264 is the default and the safest choice for anything modern. MPEG-2 is the codec traditional broadcast and DVD-era hardware expects, so pick it when a set-top box, capture card, or playout server rejects an H.264 stream.
  • Background Color matters more than it looks. APNG almost always carries transparency, and video pixel formats do not — so every transparent pixel is composited onto this colour before encoding. White is the default; set it to black for a dark player or page, and match your player's backdrop when the animation has soft, anti-aliased edges, or you will see a pale halo around them.
Video Codec for TS What it is Pick it when
H.264 (default) ISO/IEC 14496-10 AVC — the modern broadcast and streaming baseline Almost always: HLS segments, IPTV, any current player
H.265 HEVC — roughly half the bitrate of H.264 at similar quality Bandwidth matters and every device in the chain decodes HEVC
MPEG-2 ISO/IEC 13818-2 — the original digital-TV video codec Legacy broadcast gear, DVD authoring, capture hardware from the DVB/ATSC era
MPEG-4 / Xvid / DivX MPEG-4 Part 2 ASP encoders Feeding an old media player or hardware profile that predates H.264
MPEG-1 ISO/IEC 11172-2 — the VCD-era codec Maximum compatibility with very old decoders, at a real quality cost

Common Errors and How to Fix Them

  • "The video is silent" — That is expected, not a fault. An APNG has no audio track, so the transport stream is written video-only; the audio codec control is hidden for image sources for exactly this reason. Add a soundtrack afterwards in a video editor if you need one.
  • "My transparent background came out white" — White is the default Background Color. Change it before converting; there is no way to recover the alpha channel after the encode, because the transparency is discarded at that point.
  • "The animation plays too fast or too slow" — The clip inherits the frame delays stored in the APNG itself. If the source was authored at, say, 50 fps, that is what you get. Re-time the animation before converting, or re-encode the resulting clip with a fixed frame rate.
  • "A player shows a black screen or refuses the file" — Many consumer players do not recognise the .ts extension even though they can decode the contents. Try VLC or mpv first; if the file has to open everywhere, convert APNG to MP4 instead.
  • "The output is a couple of pixels smaller than my APNG" — The 4:2:0 pixel format used for video requires even width and height, so an odd-sized frame is adjusted to the nearest even dimension. Resize the animation to even dimensions first if the exact pixel size is critical.
  • "YouTube or a social platform rejected the upload" — Transport streams are a delivery and broadcast format, not an upload format. Use MP4 for anything destined for a social platform or CMS.

When This Doesn't Work

A transport stream is the right target only when something downstream genuinely speaks MPEG-TS: an HLS packager, an IPTV or playout server, a hardware encoder, or a capture workflow. RFC 8216 — the HLS specification — lists MPEG-2 Transport Streams as one of the permitted media segment formats and requires each segment to open with its PAT and PMT tables, which is why segmenters still hand .ts files around today. Outside that world the format buys you nothing: browsers will not play a raw .ts inline, editors often refuse to import one, and cloud storage previews ignore it. If you just want a shareable clip of your animation, APNG to MP4 or APNG to WebM is the better ending. And if the animation should stay an animation rather than become video, APNG to GIF keeps it as a looping image.

Frequently Asked Questions

Does the TS file keep every frame of the APNG animation?

Yes. An animated PNG is detected as a frame sequence and fed through the video pipeline exactly like a GIF, so all frames land in the stream with the timing stored in the source file. That is different from the still-image targets on this site, where only the first frame is used. There is no "image duration" setting on this page for the same reason — the animation already carries its own timing.

Why does my transport stream have no audio track?

Because the source has none. An APNG is an image format with no sound, and the converter does not synthesise a silent audio track, so the muxer writes a video-only stream. That is legal MPEG-TS and plays fine, but a handful of broadcast tools expect at least one audio elementary stream — if yours does, mux one in afterwards with your own tooling.

What is a .ts file actually used for?

It is an MPEG transport stream, defined in ISO/IEC 13818-1 (also published as ITU-T H.222.0). The format carries audio, video, and metadata as small fixed-size 188-byte packets, a design meant for lossy delivery channels: if part of the stream is lost, a decoder can resynchronise at the next packet instead of losing the whole file. That is why it underpins DVB and ATSC broadcast, IPTV, and HLS segments.

Can I keep the APNG's transparency in the TS file?

No. The encoder writes ordinary opaque video, and transparent pixels are composited onto the Background Color before encoding — that is what the control is for. If the transparency is the point of the animation, keep it in an image format that supports alpha: APNG to GIF keeps every frame plus a transparent colour index, and APNG to WebP returns the first frame as a still with a full alpha channel.

Which codec should I choose inside the transport stream?

H.264 unless something specific asks otherwise: it is the default here and what HLS packagers, IPTV set-tops, and every current player expect. Choose MPEG-2 when you are feeding genuinely old broadcast or DVD-era equipment, H.265 when bandwidth matters more than compatibility, and MPEG-4 / Xvid / DivX only to satisfy a legacy hardware profile.

Will the TS file be bigger or smaller than my APNG?

Usually much smaller. APNG stores every frame losslessly with DEFLATE, so a few seconds of animation can run to several megabytes; a constant-quality H.264 encode of the same frames typically collapses that by an order of magnitude. Flat-colour animation with large uniform areas compresses especially well. The exception is a very short APNG of a tiny sprite, where container overhead can leave the two files comparable.

Should I use TS or MP4 for an animated PNG?
Question TS MP4
Standard ISO/IEC 13818-1 (MPEG-2 Systems) ISO/IEC 14496-14
Designed for Broadcast, IPTV, HLS segments, live capture Storage, download, general playback
Loss resilience High — a decoder resyncs at the next 188-byte packet Low — a damaged header can break the file
Browser / social upload Not played inline; usually rejected Universally accepted
Seeking and metadata Weak — no index, no chapters Strong — index, chapters, cover art

Pick TS when a packager, streaming server, or piece of hardware requires it, and MP4 for everything else.

What happens to my uploaded APNG file after the conversion?

It is uploaded over an encrypted (TLS) connection, converted on our servers, and deleted automatically after a few hours. There is no sign-up, no watermark, and files are never shared or made public.

Rate Convert APNG to TS Online Tool

Rating: 0.0 / 5 - 1 reviews