-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67453a2
commit 62eb8b0
Showing
4 changed files
with
172 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# android_virtual_cam | ||
xposed安卓虚拟摄像头 | ||
|
||
已加入Camera2支持,抖音测试通过。 | ||
软件对TextureView预览信息替换的视频是 /sdcard/DCIM/Camera/virtual.mp4 | ||
软件对onPreviewFrame预览信息替换的**照片**是 /sdcard/DCIM/Camera/virtual.jpg | ||
## virtual.jpg 并不是jpg图片,其格式应为YUV420SP,使用jpg后缀是为了避免安卓权限管理影响,可以用 https://github.com/smewise/Camera2 生成,其软件内标注的格式为YUV_420_888,使用图片时请注意分辨率应与目标应用匹配。 | ||
## > 如何获得分辨率?? | ||
软件对onPreviewFrame预览信息替换的**照片**是 /sdcard/DCIM/Camera/bmp/***.bmp | ||
"***.bmp" 是bmp图片,文件命名的规则为:从100.bmp开始,按帧排序依次为101.bmp,102.bmp……110.bmp,111.bmp……,最少有65张图片,最大不超过99张(超过了的话文件名会多一位),可以使用Premiere将视频转化为BMP。 | ||
|
||
## > 如何获得分辨率??(仅onPreviewFrame需要,其它系统自动处理) | ||
在目标应用中打开摄像头,若创建回调则即可在Xposed log得到分辨率。 | ||
|
||
## 请勿用于非法用途,任何法律问题与作者无关。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters