front-camera

How to record video using AudioVideoCptureDevice in WP8

萝らか妹 提交于 2019-12-31 02:02:04
问题 Here its stated that I can record video using AudioVideoCaptureDevice but there is no sample or help provided. I need to do the following things: - record the video into a stream DONE - display a thumbnail of video recorded (can be a frame captured while video recording) DONE - replay the video recorded DONE - change resolution and type of camera (front/back) DONE How to achieve this? Are there any samples? I am unable to find them. Please help me. DONE - record the video into a stream -

Front Camera Video Capturing Distortion - Android

混江龙づ霸主 提交于 2019-12-22 18:45:11
问题 I am working on Video capturing App. It is working fine for back camera. But when i switch to front CAM the video made is very blur (just some line across the video). mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_720P)); mediaRecorder.setOutputFile("/sdcard/myvideo.mp4"); mediaRecorder.setMaxDuration(600000); // Set max duration 60 sec.

How to convert & rotate raw NV21 array image (android.media.Image) from front cam portrait mode in onImageAvailable (android Camera2)?

左心房为你撑大大i 提交于 2019-12-18 03:46:48
问题 Note: All info in my post only goes for Samsung Galaxy S7 device. I do not know how emulators and other devices behave. In onImageAvailable I convert continuously each image to a NV21 byte array and forward it to an API expecting raw NV21 format. This is how I initialize the image reader and receive the images: private void openCamera() { ... mImageReader = ImageReader.newInstance(WIDTH, HEIGHT, ImageFormat.YUV_420_888, 1); // only 1 for best performance mImageReader

how to flip the video taken using front camera android [duplicate]

我是研究僧i 提交于 2019-12-12 00:05:28
问题 This question already has answers here : Android flip front camera mirror flipped video (4 answers) Closed 3 years ago . I have a video that mirror flips when I take it using the front camera. The surface view that is used to capture the video shows the mirror effect when recording but then it is flipped while playing the same. Kindly Help me. 回答1: This is an expected behavior. You cannot run the video recorder mirrored. You can flip the frames yourself (receiving the frames in onPreviewFrame

record video by front-camera - WP8 - C#

北城余情 提交于 2019-12-11 10:25:21
问题 My windows phone app needs to record a video from front-camera and send it to the server through a webservice. Here while I'm trying to record video from front-camera , I'm getting mirror inverted video . Means front-camera records 180 degree rotated video. what i think probably the only solution of it is to rotate the recorded video stream to 180 degree back. Question: is there any other solution to record proper video by front-camera in wp8 ? if not, how to rotate the video stream 180

Front Camera Video Capturing Distortion - Android

送分小仙女□ 提交于 2019-12-06 07:40:01
I am working on Video capturing App. It is working fine for back camera. But when i switch to front CAM the video made is very blur (just some line across the video). mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_720P)); mediaRecorder.setOutputFile("/sdcard/myvideo.mp4"); mediaRecorder.setMaxDuration(600000); // Set max duration 60 sec. mediaRecorder.setMaxFileSize(50000000); // Set max file size 50M BASEER ULHASSAN I have searched a lot

How to record video using AudioVideoCptureDevice in WP8

情到浓时终转凉″ 提交于 2019-12-01 22:22:26
Here its stated that I can record video using AudioVideoCaptureDevice but there is no sample or help provided. I need to do the following things: - record the video into a stream DONE - display a thumbnail of video recorded (can be a frame captured while video recording) DONE - replay the video recorded DONE - change resolution and type of camera (front/back) DONE How to achieve this? Are there any samples? I am unable to find them. Please help me. DONE - record the video into a stream - replay the video recorded - change resolution and type of camera (front/back) - display a thumbnail of

How to convert & rotate raw NV21 array image (android.media.Image) from front cam portrait mode in onImageAvailable (android Camera2)?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 02:46:30
Note: All info in my post only goes for Samsung Galaxy S7 device. I do not know how emulators and other devices behave. In onImageAvailable I convert continuously each image to a NV21 byte array and forward it to an API expecting raw NV21 format. This is how I initialize the image reader and receive the images: private void openCamera() { ... mImageReader = ImageReader.newInstance(WIDTH, HEIGHT, ImageFormat.YUV_420_888, 1); // only 1 for best performance mImageReader.setOnImageAvailableListener( mOnImageAvailableListener, mBackgroundHandler); ... } private final ImageReader

How to turn on flashlight and front camera at the same time in android

半城伤御伤魂 提交于 2019-11-27 07:58:43
问题 In one of the requirement in my app I need to pop up an activity containing the front camera preview,at this same time I need to turn on the flashlight as well.However I observe that,I am able to turn on the flashlight and back camera but not front camera and flashlight together.Following is my code: public class Cam extends Activity { private static int cameraId = 0; private Camera camera; //Adding for camera preview public static FrameLayout preview; public static CameraPreview mPreview;

Switch cameras with avcapturesession

半腔热情 提交于 2019-11-27 00:53:39
Using this tutorial here: http://www.musicalgeometry.com/?p=1297 I have created a custom overlay and image capture with AVCaptureSession . I am attempting to allow the user to switch between the front and back camera. Here is my code in CaptureSessionManager to switch cameras: - (void)addVideoInputFrontCamera:(BOOL)front { NSArray *devices = [AVCaptureDevice devices]; AVCaptureDevice *frontCamera; AVCaptureDevice *backCamera; for (AVCaptureDevice *device in devices) { //NSLog(@"Device name: %@", [device localizedName]); if ([device hasMediaType:AVMediaTypeVideo]) { if ([device position] ==