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.
Share ideas or report issues in Discord https://discord.gg/2UzEkU2AJW or create Git issues.
- 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).
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.
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.
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.
- Open https://github.com/dimadesu/LifeStreamerV2/releases on the device that you want to install it on
- Download .apk file
- Install
- Enjoy!
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.
- Clone with git submodules (
StreamPack,bond-bunny):If you already cloned without submodules, initialize them with:git clone --recurse-submodules https://github.com/dimadesu/LifeStreamerV2.git
git submodule update --init --recursive
- Install the Android SDK and NDK (
29.0.14206865, matchingbond-bunnyandmediamtx-wrapper/toolchain.env). - Build with Gradle:
./gradlew :app:assembleDebug
preBuildautomatically 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) viascripts/build_mediamtx_aar.sh, and caches it via Gradle up-to-date checks.- If
gois not installed on your machine, the script automatically downloads the pinned portable Go toolchain (verified by SHA-256) and installs pinnedgomobile/gobindinto.gradle/go-toolchain/(requires internet access on the first build). - Windows: building
mediamtx.aarrequiresbashonPATH(for example Git for Windows / Git Bash) or building inside WSL.
- 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 bumpingMEDIAMTX_COMMITinmediamtx-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 runsgo test -raceagainst a temporary copy. Extra arguments are passed through togo test. - Needs
goon yourPATH, or the portable one that a previous Gradle build bootstrapped into.gradle/go-toolchain/.
- Automatically fetches the pinned upstream MediaMTX source archive into
