Skip to content

n0-computer/iroh-live

iroh-live

Livestreaming video and audio over iroh

Status: experimental / work in progress

This repository implements a live streaming protocol over iroh with Media over Quic. It uses moq-rs to transfer audio and video streams over iroh connections.

Structure of the repository

  • web-transport-rs: Implements the web-transport traits for iroh connections
  • iroh-moq: Adapters to create and accept moq-lite sessions over iroh
  • iroh-live: Native capture, encoding and decoding of audio and video. This is an early preview of a high-level live streaming toolkit for iroh. Currently, it has these features, all subject to change:
    • Support for hang catalogs in MoQ sessions
    • Capture and playout audio (with firewheel)
    • Capture camera (with nokwha)
    • Capture screens (with xcap)
    • Encode and decode video (h264) and audio (Opus) using ffmpeg. Video encoding is hardware accelerated on supported platforms.
    • Support multiple renditions and on-demand switching of the encoding

There's still bugs and a lot of missing optimizations. This is an early, work-in-progress preview!

Demo and examples

Check out the rooms example:

cargo run --release --example rooms

This will print a room ticket. Copy this to another device, and run:

cargo run --release --example rooms -- <TICKET>

Now you're chatting! With video and audio! Over iroh!

There's also a publish example (publish only, no GUI), and a watch example (watch a stream from the publish example).

The examples use egui, however iroh-live is not coupled to any GUI framework and should work with anything that can render raw images to the screen.

License

Copyright 2025 N0, INC.

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

media livestreaming over iroh

Topics

Resources

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
Apache-2.0
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages