Jump to content

A new approach to making IPTV behave more like traditional tuners


Recommended Posts

EODCrafter
Posted

I'm not sure why @PowerCC hasn't released yet.

Fyb3roptik
Posted

Correct, they are separate things here. Kernel is currently at 0.8.20 (the last of the 0.8.x branch) 0.9.0 should drop by the end of the week! 

  • Thanks 1
Fyb3roptik
Posted
43 minutes ago, EODCrafter said:

I'm not sure why @PowerCC hasn't released yet.

His initial release will come in Kernel 0.9.0, after which he will make it publicly available. We wanted to make sure it was working well with Kernel before releasing

PowerCC
Posted

XCstream Custom Match Slate — In Action

Here's a short video demonstrating XCstream's new Custom Match Slate feature.

A Custom Match Slate is a user-supplied video, up to 10 seconds long, that XCstream automatically prepares to match the incoming stream's video and audio characteristics, including codec, resolution, frame rate, and bit depth.

These assets are generated in the background, persistently cached, and reused whenever a compatible stream is encountered.

When an upstream interruption can no longer be absorbed, XCstream transitions to the appropriate Custom Match Slate, loops it during the outage, and returns to live playback once the stream recovers.

The original stream remains pass-through, with DVR recording preservation taking priority.

Behind the scenes, XCstream's Validator monitors stream health while the resilience engine makes the decisions about continuity, Slate activation, and recovery.

The video demonstrates the results better than I can describe them.

The stream paused. We didn't.

I'm also getting closer to the first binary releases. If the remaining qualification goes as planned, I'm targeting macOS and Linux beta binaries within the next two weeks, with Windows to follow.

XCstream v0.9.10-beta — still undergoing qualification.

 

 

  • Agree 1
  • Thanks 1
PowerCC
Posted

After eight months of development, testing, and more than a few unexpected challenges, XCstream v0.9.10-beta is finally available for public download!

When I started this project, I had one question: Why should a temporary upstream interruption mean a failed recording or a terminated playback session?

That question eventually became XCstream, a standalone MPEG-TS continuity and recovery engine designed to keep downstream sessions alive when upstream sources become unreliable.

What's Included

  • Native MPEG-TS pass-through — Original video and audio are preserved without transcoding.

  • Intelligent buffering and recovery — Absorbs short interruptions and manages longer outages.

  • Matched and Custom Slate — Maintains stream continuity when the upstream stops delivering usable media.

  • Watchdog and Validator — Monitor actual media progress and stream health.

  • Improved Setup and tuner management — Guided configuration, source validation, and controlled session cleanup.

Six native packages are available for macOS, Linux, and Windows, covering both ARM64 and AMD64 architectures.

FFmpeg and ffprobe are taken care of.

Every package includes Jellyfin FFmpeg and ffprobe binaries. XCstream can also automatically discover and qualify an installed compatible FFmpeg/ffprobe pair from the same FFmpeg release, so you're not limited to the bundled executables.

No separate Python installation or Docker environment is required.

KMS and Emby Integration

Kernel Media Server (KMS): Nick (Fyb3roptik) and I have been collaborating on XCstream's integration into the upcoming KMS 0.9.0 release. XCstream's Direct interface allows KMS to hand off upstream sources while XCstream manages continuity, recovery, and tuner lifecycle.

Emby: Luke and I are in discussions about a potential direct integration using XCstream's existing Direct interface. Nothing has been finalized, but I'm looking forward to exploring the possibilities.

Importantly, XCstream remains a standalone application. Neither integration is required, and XCstream can already be used with Emby through its existing M3U Live TV interface.

Finally Available!

For those who have been following XCstream's development and asking when the binaries would be available...

Well, now you can! :)

Download XCstream v0.9.10-beta:

https://github.com/Xboxilla/XCstream/releases/tag/v0.9.10-beta

XCstream is proprietary beta software, available at no charge for evaluation. The release includes installation instructions, platform limitations, and technical qualification information.

Feedback and Bug Reports

Found a problem or have a suggestion? Please open an issue on GitHub:

https://github.com/Xboxilla/XCstream/issues

Include your operating system, a description of the problem, and any relevant diagnostics. Please remove credentials and private source URLs before sharing logs.

I'm especially interested in learning how XCstream performs with unstable sources and extended Emby recordings. Your feedback will help shape what comes next.

Keep the stream alive. Preserve continuity. Recover cleanly.

  • Thanks 1
horstepipe
Posted

I‘d be interested in how much cpu consumption this takes for one or more parallel streams.

Can somebody provide some example yet from testing?

PowerCC
Posted

XCstream is designed to be extremely lightweight. It doesn't transcode video; it's an MPEG-TS pass-through engine focused on stream continuity and recovery.

CPU requirements are naturally influenced by the number of concurrent streams (tuners) and their bitrates, but the goal has always been to run efficiently on modest hardware without requiring a powerful machine.

For a typical 1080p stream running around 5–10 Mbps, I'd expect CPU usage to be roughly 10–20% of a single core as a ballpark estimate. Obviously, that varies with the hardware, bitrate, and number of active tuners.

I'm beginning to think XCstream could run on a toaster. All it needs is a CPU, some storage, and a network connection to keep those DVR recordings rolling reliably. At this point, the heating elements are optional. 🍞😉

  • 3 weeks later...
PowerCC
Posted (edited)
On 10/13/2026 at 12:24 PM, mwongjay said:

I'm interested in seeing a comparison between this and Dispatcharr. Both seem fairly even if you do advanced configuration of Dispatcharr.

Looping image on failures 

Could Not Dispatch Dispatcharr plugin

Stream resiliency

Dispatcharr's exception handling around network errors when using the default ffmpeg stream profile didn't work well for me and had downstream affects to Emby. Dispatcharr has recently updated the ffmpeg arguments to improve resiliency, but prior to that release a few weeks ago, I found more stability creating separate stream profiles for iptv, iptv 4k, and ota (HDHR tuners) to improve resiliency and reconnections rather than allowing the stream to fail and have Dispatcharr manage the failures. Additionally, configuring the proxy settings further improves reliability. 

My mpeg-ts over http profile:

-hide_banner -nostdin -fflags +genpts+discardcorrupt -dts_delta_threshold 2 -rw_timeout 20000000 -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_on_network_error 1 -reconnect_on_http_error 5xx -reconnect_delay_max 3 -reconnect_delay_total_max 15 -user_agent "{userAgent}" -i "{streamUrl}" -map 0:v:0 -map 0:a:0? -sn -dn -c:v copy -c:a copy -bsf:v dump_extra=freq=keyframe,h264_metadata=aud=insert -mpegts_flags +resend_headers+initial_discontinuity -muxdelay 0 -f mpegts pipe:1

My hls stream profile:

-hide_banner -loglevel warning -nostdin -fflags +genpts+discardcorrupt -dts_delta_threshold 2 -rw_timeout 20000000 -reconnect 1 -reconnect_streamed 1 -reconnect_on_network_error 1 -reconnect_on_http_error 429,5xx -reconnect_delay_max 3 -reconnect_max_retries 3 -reconnect_delay_total_max 15 -user_agent "{userAgent}" -f hls -live_start_index -3 -http_persistent 1 -http_multiple 1 -seg_max_retry 2 -i "{streamUrl}" -map 0:v:0 -map 0:a:0? -sn -dn -c:v copy -c:a copy -bsf:v dump_extra=freq=keyframe -mpegts_flags +resend_headers+initial_discontinuity -muxdelay 0 -flush_packets 1 -f mpegts pipe:1

Observability

This is where I see the value in XCstream. Dispatcharr has the Stats page and logs that has a lot of overlap, but I'd love to see some of the telemetry you have in Dispatcharr

Configurability

I think Dispatcharr has the upper hand here. You have the ability to create and map stream profiles and output formats at a granular or macro level

Curious what others think

@mwongjay

I thought you'd appreciate a little update since our discussion back in October.

I've actually been working with SergeantPanda, the developer of Dispatcharr, over the past few days. We've successfully integrated XCstream with Dispatcharr using a custom curl stream profile and XCstream's existing /direct endpoint. @ExploitPandahelped test the integration, which has now passed day/night soak testing.

Dispatcharr continues to handle providers, channels, EPG and stream management, while XCstream handles upstream media validation, buffering, recovery and downstream DVR continuity.

One important note: When using XCstream as a stream profile, Dispatcharr's automatic source failover will not trigger while XCstream is maintaining downstream continuity. SergeantPanda and I have discussed this, and he's confirmed the API endpoint XCstream can use to retrieve alternate sources for future failover support.

I've also submitted a feature request at his suggestion for two additional stream profile parameters to improve channel reporting and EPG association:

https://github.com/Dispatcharr/Dispatcharr/issues/1973

Edited by PowerCC
  • Like 2
  • 2 weeks later...
Posted

I'm not seeing the option to use XCstream in the profile selections.. how would I go about adding that? Thanks!

image.png.966697d17f4b9835e057ac1e9833f89a.png

Posted
On 11/25/2026 at 5:16 AM, Chillout said:

I'm not seeing the option to use XCstream in the profile selections.. how would I go about adding that? Thanks!

image.png.966697d17f4b9835e057ac1e9833f89a.png

Integrating XCstream with Dispatcharr and Emby is straightforward using a custom Stream Profile. No changes to your existing playlists, EPG or Emby tuner configuration are required.

1. XCstream

Launch XCstream with Direct mode enabled (Direct-only mode if Dispatcharr manages all your channels).

2. Dispatcharr

Navigate to Settings → Stream Profiles → Add Stream Profile.

  • Name: XCstream

  • Command: Custom

  • Custom Command: curl

  • Parameters:

-fsSN -H "XCstream-Source: {streamUrl}" -H "XCstream-Name: {channelName}" -H "XCstream-XMLTV-ID: {tvgId}" http://XCSTREAM-IP:5004/direct

Replace XCSTREAM-IP with your XCstream IP address or hostname.

Dispatcharr v0.34.0 or newer supports all three placeholders. Older compatible versions only require the source header. If using Docker, ensure curl is available and XCstream is reachable.

3. Assign the profile

Assign XCstream to individual channels or make it your default Stream Profile.

That's it! Continue using Emby as usual.

Dispatcharr manages your channels and EPG, while XCstream handles upstream validation, buffering, stream continuity, interruption recovery and Slate activation.

Monitor activity at http://XCSTREAM-IP:5004/dashboard.

XCstream complements Dispatcharr rather than replacing it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...