Vireko guide

Kiltala Engine: Vireko’s own player engine

Vireko 3.0 plays everything on our own player engine, Kiltala Engine. It replaced the two players Vireko used before, Apple’s AVPlayer and VLC, on iPhone, iPad, Apple TV and Mac. This guide explains how the engine is built, what it plays, why channels open fast and how it compares with the old players, in numbers.

Written by Aleksi Kiltala, Kiltala Oy · Published 17 November 2026

Short answer

Kiltala Engine is a player engine written in Swift. Its networking, HLS and DASH client, buffering, timing, subtitles and AirPlay export are our own code; FFmpeg only reads file formats and decodes the codecs Apple’s hardware does not. One engine plays MKV, TS, AVI, HLS, DASH, HEVC, AV1 and HDR, in AirPlay and Picture in Picture too. In our measurements the first picture of an HLS stream came after 121 ms, against 254 ms for Apple’s player and 397 ms for VLC.

The Vireko player on iPhone, playing through Kiltala Engine
The player looks familiar, but every picture now comes from Kiltala Engine.
Vireko IPTV PlayeriOS · Mac · Apple TV · Android · Android TV
Design

What is Kiltala Engine?

One engine for all unprotected playback on every Apple platform.

Why an engine of our own

Up to version 2.2 Vireko had two players. Apple’s AVPlayer handled HLS, AirPlay and Picture in Picture, but could not play MKV, AVI or live TS streams. VLC played those, but could not send the picture over AirPlay. Users sometimes had to switch players, AirPlay switched engines mid-playback, and on the Mac files were converted while they played. Kiltala Engine brings it together: one engine that does all of the above.

What is ours and what is FFmpeg

FFmpeg does two jobs: reading file formats (containers) and decoding the codecs Apple’s hardware does not. We use our own build of FFmpeg 8.1.2 with all 518 decoders and 354 demuxers and none of FFmpeg’s network code. Everything else is written from scratch: the HTTP, FTP, RTMP and RTSP clients, the HLS and DASH client, buffering, the timeline, the hardware decoding pipeline, deinterlacing on the graphics processor, subtitle readers and drawing, and AirPlay export.

Apple’s own display and audio layers

Pictures and sound go to Apple’s layers (AVSampleBufferDisplayLayer, AVSampleBufferAudioRenderer and their shared clock). That is why system HDR, Picture in Picture, audio routing and power saving work as they do in Apple’s own apps, and why H.264, HEVC and AV1 are decoded in hardware whenever the device can.

Multi-View on Apple TV: four broadcasts at once
Multi-View on Apple TV: each tile has its own Kiltala Engine player.
Comparison

Compared: Apple’s player, VLC and Kiltala Engine

The table shows how the players work in Vireko: version 2.2 used Apple’s player and VLC, version 3.0 uses Kiltala Engine.

Apple’s player (AVPlayer)VLC (libVLC)Kiltala Engine
MKV, AVI, WMV and other containersNoYesYes
Live MPEG-TS over HTTP (a typical IPTV channel)NoYesYes
HLSYesYesYes
DASHNoYesYes
MPEG-2, VC-1, VP9 and others in softwareNoYesYes
AirPlay video to a TVYesNo (Vireko switched to Apple’s player)Yes, every format
Subtitles over AirPlayHLS onlyNoYes, as the receiver’s own options
Picture in PictureYesVireko’s own implementationYes, with subtitles in the picture
Opening a channel at the tapNoNoYes
First picture, HLS over the internet254 ms397 ms121 ms
First picture, MKV (HEVC)Does not play285 ms18 ms
Protected content (FairPlay)YesNoNo, Vireko uses Apple’s player for it

Start times: development Mac (M3 Pro), optimised build, median of five runs, 13 November 2026. The MKV row is a local file, so it measures the player’s own delay with the network taken out.

Speed

How fast the picture comes

Time from load to the first picture, same sources, same machine. Shorter is better.

Kiltala EngineApple’s playerVLC
HLS over the internet
Kiltala Engine121 ms
Apple’s player254 ms
VLC397 ms
MP4 over the internet
Kiltala Engine207 ms
Apple’s player484 ms
VLC575 ms
Live MPEG-TS, local server
Kiltala Engine16 ms
Apple’s playerdoes not play
VLC199 ms
MKV with HEVC, local file
Kiltala Engine18 ms
Apple’s playerdoes not play
VLC285 ms

M3 Pro Mac, optimised build, median of five runs, 13 November 2026. VLC was measured through libVLC.

  • A real IPTV channelA provider’s SD channel over HTTPS (server 45 ms away): picture on screen after 310 ms and playing after 358 ms, with the connection made from scratch. A channel change within the same service on the open connection: picture after 119 ms.
  • A 4K channelA 2160p50 HEVC channel showed its first picture after 0.58 seconds on the Mac and about 0.6 seconds in the iPhone simulator.
  • A sample of 115 channelsA random sample of a provider’s channels: a median of 409 ms to the first picture, and not one of the channels that played stalled. Eight did not play because the server answered “service unavailable” (HTTP 503).
  • Opening at the tapIn Vireko a live channel starts opening when you tap it, not once the player is drawn. In simulator measurements this gave the app’s first channel a head start of 0.3–0.5 seconds.
