简体   繁体   English

无法使用屏幕录像或电视电影在Android Nexus 4上录制屏幕

[英]Cannot record the screen on Android Nexus 4 with screenrecord or telecine

On Nexus 4, with Android 5.1.1 I have the following problem that drives me mad: 在Nexus 4和Android 5.1.1上,我遇到了以下使我发疯的问题:

When trying to record the screen (on Kubuntu 15.04) with: 尝试使用以下方法记录屏幕(在Kubuntu 15.04上)时:

adb shell screenrecord --verbose /sdcard/Download/intro9.mp4

just few seconds (1-4) are recorded and then recording stops by itself. 仅录制几秒钟(1-4),然后录制本身停止。

In the logcat there is relevant output: 在logcat中有相关的输出:

09-16 14:12:46.943    5733-5742/? I/OMXClient﹕ Using client-side OMX mux.
09-16 14:12:46.946     188-4537/? E/OMX-VENC-720p﹕ Is component secure 0
09-16 14:12:46.969      188-188/? E/OMX-VENC-720p﹕ set_parameter: metamode is valid for input port only
09-16 14:12:46.969      188-188/? E/OMXNodeInstance﹕ setParameter(50:qcom.encoder.avc, OMX.google.android.index.storeMetaDataInBuffers(0x7f00001c): Output:1 en=0 GB=0) ERROR: UnsupportedSetting(0x80001019)
09-16 14:12:46.969    5733-5742/? E/ACodec﹕ [OMX.qcom.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -1010
09-16 14:12:46.971     188-4537/? E/OMX-VENC-720p﹕ WARNING: Unsupported Color format [2130708361]
09-16 14:12:46.972     188-4537/? E/OMX-VENC-720p﹕ C2D init is successful
09-16 14:12:46.972      188-188/? E/OMX-VENC-720p﹕ WARNING: Unsupported Color format [2130708361]
09-16 14:12:46.973     188-5092/? E/OMX-VENC-720p﹕ venc_set_intra_period: nPFrames = 600 nBFrames = 0
09-16 14:12:46.982     188-5743/? E/OMX-VENC-720p﹕ Allocated virt:0xb3e4b000, FD: 41 of size 1474560 at index: 0
09-16 14:12:46.982     188-5743/? E/OMX-VENC-720p﹕ Allocated virt:0xb3ce3000, FD: 43 of size 1474560 at index: 1
09-16 14:12:47.011     188-5743/? E/OMX-VENC-720p﹕ open Color conv for RGBA888

After Ctrl-C: 在Ctrl-C之后:

09-16 14:13:21.482      188-716/? E/OMX-VENC-720p﹕ ion recon buffer free failed
09-16 14:13:21.482      188-716/? E/OMX-VENC-720p﹕ ion recon buffer free failed
09-16 14:13:21.521     188-5744/? E/OMX-VENC-720p﹕ ioctl VEN_IOCTL_CMD_READ_NEXT_MSG failed
09-16 14:13:21.521     188-5092/? E/OMX-VENC-720p﹕ Destroy C2D instance

The console outpus is: 控制台输出是:

Main display is 768x1280 @60.00fps (orientation=0)
Configuring recorder for 768x1280 video/avc at 4.00Mbps
Content area is 768x1280 at offset x=0 y=0

I've tried different solutions like lowering the bitrate, restarting the phone, using telecine, using different PC, turning off MTP but with no luck. 我尝试了各种解决方案,例如降低比特率,重启电话,使用电视电影,使用其他PC,关闭MTP,但都没有运气。 In the past when faced the same problem even downgraded the Android to 4.4 but again no luck. 在过去,当遇到同样的问题时,甚至将Android降级到4.4,但也没有运气。

Did someone had this problem and how did you solved it? 有人遇到过这个问题吗?您是如何解决的?

PS The weird thing is that everything was working as expected initially: I was able to record about 2 minutes of screen recording with Telecine (few times). PS奇怪的是,最初一切都按预期运行:我能够用Telecine录制大约2分钟的屏幕录像(很少)。 And then for no apparent reason it started to behave like this... 然后没有明显的原因,它开始表现得像这样……

It turns out the reason is pretty simple: when Android Studio or Eclipse is running it obviously sends some adb messages periodically that interrupt the recording. 事实证明,原因很简单:运行Android Studio或Eclipse时,它显然会定期发送一些adb消息来中断录制。 The solution is stop the AS or eclipse and then to record. 解决的办法是停止AS或Eclipse,然后进行记录。

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

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