安卓录屏包括音频

标签 android audio video screen-capture

<分区>

我正在寻找一种工具或方法来在 Android 手机上录制包含音频的 Android 应用程序。在我的研究中,我发现了一个类似的问题和三个工具。但没有人不能同时录制视频和音频。

类似问题:

工具:

编辑

我找到了一个名为 Screencast Video Recorder Demo 的应用程序解决方案录制视频和音频。但是你必须root手机才能使用这个应用程序。还有其他可能吗?

2019 年 2 月 2 日更新

我刚刚偶然发现了这个名为“Record a video”的开发者 android 页面,它似乎解决了我在使用 Android Studio 时的问题:

Logcat lets you record an MP4 video from your hardware device for a maximum of three minutes. You can, for example, use the video for your marketing materials or for debugging.

  1. Open an app project.
  2. Run the app on a hardware device.
  3. Click View > Tool Windows > Logcat.
  4. Interact with the display on the hardware device to stage the start of the video.
  5. Click Screen Record in the left side of the Logcat window.
  6. In the Screen Recorder Options dialog, set the recording options:

    • Bit Rate: Enter a bit rate. The default is 4 Mbps.
    • Resolution: Enter a width and height value in pixels. The value must be a multiple of 16. The default is the resolution of the device.
    • Show Taps: Enables visual feedback for taps.
  7. Click Start Recording to start the recording.
  8. Click Stop Recording to stop the recording.
  9. In the Save As dialog, save the MP4 file.
  10. In the Screen Recorder dialog, click one of the buttons to show the file location, open the recording in a player, or dismiss the dialog.

最佳答案

没有可移植的方式来录制手机上正在播放的音频。除非您使用内部麦克风录制来自内部扬声器的声音,否则 A) 将导致录音质量极差,并且 B) 如果用户已连接(例如),则完全失败。有线耳机。

关于安卓录屏包括音频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12688269/

相关文章:

language-agnostic - 逐帧访问视频

java - 在 AVD 上运行时发生 Android 套接字错误

ios - 限制或扩展播放的样本数量

javascript - JS/JQuery 文本转语音 : How to chain audios?

delphi - 如何在没有关联应用程序的情况下直接播放声音文件(mp3、wav 等)?

python - 使用 Python 将照片或视频上传到 Facebook

php - 致命异常 : AsyncTask #1 and android. view.WindowLeaked

java - 是否可以将 FragmentActivity 放入 fragment 容器中?

android - Android 的哪一部分负责选择正确的资源配置文件?

javascript - Jquery 更改视频源 Src 没有达到预期的效果