What is Just-in-Time Packaging?

Updated September 2026 · Reviewed by the Flicknexs platform team

Quick answer

Just-in-Time Packaging (JITP) is a method where a streaming server generates HLS or DASH manifests and segments only when a client requests them. It reduces storage costs by not pre-creating every bitrate variant. This approach keeps origin servers lean while maintaining adaptive bitrate streaming.

Key takeaways

  • JITP generates manifests and segments on request rather than storing them permanently.
  • It lowers storage costs by avoiding pre-packaged variants for every possible bitrate.
  • Origin servers must handle real-time processing, which requires careful capacity planning.
  • It pairs well with CMAF to share media data across multiple packaging formats.

How Just-in-Time Packaging works

Traditional packaging creates all bitrate variants and manifests before upload. You store these files on an origin server. When a viewer connects, the server simply serves the pre-made files. This is simple but expensive in storage.

Just-in-Time Packaging flips this model. You upload a single source file or a set of CMAF segments. The packaging server waits for a client request. When a request arrives, the server reads the source data and generates the specific manifest and segments the client needs. It does this in real time.

The process involves a few key steps:

  • The client sends a request for a manifest.
  • The packaging server validates the request and checks access rights.
  • It generates the manifest file dynamically.
  • It creates or retrieves the necessary media segments.
  • It serves the data to the client.

Because the files are created on the fly, you do not need to store every possible combination of bitrate and format. This is especially useful when you support many device types or use different DRM systems. The server acts as a translator between your stored media and the specific format the player requires.

Why Just-in-Time Packaging matters for a streaming business

Storage costs scale with the number of files you keep. Pre-packaging creates many files for each video. If you have thousands of titles, this adds up quickly. JITP reduces this overhead. You store the source media once. The packaging layer handles the rest. This means your storage bill stays lower as your library grows.

There is also an operational benefit. When you update a video, you only replace the source file. You do not need to re-package and re-upload dozens of variant files. This speeds up content updates. It also reduces the risk of version mismatches between manifests and segments.

For operators, this model shifts the cost from storage to compute. Your origin server must work harder during peak traffic. You need to monitor CPU and memory usage closely. If your server cannot handle the packaging load, playback will stutter. Plan your infrastructure to handle these spikes. JITP is a trade-off: lower storage costs, higher processing demands. It works best when you have a large library or complex delivery requirements.

Common mistakes with Just-in-Time Packaging

Operators often overlook the compute requirements of JITP. They assume the server will handle the load easily. It does not. Packaging is CPU-intensive. If you do not scale your origin servers, you will see latency issues during peak hours.

Another error is ignoring cache headers. JITP-generated manifests should have short cache times. If you cache them too long, clients may get stale data after a content update. Set appropriate TTLs for manifests and segments.

Finally, do not mix JITP with pre-packaged files without a clear strategy. If you have some titles pre-packaged and others JIT, your monitoring tools must handle both. This complexity can hide performance issues. Keep your packaging strategy consistent across your library to simplify operations.

How Flicknexs handles Just-in-Time Packaging

Flicknexs uses adaptive bitrate transcoding to prepare your content. It delivers video via HLS with AES encryption. The platform manages the packaging layer to serve the right format to each device. You do not need to manage separate packaging servers. The system handles manifest generation and segment delivery as part of the streaming pipeline. This setup supports multiple device types, including web, iOS, Android, and smart TV apps. It keeps your storage efficient while maintaining high playback quality. For more details on how this fits into your overall setup, see Custom OTT platform development.

Custom OTT platform development

Done reading about Just-in-Time Packaging?

Flicknexs ships it as part of a white-label streaming platform: web, mobile and TV apps, billing, ads, DRM and playout, on your own domain.

Just-in-Time Packaging FAQ

It can be, if your server is underpowered. The packaging step adds processing time. However, if your origin server is well-scaled, the difference is often negligible. Pre-packaging has zero processing delay, but JITP is usually fast enough for live and VOD streams.
Yes. JITP is common in live streaming. The server packages segments as they arrive from the ingest. This allows you to serve live content to multiple device types without pre-creating files for the entire broadcast.
Yes. The packaging server can generate manifests that include DRM license URLs. It can also handle different DRM systems for different clients. This makes JITP a good fit for protected content delivery.
Lower storage costs. You store the source file once. The server generates the specific bitrate variants only when requested. This is more cost-effective than storing every variant for every title in your library.
JITP packages audio and video streams separately so users can switch languages without rebuffering. The system generates distinct manifests for each audio track. This allows players to request specific audio segments on demand. It keeps file sizes smaller and improves initial load times for multilingual content.
JITP generates manifests that support adaptive bitrate streaming. Players request the optimal quality segment based on current network conditions. Since packaging happens at delivery time, the system can serve a good available rendition instantly. This maintains smooth playback even if bandwidth fluctuates during a session.
Just-in-Time Packaging: Definition, How It Works, and Use Cases