{"id":15036202,"url":"https://github.com/pedrosg94/rootencoder","last_synced_at":"2025-10-04T03:36:29.477Z","repository":{"id":37601532,"uuid":"79667969","full_name":"pedroSG94/RootEncoder","owner":"pedroSG94","description":"RootEncoder for Android (rtmp-rtsp-stream-client-java) is a stream encoder to push video/audio to media servers using protocols RTMP, RTSP, SRT and UDP with all code written in Java/Kotlin","archived":false,"fork":false,"pushed_at":"2025-04-27T22:46:01.000Z","size":25224,"stargazers_count":2685,"open_issues_count":136,"forks_count":816,"subscribers_count":76,"default_branch":"master","last_synced_at":"2025-04-29T14:16:30.347Z","etag":null,"topics":["aac","amf","android","av1","encoder","filters","g711","h264","h265","java","kotlin","mpeg2-ts","opus","rtmp","rtp","rtsp","srt","stream","streaming","udp"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedroSG94.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["pedroSG94"],"patreon":"pedroSG94","custom":["https://www.paypal.com/paypalme/pedroSG94"]}},"created_at":"2017-01-21T19:32:49.000Z","updated_at":"2025-04-29T07:21:48.000Z","dependencies_parsed_at":"2023-09-08T21:25:11.679Z","dependency_job_id":"41bd9cf4-d69a-4dc4-ad4c-0c67e4876e92","html_url":"https://github.com/pedroSG94/RootEncoder","commit_stats":null,"previous_names":["pedrosg94/rootencoder","pedrosg94/rtmp-rtsp-stream-client-java"],"tags_count":164,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroSG94%2FRootEncoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroSG94%2FRootEncoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroSG94%2FRootEncoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroSG94%2FRootEncoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedroSG94","download_url":"https://codeload.github.com/pedroSG94/RootEncoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251516952,"owners_count":21601911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aac","amf","android","av1","encoder","filters","g711","h264","h265","java","kotlin","mpeg2-ts","opus","rtmp","rtp","rtsp","srt","stream","streaming","udp"],"created_at":"2024-09-24T20:30:30.028Z","updated_at":"2025-10-04T03:36:29.471Z","avatar_url":"https://github.com/pedroSG94.png","language":"Kotlin","funding_links":["https://github.com/sponsors/pedroSG94","https://patreon.com/pedroSG94","https://www.paypal.com/paypalme/pedroSG94"],"categories":[],"sub_categories":[],"readme":"# RootEncoder for Android\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-rtmp%20rtsp%20stream%20client%20java-green.svg?style=true)](https://android-arsenal.com/details/1/5333)\n[![Release](https://jitpack.io/v/pedroSG94/RootEncoder.svg)](https://jitpack.io/#pedroSG94/RootEncoder)\n[![Documentation](https://img.shields.io/badge/library-documentation-orange)](https://pedroSG94.github.io/RootEncoder)\n\n\u003cp align=\"center\"\u003e\n\u003cstrong\u003eSponsored with 💖 \u0026nbsp by\u003c/strong\u003e\u003cbr /\u003e\n\u003ca href=\"https://getstream.io/?utm_source=github.com/pedroSG94/rtmp-rtsp-stream-client-java\u0026utm_medium=github\u0026utm_campaign=oss_sponsorship\" target=\"_blank\"\u003e\n\u003cimg src=\"assets/images/stream-logo.png\" alt=\"Stream Chat\" style=\"margin: 8px; width: 350px\" /\u003e\n\u003c/a\u003e\n\u003cbr /\u003e\nEnterprise Grade APIs for Feeds \u0026 Chat. \u003ca href=\"https://getstream.io/tutorials/android-chat/?utm_source=https://github.com/pedroSG94/rtmp-rtsp-stream-client-java\u0026utm_medium=github\u0026utm_content=developer\u0026utm_term=java\" target=\"_blank\"\u003eTry the Android Chat tutorial\u003c/a\u003e 💬\n\u003c/p\u003e\n\n\u003c/br\u003e\n\nRootEncoder (rtmp-rtsp-stream-client-java) is a stream encoder to push video/audio to media servers using protocols RTMP, RTSP and SRT with all code written in Java/Kotlin\n\nNote: The library was renamed from rtmp-rtsp-stream-client-java to RootEncoder after add SRT protocol because the name has no sense anymore\n\n\n## iOS version:\n\nhttps://github.com/pedroSG94/RootEncoder-iOS\n\n## Wiki\n\nhttps://github.com/pedroSG94/RootEncoder/wiki\n\n## Permissions:\n\n```xml\n\u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n\u003cuses-permission android:name=\"android.permission.RECORD_AUDIO\" /\u003e\n\u003cuses-permission android:name=\"android.permission.CAMERA\" /\u003e\n```\n\n## Compile\n\nTo use this library in your project with gradle add this to your build.gradle:\n\n\u003cdetails open\u003e\n\u003csummary\u003eLast version\u003c/summary\u003e\n\n```gradle\nallprojects {\n  repositories {\n    maven { url 'https://jitpack.io' }\n  }\n}\ndependencies {\n  implementation \"com.github.pedroSG94.RootEncoder:library:2.6.4\"\n  //Optional, allow use CameraXSource and CameraUvcSource \n  implementation \"com.github.pedroSG94.RootEncoder:extra-sources:2.6.4\"\n}\n\n```\n\n\u003c/details\u003e\n\n\u003cdetails close\u003e\n\u003csummary\u003eOld versions (2.2.6 or less)\u003c/summary\u003e\n\n```gradle\nallprojects {\n  repositories {\n    maven { url 'https://jitpack.io' }\n  }\n}\ndependencies {\n  implementation 'com.github.pedroSG94.RootEncoder:rtplibrary:2.2.6'\n}\n```\n\n\u003c/details\u003e\n\n## Features:\n\n- [x] Android min API 16.\n- [x] Extra video sources minAPI 21+ (BitmapSource, CameraXSource and CameraUvcSource) \n\n### Encoder:\n\n- [x] Support [camera1](https://developer.android.com/reference/android/hardware/Camera.html) and [camera2](https://developer.android.com/reference/android/hardware/camera2/package-summary.html) API\n- [x] Encoder type buffer to buffer.\n- [x] Encoder type surface to buffer.\n- [x] Audio noise suppressor.\n- [x] Audio echo cancellation.\n- [x] Disable/Enable video and audio while streaming.\n- [x] Switch camera while streaming.\n- [x] Change video bitrate while streaming (API 19+).\n- [x] AV1, H264, H265, G711, AAC and OPUS hardware/software encoding.\n- [x] Force video and audio Codec to use hardware/software encoding (Not recommended).\n- [X] Record MP4 file while streaming (API 18+).\n- [X] Set Image, Gif or Text to stream on real time.\n- [X] OpenGL real time filters. [More info](https://github.com/pedroSG94/RootEncoder/wiki/Real-time-filters)\n- [x] Stream from video and audio files like mp4, webm, mp3, etc (Limited by device decoders). [More info](https://github.com/pedroSG94/RootEncoder/wiki/Stream-from-file)\n- [x] Stream device screen (API 21+).\n\n### RTMP:\n\n- [X] Get upload bandwidth used.\n- [x] RTSP auth (adobe and llnw).\n- [x] AV1, H265 ([Using RTMP enhanced](https://github.com/veovera/enhanced-rtmp/tree/main)), H264, AAC and G711 support.\n- [x] RTMPS (under TLS)\n- [x] RTMPT and RTMPTS (tunneled and tunneled under TLS)\n- [x] AMF0\n- [ ] AMF3\n\n### RTSP:\n\n- [X] Get upload bandwidth used.\n- [x] RTMP auth (basic and digest).\n- [x] AV1, H264, H265, AAC, G711 and OPUS support.\n- [x] TCP/UDP.\n- [x] RTSPS.\n\n### SRT (beta):\n\n- [X] Get upload bandwidth used.\n- [X] H264, H265, AAC and OPUS support.\n- [X] Resend lost packets\n- [X] Encrypt (AES128, AES192 and AES256)\n- [ ] SRT auth.\n\nhttps://haivision.github.io/srt-rfc/draft-sharabayko-srt.html\n\n### UDP (beta):\n\n- [X] Get upload bandwidth used.\n- [X] H264, H265, AAC and OPUS support.\n- [X] Unicast, Multicast and Broadcast support.\n- [X] MPEG2-TS support.\n\n\n## Other related projects:\n\nhttps://github.com/pedroSG94/RTSP-Server\n\n### 3rd party projects:\n\nProjects related with the library developed by other users.\nContact with user owner if you have any problem or question.\n\nhttps://github.com/FunnyDevs/rtmp-rtsp-stream-client-java-recordcontrollers\n\n## Real time filters:\n\n### NOTE:\nIn library version 2.0.9, the filters was refactored. Check the wiki link to migrate your implementation.\n\nhttps://github.com/pedroSG94/RootEncoder/wiki/Real-time-filters\n\n## Looking for sponsors\n\nThis library need sponsors to get new devices or pay platforms to test and debug errors. Any donation or sponsor is welcome!\nIf you are interested. You can contact me by email or donate directly on [Github](https://github.com/sponsors/pedroSG94) or [Paypal](https://www.paypal.com/paypalme/pedroSG94)\nThank you!\n\n## Use examples:\n\n### Rotation example\n\nThis is the recommend way to use the library. \nThis example support screen rotation, stream orientation (vertical, horizontal) filters and change video/audio sources on fly:\nhttps://github.com/pedroSG94/RootEncoder/tree/master/app/src/main/java/com/pedro/streamer/rotation\n\n### Screen example\n\nExample to stream using Screen as video source using a service to stream in background:\nhttps://github.com/pedroSG94/RootEncoder/tree/master/app/src/main/java/com/pedro/streamer/screen\n\n### From file example\n\nCode example to stream using a video file as video/audio source:\nhttps://github.com/pedroSG94/RootEncoder/tree/master/app/src/main/java/com/pedro/streamer/file\n\n### Old Api example\n\nCode example for low API devices (Android API 16+):\nhttps://github.com/pedroSG94/RootEncoder/tree/master/app/src/main/java/com/pedro/streamer/oldapi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrosg94%2Frootencoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrosg94%2Frootencoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrosg94%2Frootencoder/lists"}