从VideoView录制视频 [英] Record video from VideoView

查看:136
本文介绍了从VideoView录制视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前正在做有关实时流媒体的项目,我成功地播放了实时视频.现在,我的下一个任务是录制在VideoView中播放的视频. 我进行了搜索,能够找到捕获的视频,但是带有表面(相机),但是在VideoView中,我没有任何表面.

Currently doing project on live Streaming, and I succeed to play live video. Now my next task is to record the video which is playing in VideoView. I had searched, able to found capturing video but with surface(camera) but here in VideoView I am not having any surface.

任何帮助表示赞赏

推荐答案

您可以使用平台工具并通过以下方式录制视频:

You can use platform-tools and record video using:

adb shell screenrecord --verbose /sdcard/demo.mp4

用所需的任何文件名替换演示. 同样,这也将放置在您的手机上,我相信默认为6分钟. 查看屏幕录像的选项.

Replace Demo with whatever file name you want. Also this will be placed on your phone, and defaults to 6 minutes I believe. Check out the options of screen record.

要将文件拉到计算机上....(以下命令,或使用Android设备监视器

To pull the file to your computer.... (the following command, or use Android Device Monitor

adb pull /sdcard/demo.mp4

我用它来录制应用程序的演示,甚至播放了youtube,并录制了. 它没有音频,因此可能是一个主要问题. 但这已包含在sdk中,并记录了在录制过程中显示的所有屏幕.

I have used this to record demo's of apps, and even played youtube, and had it record that. It does not have audio, so that may be a major problem. But this is included in the sdk, and records any screen showing while it is recording.

这篇关于从VideoView录制视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