티스토리 뷰
Stack Overflow에 자주 검색, 등록되는 문제들과 제가 개발 중 찾아 본 문제들 중에서 나중에도 찾아 볼 것 같은 문제들을 정리하고 있습니다.
Stack Overflow에서 가장 먼저 확인하게 되는 가장 높은 점수를 받은 Solution과 현 시점에 도움이 될 수 있는 가장 최근에 업데이트(최소 점수 확보)된 Solution을 각각 정리하였습니다.
아래 word cloud를 통해 이번 포스팅의 주요 키워드를 미리 확인하세요.
Capture Video of Android's Screen
안드로이드 화면 녹화하기
문제 내용
Forget screenshots, is it posible to capture a video of the running application in android? Rooted or non-rooted, I don't care, I want atleast 15fps.
스크린샷은 잊어버리고, 안드로이드에서 실행 중인 애플리케이션의 비디오를 녹화 할 수 있는 방법이 있을까요? 루팅이 되었든 안 되었든 상관없습니다. 최소한 15fps는 필요합니다.
Update: I don't want any external hardware. The intent is to make it perfectly portable and every frame is captured within Android OS. If it crosses the boundaries of the app sdk, I'm willing to go to OS level modifications but I would need a starting point.
업데이트: 외부 하드웨어는 원하지 않습니다. 목적은 완벽하게 포터블하게 만들고 모든 프레임이 Android OS 내에서 녹화됩니다. 앱 SDK의 경계를 넘어선다면 OS 수준의 수정이 필요하지만 시작점이 필요합니다.
높은 점수를 받은 Solution
Android 4.4 (KitKat) and higher devices have a shell utility for recording the Android device screen. Connect a device in developer/debug mode running KitKat with the adb utility over USB and then type the following:
Android 4.4 (KitKat) 이상의 기기에는 Android 기기 화면을 녹화하는 셸 유틸리티가 있습니다. USB로 adb 유틸리티를 통해 KitKat을 실행하는 개발자/디버그 모드의 기기를 연결한 다음 다음을 입력합니다:
adb shell screenrecord /sdcard/movie.mp4
(Press Ctrl-C to stop)
adb pull /sdcard/movie.mp4
Screen recording is limited to a maximum of 3 minutes.
화면 녹화는 최대 3분으로 제한됩니다.
Reference: https://developer.android.com/studio/command-line/adb.html#screenrecord
참조: https://developer.android.com/studio/command-line/adb.html#screenrecord
출처 : https://stackoverflow.com/questions/5382212/capture-video-of-androids-screen
'개발 > 안드로이드' 카테고리의 다른 글
부모 액티비티로 돌아가기 (0) | 2023.02.06 |
---|---|
'java.net.SocketException: socket failed: EACCES (Permission denied)' 수정하기 (0) | 2023.02.06 |
안드로이드에서 전역 변수 만드는 방법 (0) | 2023.02.06 |
Android WebView가 HTTPS URL을 로드 못하는 문제 수정하기 (0) | 2023.02.06 |
startActivity() 동작 안할 때 확인해 볼 것들.. (0) | 2023.02.05 |