简体   繁体   English

通过HDMI或USB连接在android上接收音频和视频

[英]Receiving audio and video on android over HDMI or USB connection

I am rather new to Android development but I wish to receive audio and video content on my phone from a pc. 我是Android开发的新手,但我希望从PC接收手机上的音频和视频内容。 I am trying to record gameplay on my pc, and do not have the money to buy the hardware recorder, and I can not do screen capture and maintain acceptable fps. 我试图在我的PC上记录游戏玩法,但没有钱购买硬件记录器,并且我无法进行屏幕捕获并保持可接受的fps。

What I had in mind was to send my screen and audio to my phone like a second screen, where my phone will handle the saving process, reducing cpu load on my pc. 我想到的是将屏幕和音频像第二个屏幕一样发送到手机,手机将在其中处理保存过程,从而减少了PC上的CPU负载。 I don't think android phones can receive hdmi output, but I can do this with the USB via the android adb library "pull" command. 我不认为android手机可以接收hdmi输出,但是我可以通过android adb库“ pull”命令使用USB进行此操作。 However this requires that the file already be saved. 但是,这要求文件已经保存。

I can't seem to find any other way to do this, can anyone recommend a library I could use? 我似乎找不到其他方法可以这样做,有人可以推荐我可以使用的库吗?

No. USBs are slow. 否。USB速度很慢。 And there is no way to transfer what's on your computer screen to your android device without first recording it on the computer itself and then having to pass through the slow USB device and then slowly writing it to your phone's hard drive. 而且,如果不先将其记录在计算机本身上,然后必须通过慢速的USB设备,然后再将其缓慢写入手机的硬盘,就无法将计算机屏幕上的内容传输到android设备。 You'll be recording at a solid 0.5fps by then. 届时您将以稳定的0.5fps进行录制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM