{"id":13423438,"url":"https://github.com/Genymobile/scrcpy","last_synced_at":"2025-03-15T17:31:43.923Z","repository":{"id":37234940,"uuid":"111583593","full_name":"Genymobile/scrcpy","owner":"Genymobile","description":"Display and control your Android device","archived":false,"fork":false,"pushed_at":"2025-03-09T20:17:23.000Z","size":7435,"stargazers_count":118736,"open_issues_count":2284,"forks_count":11227,"subscribers_count":1277,"default_branch":"master","last_synced_at":"2025-03-10T06:51:53.525Z","etag":null,"topics":["android","c","ffmpeg","libav","mirroring","recording","screen","sdl2"],"latest_commit_sha":null,"homepage":"","language":"C","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/Genymobile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["rom1v"],"liberapay":"rom1v","custom":["https://paypal.me/rom2v"]}},"created_at":"2017-11-21T18:00:27.000Z","updated_at":"2025-03-10T06:41:20.000Z","dependencies_parsed_at":"2022-07-08T18:43:27.770Z","dependency_job_id":"460777bc-805e-4038-a2d5-401d7d8b92f7","html_url":"https://github.com/Genymobile/scrcpy","commit_stats":{"total_commits":2491,"total_committers":148,"mean_commits":16.83108108108108,"dds":0.2035327177840225,"last_synced_commit":"665ccb32f5306ebd866dc0d99f4d08ed2aeb91c3"},"previous_names":[],"tags_count":54,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genymobile%2Fscrcpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genymobile%2Fscrcpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genymobile%2Fscrcpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genymobile%2Fscrcpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Genymobile","download_url":"https://codeload.github.com/Genymobile/scrcpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243766838,"owners_count":20344820,"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":["android","c","ffmpeg","libav","mirroring","recording","screen","sdl2"],"created_at":"2024-07-31T00:00:34.573Z","updated_at":"2025-03-15T17:31:43.916Z","avatar_url":"https://github.com/Genymobile.png","language":"C","readme":"**This GitHub repo (\u003chttps://github.com/Genymobile/scrcpy\u003e) is the only official\nsource for the project. Do not download releases from random websites, even if\ntheir name contains `scrcpy`.**\n\n# scrcpy (v3.1)\n\n\u003cimg src=\"app/data/icon.svg\" width=\"128\" height=\"128\" alt=\"scrcpy\" align=\"right\" /\u003e\n\n_pronounced \"**scr**een **c**o**py**\"_\n\nThis application mirrors Android devices (video and audio) connected via USB or\n[TCP/IP](doc/connection.md#tcpip-wireless) and allows control using the\ncomputer's keyboard and mouse. It does not require _root_ access or an app\ninstalled on the device. It works on _Linux_, _Windows_, and _macOS_.\n\n![screenshot](assets/screenshot-debian-600.jpg)\n\nIt focuses on:\n\n - **lightness**: native, displays only the device screen\n - **performance**: 30~120fps, depending on the device\n - **quality**: 1920×1080 or above\n - **low latency**: [35~70ms][lowlatency]\n - **low startup time**: ~1 second to display the first image\n - **non-intrusiveness**: nothing is left installed on the Android device\n - **user benefits**: no account, no ads, no internet required\n - **freedom**: free and open source software\n\n[lowlatency]: https://github.com/Genymobile/scrcpy/pull/646\n\nIts features include:\n - [audio forwarding](doc/audio.md) (Android 11+)\n - [recording](doc/recording.md)\n - [virtual display](doc/virtual_display.md)\n - mirroring with [Android device screen off](doc/device.md#turn-screen-off)\n - [copy-paste](doc/control.md#copy-paste) in both directions\n - [configurable quality](doc/video.md)\n - [camera mirroring](doc/camera.md) (Android 12+)\n - [mirroring as a webcam (V4L2)](doc/v4l2.md) (Linux-only)\n - physical [keyboard][hid-keyboard] and [mouse][hid-mouse] simulation (HID)\n - [gamepad](doc/gamepad.md) support\n - [OTG mode](doc/otg.md)\n - and more…\n\n[hid-keyboard]: doc/keyboard.md#physical-keyboard-simulation\n[hid-mouse]: doc/mouse.md#physical-mouse-simulation\n\n## Prerequisites\n\nThe Android device requires at least API 21 (Android 5.0).\n\n[Audio forwarding](doc/audio.md) is supported for API \u003e= 30 (Android 11+).\n\nMake sure you [enabled USB debugging][enable-adb] on your device(s).\n\n[enable-adb]: https://developer.android.com/studio/debug/dev-options#enable\n\nOn some devices (especially Xiaomi), you might get the following error:\n\n```\njava.lang.SecurityException: Injecting input events requires the caller (or the source of the instrumentation, if any) to have the INJECT_EVENTS permission.\n```\n\nIn that case, you need to enable [an additional option][control] `USB debugging\n(Security Settings)` (this is an item different from `USB debugging`) to control\nit using a keyboard and mouse. Rebooting the device is necessary once this\noption is set.\n\n[control]: https://github.com/Genymobile/scrcpy/issues/70#issuecomment-373286323\n\nNote that USB debugging is not required to run scrcpy in [OTG mode](doc/otg.md).\n\n\n## Get the app\n\n - [Linux](doc/linux.md)\n - [Windows](doc/windows.md) (read [how to run](doc/windows.md#run))\n - [macOS](doc/macos.md)\n\n\n## Must-know tips\n\n - [Reducing resolution](doc/video.md#size) may greatly improve performance\n   (`scrcpy -m1024`)\n - [_Right-click_](doc/mouse.md#mouse-bindings) triggers `BACK`\n - [_Middle-click_](doc/mouse.md#mouse-bindings) triggers `HOME`\n - \u003ckbd\u003eAlt\u003c/kbd\u003e+\u003ckbd\u003ef\u003c/kbd\u003e toggles [fullscreen](doc/window.md#fullscreen)\n - There are many other [shortcuts](doc/shortcuts.md)\n\n\n## Usage examples\n\nThere are a lot of options, [documented](#user-documentation) in separate pages.\nHere are just some common examples.\n\n - Capture the screen in H.265 (better quality), limit the size to 1920, limit\n   the frame rate to 60fps, disable audio, and control the device by simulating\n   a physical keyboard:\n\n    ```bash\n    scrcpy --video-codec=h265 --max-size=1920 --max-fps=60 --no-audio --keyboard=uhid\n    scrcpy --video-codec=h265 -m1920 --max-fps=60 --no-audio -K  # short version\n    ```\n\n - Start VLC in a new virtual display (separate from the device display):\n\n    ```bash\n    scrcpy --new-display=1920x1080 --start-app=org.videolan.vlc\n    ```\n\n - Record the device camera in H.265 at 1920x1080 (and microphone) to an MP4\n   file:\n\n    ```bash\n    scrcpy --video-source=camera --video-codec=h265 --camera-size=1920x1080 --record=file.mp4\n    ```\n\n - Capture the device front camera and expose it as a webcam on the computer (on\n   Linux):\n\n    ```bash\n    scrcpy --video-source=camera --camera-size=1920x1080 --camera-facing=front --v4l2-sink=/dev/video2 --no-playback\n    ```\n\n - Control the device without mirroring by simulating a physical keyboard and\n   mouse (USB debugging not required):\n\n    ```bash\n    scrcpy --otg\n    ```\n\n - Control the device using gamepad controllers plugged into the computer:\n\n    ```bash\n    scrcpy --gamepad=uhid\n    scrcpy -G  # short version\n    ```\n\n## User documentation\n\nThe application provides a lot of features and configuration options. They are\ndocumented in the following pages:\n\n - [Connection](doc/connection.md)\n - [Video](doc/video.md)\n - [Audio](doc/audio.md)\n - [Control](doc/control.md)\n - [Keyboard](doc/keyboard.md)\n - [Mouse](doc/mouse.md)\n - [Gamepad](doc/gamepad.md)\n - [Device](doc/device.md)\n - [Window](doc/window.md)\n - [Recording](doc/recording.md)\n - [Virtual display](doc/virtual_display.md)\n - [Tunnels](doc/tunnels.md)\n - [OTG](doc/otg.md)\n - [Camera](doc/camera.md)\n - [Video4Linux](doc/v4l2.md)\n - [Shortcuts](doc/shortcuts.md)\n\n\n## Resources\n\n - [FAQ](FAQ.md)\n - [Translations][wiki] (not necessarily up to date)\n - [Build instructions](doc/build.md)\n - [Developers](doc/develop.md)\n\n[wiki]: https://github.com/Genymobile/scrcpy/wiki\n\n\n## Articles\n\n- [Introducing scrcpy][article-intro]\n- [Scrcpy now works wirelessly][article-tcpip]\n- [Scrcpy 2.0, with audio][article-scrcpy2]\n\n[article-intro]: https://blog.rom1v.com/2018/03/introducing-scrcpy/\n[article-tcpip]: https://www.genymotion.com/blog/open-source-project-scrcpy-now-works-wirelessly/\n[article-scrcpy2]: https://blog.rom1v.com/2023/03/scrcpy-2-0-with-audio/\n\n## Contact\n\nYou can open an [issue] for bug reports, feature requests or general questions.\n\nFor bug reports, please read the [FAQ](FAQ.md) first, you might find a solution\nto your problem immediately.\n\n[issue]: https://github.com/Genymobile/scrcpy/issues\n\nYou can also use:\n\n - Reddit: [`r/scrcpy`](https://www.reddit.com/r/scrcpy)\n - BlueSky: [`@scrcpy.bsky.social`](https://bsky.app/profile/scrcpy.bsky.social)\n - Twitter: [`@scrcpy_app`](https://twitter.com/scrcpy_app)\n\n\n## Donate\n\nI'm [@rom1v](https://github.com/rom1v), the author and maintainer of _scrcpy_.\n\nIf you appreciate this application, you can [support my open source\nwork][donate]:\n - [GitHub Sponsors](https://github.com/sponsors/rom1v)\n - [Liberapay](https://liberapay.com/rom1v/)\n - [PayPal](https://paypal.me/rom2v)\n\n[donate]: https://blog.rom1v.com/about/#support-my-open-source-work\n\n## Licence\n\n    Copyright (C) 2018 Genymobile\n    Copyright (C) 2018-2025 Romain Vimont\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":["https://github.com/sponsors/rom1v","https://liberapay.com/rom1v","https://paypal.me/rom2v","https://liberapay.com/rom1v/"],"categories":["C","Tools","HarmonyOS","Development","Mobile","Applications","截屏录屏软件","Navigation","Misc","Uncategorized","[C-C++](#C-C++)","Using GNOME Boxes to create a Windows virtual machine","Game Development Learning Resources","Real-World Projects","C (286)","Android 应用","其它实用工具","Screen mirroring","android","c","Table of Contents","🤷‍ Other","Android","投屏","my-ubuntu","Weapons","System Utilities","工具和应用"],"sub_categories":["Windows Manager","Time Series","Utilities","Tools","Uncategorized","Winetricks","Objective-C Tools, Libraries, and Frameworks","Desktop Application Development","网络服务_其他","其他","tech","Containers","Android","其他杂项"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGenymobile%2Fscrcpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGenymobile%2Fscrcpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGenymobile%2Fscrcpy/lists"}