Github:Genymobile / scrcpy:显示和控制您的 Android 设备 (github.com)
我提的issue:Video bitrate setting · Issue #5273 · Genymobile/scrcpy (github.com)
前言
最近有一个这样的需求,需要把平板内容投屏到电脑上,平板是华为matepad11.5s,笔记本是联想tb14+,找了好多软件,有华为电脑管家、自带投屏、scrcpy,最后还是选择用这个,让我在订阅制国内软件和几十k star的开源选择的话,一般还是开源,毕竟码农对开源有莫名的偏爱哈哈。
小白教程:【【超好用】安卓投屏神器 Scrcpy安装使用教程 我一直在用的Android投屏软件 Github开源项目】https://www.bilibili.com/video/BV1fh4y197nq?p=5&vd_source=a5916dd0c483eddb098610c4f50ae397
这个up讲的很详细,对小白很友好,但是有些还是没有补充到这个博客补充一下
显示模糊的问题
视频比特率默认8M,对于手机够用了,但是对于平板还是差点意思,启动使用添加这个配置项
scrcpy --video-bit-rate=32M
官方配置文档在这里scrcpy/doc/video.md at master · Genymobile/scrcpy (github.com),可自行炼丹
补充两个命令
-
-h 查看所有可设置的选项
-
-f启动全屏显示
我一般启动的时候就是这个脚本
scrcpy -f --video-bit-rate=32M
无线连接
有些同学可能觉得带个线很难受,可以使用无线连接模式,但是想要延迟低的话一般还是有线好一点。
运行下面的命令(ip换成自己平板|手机的ip,注意在一个局域网内)
ping 192.168.1.2 # ensure can connect this device
.\adb kill-server # 防止之前的设备影响
.\adb start-server # 启动adb服务
.\adb connect 192.168.1.2:5555 # 连接终端adb服务
.\adb devices # 查看是不是连上了
接下来运行scrcpy的脚本即可
!用华为平板的同学注意了,你拔掉数据线以后华为可能默认会把usb调试选项给你关了,重新开一下,不然connect的时候连不上
启动脚本
有时候还需要切到指定目录,运行命令,有点繁琐,写个windows脚本双击运行方便一点。
无线连接bat脚本(注意修改自己的路径和ip):
@echo off
ping 192.168.1.2
"D:\Program Files\scrcpy-win64-v2.6.1\adb.exe" kill-server
"D:\Program Files\scrcpy-win64-v2.6.1\adb.exe" start-server
"D:\Program Files\scrcpy-win64-v2.6.1\adb.exe" connect 192.168.1.2:5555
"D:\Program Files\scrcpy-win64-v2.6.1\adb.exe" devices
pause
启动vbs脚本(注意修改路径):
Dim shell
REM 创建执行对象
Set shell = CreateObject("Shell.Application")
REM 表示获取到管理员权限,执行,cmd窗口也会显示,0表示不显示,那个system32也可以不写,会自动找到 /c 告诉cmd执行后面的字符串 runas指定管理员权限
shell.ShellExecute "cmd.exe", "/c ""D:\Program Files\scrcpy-win64-v2.6.1\scrcpy.exe"" -f --video-bit-rate=32M", "C:\Windows\System32\", "", 1
文章评论
Good day! Do you know if they make any plugins to
help with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains.
If you know of any please share. Kudos! You can read similar art here:
<a href="https://www.ecobij.nl/">Bij nl</a>
Despite the fact that it's the world's tallest constructing, it doesn't have the world's highest statement deck.
<A HREF=https://mollyfmnh223676.look4blog.com/68102658/unveiling-the-truth-behind-defender-of-sugar-the-sweetness-may-be-fading>sugar defender reviews</A> As a
person who's always bewared regarding my blood sugar level, finding
Sugar Protector has actually been a relief. I feel a lot extra in control, and my current check-ups have revealed favorable
renovations. Understanding I have a trustworthy
supplement to sustain my regular provides me assurance.
I'm so happy for Sugar Defender's effect on my health and wellness!
<a href="https://jakubbfti653223.blogkoo.com/unveiling-the-truth-behind-defender-of-sugar-the-sweetness-may-be-fading-48717117">sugar defender ingredients</a>
<a href="https://haimamrho636243.yomoblog.com/35207662/unveiling-the-truth-behind-sugar-defender-the-sweetness-may-be-fading">sugar defender ingredients</a> For many years, I've battled unpredictable blood glucose
swings that left me feeling drained pipes and sluggish.
Yet because incorporating Sugar my energy levels are now secure and regular, and I
no more hit a wall in the mid-days. I value that it's a gentle, all-natural technique that doesn't featured any
unpleasant adverse effects. It's truly changed my every day life.
<A HREF=https://harmonyrzbw782709.blog-ezine.com/29145604/unveiling-the-truth-behind-sugar-defender-the-sweetness-may-be-fading>sugar defender ingredients</A> Including Sugar Protector right into my everyday
regimen has actually been a game-changer for my overall health.
As someone who already prioritizes healthy consuming, this supplement has
actually offered an included increase of protection. in my energy levels, and my desire for unhealthy treats so easy can have such a profound effect on my day-to-day live.
<A HREF="https://mathesjbs577310.blogozz.com/profile">sugar defender reviews</A>
<a href='https://kaletmxh627747.blogdomago.com/28345481/unveiling-the-truth-behind-defender-of-sugar-no-longer-quite-as-sweet'>sugar defender reviews</a>
For several years, I have actually battled unforeseeable blood glucose swings that left me feeling drained
pipes and tired. Yet given that including Sugar Defender right into
my routine, I have actually observed a considerable renovation in my general power and security.
The dreadful mid-day distant memory, and I appreciate that this natural treatment accomplishes these outcomes without any unpleasant or
negative responses. truthfully been a transformative exploration for me.
<a href="https://tiannazdqv324517.mybloglicious.com/50133604/unveiling-the-truth-behind-defender-of-sugar-the-sweetness-may-be-fading">sugar defender official website</a>
Quite the opposite, deindustrialisation and
automation have contributed to the crisis by creating un- and
underemployment within the old industrial
nations, leaving fewer individuals with disposable earnings for consumption. Rising productiveness, on the contrary, is celebrated as the only means
to survive the breakneck global competitors.