Skip to content

About

(Unstable experimental) Android IRL livestreaming app

Resources

Stars

7 stars

Watchers

2 watching

Forks

Repository files navigation

LifeStreamerV2

LifeStreamer is an Android app designed for IRL live streaming.

For original (stable) LifeStreamer (version 1) go here https://github.com/dimadesu/LifeStreamer.

LifeStreamerV2 (major version 2.x.x) repo is a place to take risks and try crazy experiments without affecting V1.

LifeStreamerV2 screenshot

Share ideas or report issues in Discord https://discord.gg/2UzEkU2AJW or create Git issues.

LifeStreamerV2 new features on top of V1

  • Reimagined UI:
    • Main screen buttons grouped into categories: VIDEO, AUDIO, ENDPOINT.
    • Separate settings screen removed. All settings are available on the main screen.
  • Android camera video source:
    • Dual camera support for Android cameras with picture-in-picture (PIP) and split view layouts.
    • Extra options for Android camera video source:
      • Stabilisation: OIS, EIS, OFF.
      • Noise reduction.
    • Background mode improved:
      • No more video/audio stuttering or interruptions for published stream when app goes to/from background with Android camera source.
  • Switching video sources:
    • Reduce stuttering and frame freezes during transition.
    • Blur transition on video source switch.
  • Force video sources to render at 60 fps and more. UI toggle is called "Render all video sources at the configured video encoder FPS".
  • Adds built-in RTMP / SRT server (MediaMTX).

The vision for V1

Original LifeStreamer (V1) is supposed to be as small as possible, to be very stable and reliable.

I was always hesitant to endlessly add more features to it.

LS V1:

  • Inputs: various video/audio sources
  • Input switcher
  • Video/audio monitor
  • Outputs: RTMP/SRT/SRTLA with adaptive bitrate.
  • Keep modifications to StreamPack SDK to the minimum.

A lot of people already use it and, in a way, it's perfect and complete as it is. It is sort of in a maintenance mode. I don't want to add any major changes to it for now.

I plan to do a long term maintenance on V1 and keep updating it when new Android versions come out. It's easier to manage (test and fix) when there is less code and features overall.

The vision for V2

For LS V2 I want to take apart V1 and reimagine UI and make room for more features.

I want to add and remove features and try things without breaking anything in version 1.

LS V2 ideas:

  • Take things apart, make them modular and reassamble in new ways.
    • Cleanup code by building a solid core.
    • Write tests.
    • Reduce complexity where possible.
    • Break down the code into pieces that have minimal dependcies.
  • Try some risky improvement ideas that are usually not worth the added complexity. Contradicts previous items about cleanup. Experiements often make code more messy, but it's good to experiment.
  • Reimagine UI and settings
    • Try multiple alternative UIs (layouts).
    • Web server UI (kinda like Belabox has).
  • Process video:
    • Video composition (combining multiple video sources in one screen). Picture-in-picture (PIP), split screen.
    • Extend image (bitmap) source.
    • Overlays.
    • Video filters.
  • Allow myself to modify StreamPack SDK a lot more.
  • Etc.

GitHub releases

I want to have a place to store these experimental V2 releases (.apk files) without polluting main V1 project.

That's why this repository exists. I'll publish V2 .apk files here as GitHub releases.

You can have both V1 and V2 apps installed at the same time. They should be independent (for the most part) and not affect each other.

The future

Let's start here and see how it goes.

Maybe this can become a completely new app.

Maybe some ideas from here can be added to V1.

Maybe someday this will replace V1.

Not sure yet.

Building from source

  1. Clone with git submodules (StreamPack, bond-bunny):
    git clone --recurse-submodules https://github.com/dimadesu/LifeStreamerV2.git
    If you already cloned without submodules, initialize them with:
    git submodule update --init --recursive
  2. Install the Android SDK and NDK (29.0.14206865, matching bond-bunny and mediamtx-wrapper/toolchain.env).
  3. Build with Gradle:
    ./gradlew :app:assembleDebug
    • preBuild automatically downloads the pinned upstream MediaMTX source archive (verified by SHA-256 into .gradle/mediamtx-src/), compiles the embedded MediaMTX Go wrapper (app/libs/mediamtx.aar) via scripts/build_mediamtx_aar.sh, and caches it via Gradle up-to-date checks.
    • If go is not installed on your machine, the script automatically downloads the pinned portable Go toolchain (verified by SHA-256) and installs pinned gomobile/gobind into .gradle/go-toolchain/ (requires internet access on the first build).
    • Windows: building mediamtx.aar requires bash on PATH (for example Git for Windows / Git Bash) or building inside WSL.
  4. Optionally, run the Go tests for the embedded MediaMTX wrapper. They are not part of the Gradle build, so re-run them after changing mediamtx-wrapper/ or bumping MEDIAMTX_COMMIT in mediamtx-wrapper/toolchain.env (the wrapper uses MediaMTX internal APIs):
    scripts/test_mediamtx_wrapper.sh
    • Automatically fetches the pinned upstream MediaMTX source archive into .gradle/mediamtx-src/ if not already cached, and runs go test -race against a temporary copy. Extra arguments are passed through to go test.
    • Needs go on your PATH, or the portable one that a previous Gradle build bootstrapped into .gradle/go-toolchain/.

About

(Unstable experimental) Android IRL livestreaming app

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages