Develope/개발일지

[Android / Mac] adb를 이용한 안드로이드 화면 캡쳐/녹화

고로이 2018. 8. 28. 10:16
반응형

1. ADB install

* brew cask install android-platform-tools


2. adb shell

$ screenrecord --h

Usage: screenrecord [options] <filename>


Android screenrecord v1.2.  Records the device's display to a .mp4 file.


Options:

--size WIDTHxHEIGHT

    Set the video size, e.g. "1280x720".  Default is the device's main

    display resolution (if supported), 1280x720 if not.  For best results,

    use a size supported by the AVC encoder.

--bit-rate RATE

    Set the video bit rate, in bits per second.  Value may be specified as

    bits or megabits, e.g. '4000000' is equivalent to '4M'.  Default 4Mbps.

--bugreport

    Add additional information, such as a timestamp overlay, that is helpful

    in videos captured to illustrate bugs.

--time-limit TIME

    Set the maximum recording time, in seconds.  Default / maximum is 180.

--verbose

    Display interesting information on stdout.

--help

    Show this message.


Recording continues until Ctrl-C is hit or the time limit is reached.



3. 영상 촬영


cd sdcard

screenrecord --size 3840x2160 test222.mp4

(1,920 x 1,080 가 가장 최적인듯)


4. 내보내기

adb pull /sdcard/test22.mp4



*참고

 adb devices

List of devices attached

**1c**dc9********    device


화질이 너무 구짐


반응형

'Develope > 개발일지' 카테고리의 다른 글

gitlab nginx 설정  (0) 2021.12.14
이클립스 속도가 느릴 때  (0) 2020.06.18
[OOP] 객체지향  (0) 2019.01.28
xml 파일과 properties 파일  (0) 2018.12.03
[용어] WBS 란 (Work Breakdown structure)  (1) 2018.01.05