Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- 컴파일
- null safety
- Exception
- LAYER_TYPE_SOFTWARE
- Android
- Hyperledger
- ethereum
- 스트리밍
- web3js
- quick-start
- fabic
- bigquery
- log
- porterduff
- convert
- firebase
- 다윈
- Gradle
- 안드로이드
- error
- dataginding
- vuepress
- kotlin
- coroutines
- C
- Glide
- hardwareacceleration
- test
- Realm
- fabric-sdk-java
Archives
- Today
- Total
날마다 새롭게 또 날마다 새롭게
동영상 녹화 - mediaRecorder.setProfile 사용 (고화질 녹화) 본문
public void setProfile (CamcorderProfile profile)
캠코더 설정을 일괄적으로 가져와 재사용한다. 지정한 프로파일 종류의 출력 파일 포맷과 인코더 설정을 가져와 MediaRecorder에서 사용할 수 있다.
캠코더 고화질 설정을 이용하여 녹화를 하려는 경우, 다음과 같이 설정할 수 있다.
mRecorder = new MediaRecorder();
mCamera.unlock();
mRecorder.setCamera(mCamera);
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
CamcorderProfile profile = CamcorderProfile.get(currCamIdx,
CamcorderProfile.QUALITY_HIGH);
mRecorder.setProfile(profile);
mRecorder.setPreviewDisplay(mHolder.getSurface());
mRecorder.setOutputFile(filePath);
mRecorder.prepare();
Comments