Open source
Maenun is built with open-source software. This page names it and says where its source is. The full licence texts are inside each app, under Open Source Licenses.
FFmpeg
Maenun for iPhone and iPad uses libraries from the FFmpeg project under the LGPLv2.1 (GNU Lesser General Public License, version 2.1 or later). The other three apps do not contain FFmpeg.
- Source. The
release/6.0branch at commitbda1c6f1f904, with the one change shown below. It is built without the GPL and non-free parts. - Libraries. libavcodec, libavformat, libavutil, libavdevice, libavfilter, libswresample and libswscale, linked statically.
- Relinking. If you want to relink the app with a version of these libraries that you changed, write to maenunmirror@gmail.com and name the app version. We will send you the app's object files and the steps to link them. The offer stands for three years after each version is released.
Configured with:
./configure --enable-cross-compile --disable-debug --disable-doc --enable-pic \
--disable-audiotoolbox --disable-sdl2 --disable-libxcb --target-os=darwin --arch=arm64 \
--cc='xcrun -sdk iphoneos clang' --as='gas-preprocessor.pl -arch arm64 -- xcrun -sdk iphoneos clang' \
--extra-cflags='-arch arm64 -miphoneos-version-min=13.0' \
--extra-ldflags='-arch arm64 -miphoneos-version-min=13.0' --prefix=<build directory>Changed (the hardware decoder is offered for every colour space):
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -799,7 +799,7 @@ static enum AVPixelFormat get_pixel_format(H264Context *h, int force_callback)
break;
case 10:
#if CONFIG_H264_VIDEOTOOLBOX_HWACCEL
- if (h->avctx->colorspace != AVCOL_SPC_RGB)
+ // if (h->avctx->colorspace != AVCOL_SPC_RGB)
*fmt++ = AV_PIX_FMT_VIDEOTOOLBOX;
#endif
if (CHROMA444(h)) {
@@ -842,7 +842,7 @@ static enum AVPixelFormat get_pixel_format(H264Context *h, int force_callback)
*fmt++ = AV_PIX_FMT_CUDA;
#endif
#if CONFIG_H264_VIDEOTOOLBOX_HWACCEL
- if (h->avctx->colorspace != AVCOL_SPC_RGB)
+ // if (h->avctx->colorspace != AVCOL_SPC_RGB)
*fmt++ = AV_PIX_FMT_VIDEOTOOLBOX;
#endifEverything else
| Component | Licence | Used in |
|---|---|---|
| scrcpy (Genymobile) | Apache License 2.0 | Maenun |
| scrcpy-mobile (Ethan) | MIT License | Maenun for iPhone and iPad |
| Android platform tools (adb) | Apache License 2.0 | Maenun |
| Tailscale tsnet and the libraries it includes | BSD 3-Clause License and others | all four apps |
| FFmpeg | LGPL 2.1 or later | Maenun for iPhone and iPad |
| SDL | zlib License | Maenun for iPhone and iPad |
| BoringSSL | ISC License / OpenSSL License | Maenun |
| KeychainSwift | MIT License | Maenun for iPhone and iPad |
| Protocol Buffers | BSD 3-Clause License | Maenun for Android |
| Zstandard | BSD License | Maenun for Android |
| LZ4 | BSD 2-Clause License | Maenun for Android |
| Brotli | MIT License | Maenun for Android |
| {fmt} | MIT License | Maenun for Android |
| AndroidX and Jetpack Compose | Apache License 2.0 | the Android apps |
| Kotlin standard library and coroutines | Apache License 2.0 | the Android apps |
"Maenun" without a platform means both the iPhone/iPad and the Android app. Maenun Host for iPhone and iPad and Maenun Host for Android contain the tunnel library only.