Technology

Why channels open fast

Most of a start is the network. The engine cuts everything else.

  1. One request is enoughThe connection that finds out what an address is goes on to deliver it. An HLS playlist is recognised from its first bytes.
  2. Connections are keptA new connection costs a round trip to the server. An HLS channel opens its playlists and first segment on one connection, and later segments cost no handshake. With a distant server this saved 70–140 ms on every start in our measurements.
  3. No heavy stream analysisBy default FFmpeg reads seconds of content before it says what a stream holds. Kiltala Engine skips that for MP4, MKV, live TS and HLS and takes the picture’s details from the stream’s own parameters.
  4. Bytes flow while they downloadHLS segments reach the demuxer as they arrive, not when they are complete. The first segment of an fMP4 stream is asked for while its header is still on the way.
  5. The first picture does not wait for the clockThe keyframe is shown the moment it is decoded. Playback starts once a little sound is queued, or after 180 ms if the audio output (Bluetooth, AirPlay) is slow to start, and the sound then joins the picture in sync.
  6. A channel change does not wait for the old channelThe old channel is told to stop and winds down in the background while the new one opens. The first player is created ahead of time, which warms up the hardware decoders and takes about 60 ms off the first channel.
  7. A seek never waits in lineA read that is waiting for the network when a seek arrives is dropped at once. A seek asked for while a stream is still opening is kept and made the moment it is open.
Formats

What Kiltala Engine plays

Everything below has run in the engine’s tests on the Mac, and most of it in the iPhone and Apple TV simulators too.

Containers

MPEG-TS, MKV, MP4, WebM, AVI (DivX, Xvid), WMV/ASF, FLV, RealMedia, MPEG-1 and everything else FFmpeg can read.

Video

In hardware H.264, HEVC, HEVC HDR10 and AV1 (depending on the device) up to 8K60. In software MPEG-2, MPEG-4, VC-1, VP8, VP9, AV1, 10-bit H.264, ProRes and more. The decoding method can be changed while playing.

Audio

AAC, AC-3, E-AC-3, DTS, TrueHD, MP2, MP3, Opus, Vorbis and FLAC. The source’s channels are kept, and Dolby audio can go to the system’s own decoder.

Network and streaming

HTTP(S), HLS (AES-128, fMP4 and TS, separate audio, low-latency parts), DASH (every segment type, several periods, live), UDP and RTP, RTMP, RTSP, FTP and WebDAV.

Subtitles

Embedded text and picture subtitles, WebVTT and TTML (inside MP4 too), separate subtitle files in any character set, DVB teletext pages and CEA-608. Styling (bold, italics, colours, position) and delay.

Playback

Frame-accurate seeking, playback speeds, changing audio, subtitles and quality while playing, catch-up, and seek-bar thumbnails from MKV, TS, HLS and DASH too.

Picture

Picture quality and the display

The engine also takes care of things you only notice when they go wrong.

Interlaced TV on the graphics processor

Many TV channels still broadcast interlaced pictures (576i and 1080i). Kiltala Engine rebuilds them into 50 full pictures a second with its own Metal shader on the graphics processor. On a 1080i channel this used 38% less processor time than FFmpeg’s filter (1.46 s against 2.36 s per ten seconds), with measured picture quality as good or better.

A guard for lost pictures

Apple’s display layer loses one or two pictures of every group when a stream has a pyramid of five or more B-pictures, even though the stream is valid. The engine notices from the drop counter and moves the stream, from its next keyframe, to its own hardware decoding, which loses nothing. The stream is remembered, so next time it is decoded right from the start.

A clean start for every channel

When playback joins at a keyframe, pictures that belong before it are decoded but not shown. Before this, every such channel started with 2–13 dropped frames.

Apple TV and the TV’s picture mode

With the TV’s Match Content setting on, Apple TV asks the TV for the broadcast’s own frame rate and dynamic range (SDR, HDR10, HLG or Dolby Vision). During a channel change the mode is held for a moment, so the TV does not switch twice for nothing.

AirPlay

How AirPlay works with Kiltala Engine

AirPlay carries video only for Apple’s player, and the receiver fetches the stream itself. So the engine prepares a stream for it.

The engine turns the source into local HLS

When you pick an AirPlay receiver, the engine reads the source exactly as it does for local playback (same connection, headers and formats), writes it out as HLS and serves it on your home network. H.264 and HEVC go through untouched. MPEG-2, VC-1, VP9, 10-bit H.264 and interlaced video become H.264 with the hardware encoder, and the sound becomes AAC.

The whole film at once, subtitles for the receiver

For an MKV or MP4 film the receiver gets a list of the whole film and the parts are written on request, so every seek is the receiver’s own and nothing reconnects. Subtitles are the receiver’s own options: turning them on or changing them does not restart the export.

Back to the phone at the same spot

When you stop AirPlay, playback carries on on the device from where it got to on the TV. Live channels move to AirPlay and back without the app opening the stream twice.

A live sports broadcast in the Apple TV player
On Apple TV, Kiltala Engine plays everything unprotected. The match in the picture is made up.
Reliability

Made for everyday IPTV

IPTV services do not always behave like the textbook. The engine is built for that.

  • One connection at a timeMany IPTV services allow only one connection. The engine never opens a second connection to the same source alongside the first, and opening at the tap waits until the previous stream has had time to close.
  • A quiet retryA one-connection service sometimes answers “not found” for a moment right after a channel change, because it is still counting the previous connection. Vireko then reopens the channel quietly half a second later and, if needed, tries the other ending (.ts or .m3u8).
  • A restarted broadcastWhen a live server starts numbering its segments from the beginning again, the engine notices within two seconds and carries on from the newest segments without a stall.
  • The right distance from liveSome services publish short segments in batches. So a live HLS stream is joined at least 15 seconds behind its newest point. If a stream still runs dry, playback waits for the buffer to fill so it does not stop again at once.
  • Clear error messagesWhen a stream does not start, Vireko explains the server’s own answer in plain words: wrong login, access denied, channel not found, too many connections or service unavailable.
Testing

How the engine is tested

A player reads data it cannot trust. So the testing is wide.

Automated tests

More than 180 automated tests run after every change: formats, seeking, track changes, subtitles, AirPlay export and recording. The tests count every picture, and none may be missing or shown twice.

Damaged input

Every parser that reads data from the network (HLS and DASH lists, subtitles, RTSP and RTMP, timestamps) is fed deliberately damaged data. The app must not crash on any of it.

Stress runs

A stress run does random things to the player, such as seeks, pauses, channel changes and language changes, and checks now and then that picture and sound keep moving. On its first day it found sixteen bugs the other tests had missed. On top of that, 57 scenarios run in the iPhone and Apple TV simulators.

Real broadcasts

Eight of a provider’s channels played four minutes each without a single dropped picture. The engine has also run on a real iPhone and Apple TV, AirPlay included.

Licences

Licences and limits

What is in the engine and what it does not do.

FFmpeg is built under the LGPL 2.1 with no GPL or nonfree parts. No code was taken from KSPlayer or any other GPL player. The deinterlacing shader is our own code: it works on the same principle as the well-known filters, but none of FFmpeg’s filter code is in it.

Protected content (FairPlay and other DRM systems) can only be played by Apple’s player, whatever the engine. So Vireko plays protected DVB-I broadcasts on Apple’s player and everything else on Kiltala Engine.

FAQ

Frequently asked questions

What is Kiltala Engine?

Kiltala Engine is Kiltala Oy’s own player engine, which Vireko 3.0 uses to play video and audio on iPhone, iPad, Apple TV and Mac. It replaced Apple’s AVPlayer and VLC for all unprotected playback.

Is Kiltala Engine better than VLC?

For Vireko, yes: it plays the same formats, over AirPlay too, and in our measurements the first picture came about 3 to 16 times sooner than with VLC. VLC is still an excellent general-purpose player that supports more unusual sources and devices.

Why not use a ready-made engine?

The ready-made options were either limited (Apple’s player), without AirPlay video (VLC) or licensed in ways that did not suit a commercial app. An engine of our own lets us fix everyday IPTV problems ourselves, such as one-connection services and broadcasts published in batches.

Does Kiltala Engine play protected content?

No. Protected content can only be played by Apple’s player. Vireko uses Apple’s player for protected DVB-I broadcasts automatically.

Does AirPlay work with MKV films?

Yes. The engine sends the film to the receiver as HLS and, where needed, converts the picture and sound into a form Apple TV can play. Subtitles are the receiver’s own options.

Does an engine of its own use more battery?

It should not. H.264, HEVC and AV1 are decoded in hardware, and the engine feeds the display only when there is something to feed. A 1080p film used 0.27 seconds of processor time per ten seconds of playback in our measurement.

Can I switch back to the old player?

There is no need. If the picture looks wrong, choose software decoding in the player menu, and the decoder changes at the next keyframe without reopening the stream.

Can Kiltala Engine be used in other apps?

For now Kiltala Engine is used only in Vireko. If you need a player engine for your own app, get in touch with the form below.

Contact

Tell us what you need.

A website for your business, a review of your current site or an app idea. We will reply soon.

Your message comes straight to us.