Android :: Video Capture With Preview Available?

Aug 20, 2009

Can anyone share or point me to working example of "video capture" with preview?

Android :: video capture with preview available?


Android :: Possible To Camera Capture Without A Preview?

Jun 30, 2010

Is it possible to capture an image without showing the camera preview?, i have a requirement that i should be able to capture the image from a thread or from a service, without disturbing the foreground application, where i do not want to show the camera preview, but still i want to capture the image in background and store it in the device. So is it possible to do using the Android 2.2 SDK version?

View 3 Replies View Related

Android :: Camera Capture Without Preview In 2.2

Aug 30, 2010

I have a requirement to Capture the image without showing the Preview.. And i want to do it in the Background as a Service. Is it possible to do that?

View 2 Replies View Related

Android :: Code For Camera Preview And Image Capture

Jun 11, 2009

This is the code that I have for camera preview and image capture.I am trying to do camera preview and as I press the space button I am trying to take picture and save it in the picture gallery of the Android development phone. The code compiles fine,but as I press the space button,it captures the image and throws an exception and closes the application...

CODE:...................

View 7 Replies View Related

Android :: Motorola Droid - QCIF Camera Preview And Capture

Jun 22, 2010

I am seeing a very annoying behavior on Motorola Droid when trying to do a simple camera preview at QCIF resolution. And I was wondering if someone experienced something similar. Is there a workaround? Am I doing something wrong?

Let me explain the situation.

Firstly, right after boot-up, using native camera application there is nothing out of ordinary, I see preview each time and it is all perfectly well for as long as needed as many times as I want.

The "interesting" behavior starts when I use the slightly modified API Demos (full app available in Android SDK, modified file is attached). My goal is to preview (and later capture) video at QCIF (176 x 144) resolution.

Using CameraPreview module in API Demos application I can start preview and capture normally only the first time - picture is clear, focused, normal colors, etc. Preview and all is nice. The second time I do preview I see a very over-exposed picture, I need to turn it away from any light source to see anything, otherwise it is all white. And even in the shadow, everything is grainy, as if picture is taken with too sensitive settings (high ISO) with too long exposure. The third time, it is the opposite - the preview and capture is way too dark. I need to point the camera directly into the light source to see even a faintest picture. Pointing out of the window does not help, it has to be straight into the lamp or sun. The effect is like taking pictures with much too low ISO setting - it is way too underexposed.

The overexposed and underexposed sessions interchange, but it is not clear-cut which one appears first. So far the prevailing pattern is that overexposed one starts first. Now surprise comes when I try using native camera application. The pattern continues! It is as if hardware or or software (camera process) got "tainted" with the QCIF. This continues until I reboot the device.

Another interesting point is that if I allow device to "rest", symptoms are much less pronounced after 10 minutes, then in 15 minutes they become barely visible. However, it all comes back after the first time I capture in QCIF. Nothing like this is visible when resolution is higher, say, CIF, VGA or similar. The problem is that, for my purposes I need it to be QCIF.

View 5 Replies View Related

Android :: How To Capture Preview Image Frames From Camera Application In Programming

Jul 31, 2010

I am writing an app to capture the camera preview frames and convert it to bitmap in Android.

Here is my code:...........

After I start preview, the callback got called with data, but the bitmap is null.

What did I do wrong when convert the byte array to BitMap?

View 2 Replies View Related

General :: App To Capture Video When Watching YouTube Or Any Video?

Sep 19, 2012

Is there an app to capture video when watching let's say YouTube or any video? Was looking for something like that so I could capture my baby boys face as he watches videos .

View 2 Replies View Related

Android :: How To Capture Video?

Jun 23, 2009

I would like to create a video recorder and so far haven't figured out how to set parameters in order to successfully go through MediaRecorder.prepare() method. Executing the following method

public void start() throws IOException{
String state = android.os.Environment.getExternalStorageState();
if(!state.equals(Environment.MEDIA_MOUNTED))
{
throw new IOException("SD card is not mounted. It is " + state + ".");
}
File directory = new File(path).getParentFile();
if(!directory.exists() && !directory.mkdirs())
{
throw new IOException("Path to file could not be created.");
}

recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
recorder.setVideoFrameRate(15);
recorder.setVideoSize(176, 144);
recorder.setOutputFile(path);
recorder.prepare();
recorder.start();
this.state = VideoRecorderState.STATE_RECORDING;
}

it throws an exception on line recorder.prepare(). Does anyone know how to set parameters in order to be able to capture video?

View 7 Replies View Related

Android :: 1.5 Video API Not Working / No Preview

Jun 22, 2009

I have tried 1.5 video API. I could not make it work. It even can't do preview. Following is my code:
private boolean initializeVideo() { Log.v(TAG, "initializeVideo");
if(Common.mRecordedVideo!=null && Common.mRecordedVideo.exists ()) Common.mRecordedVideo.delete();
File sDir = Environment.getExternalStorageDirectory();
String baseDir = sDir + Common.BASE_DIR;
File sampleDir=new File(baseDir);
if(!sampleDir.canWrite()) // Workaround for broken sdcard support on the device.
sampleDir = new File("/sdcard/sdcard");
try { Common.mRecordedVideo = File.createTempFile(PREFIX, EXTENSION, sampleDir);
} catch(IOException e) { AlertDialog.Builder ab = new AlertDialog.Builder (VideoRecord.this);
ab.setTitle("Error"); ab.setMessage(" can't write audio data to storage");
ab.setIcon(R.drawable.error); ab.setNeutralButton("Close", new DialogInterface.OnClickListener()
{ public void onClick(DialogInterface dialog, int whichButton) { } } );
ab.show(); return false;
} Intent intent = getIntent(); releaseMediaRecorder();
if (mSurfaceHolder == null) { Log.v(TAG, "SurfaceHolder is null");
return false; } mMediaRecorder = new MediaRecorder();
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mMediaRecorder.setVideoSource (MediaRecorder.VideoSource.CAMERA);
mMediaRecorder.setOutputFormat (MediaRecorder.OutputFormat.THREE_GPP);
mMediaRecorder.setMaxDuration(MAX_RECORDING_DURATION_MS);
mMediaRecorder.setOutputFile (Common.mRecordedVideo.getAbsolutePath());
// Use the same frame rate for both, since internally
// if the frame rate is too large, it can cause camera to become
// unstable. We need to fix the MediaRecorder to disable the support
// of setting frame rate for now.
mMediaRecorder.setVideoFrameRate(20);
mMediaRecorder.setVideoSize(352,288);
mMediaRecorder.setVideoEncoder (MediaRecorder.VideoEncoder.H263);
mMediaRecorder.setPreviewDisplay(mSurfaceHolder.getSurface());
try { mMediaRecorder.prepare();
} catch (IOException exception) { Log.e(TAG, "prepare failed for " );
releaseMediaRecorder(); // TODO: add more exception handling logic here
return false; } mMediaRecorderRecording = false;
return true; } private void startVideoRecording() {
Log.v(TAG, "startVideoRecording"); if (!mMediaRecorderRecording) {
// Check mMediaRecorder to see whether it is initialized or not.
if (mMediaRecorder == null && initializeVideo() == false ) {
Log.e(TAG, "Initialize video (MediaRecorder) failed."); return;
} try { mMediaRecorder.setOnErrorListener(this);
mMediaRecorder.setOnInfoListener(this);
mMediaRecorder.start();
// Recording is now started } catch (RuntimeException e) {
Log.e(TAG, "Could not start media recorder. ", e); return;
} mMediaRecorderRecording = true;
mRecordingStartTime = SystemClock.uptimeMillis();
updateRecordingIndicator(true);
mRecordingTimeView.setText("");
mRecordingTimeView.setVisibility(View.VISIBLE);
mHandler.sendEmptyMessage(UPDATE_RECORD_TIME);
setScreenTimeoutInfinite();
} }

View 2 Replies View Related

Android :: Video Stream Capture For AR

Feb 24, 2010

I would like to be able to capture the video from an android phone camera, and then process this video. Processing involves adding a layer of AR to the live stream. Is this possible on android? Pretty sure it should be. I have looked at the android site [http://developer.android.com/guide/topics/media/index.html] but this seems to be concerned with video capture and storage. I would like to be able to play with the video pre-storage.

View 1 Replies View Related

Android :: Supports Video Capture Or Not?

Oct 13, 2009

Android 1.6 supports video capture, however, not all phones will support video capture. Is there a way I can tell if the phone I am running on supports video capture or not?

View 1 Replies View Related

Android :: Capture Video Of Alternative App

Nov 19, 2010

One of the alternative app stores is asking for unaltered, unedited capture from the app as a video. Plus I'm also interested in cleaner video than I get by focusing a camcorder on an Android on a table. Who knows how to do that? I think I found some posts that indicate Mark Murphy may have solved this with a tool that goes through DDMS. If so, I'll get that tool and donate.

View 10 Replies View Related

Android :: Capture Video From Screen?

Jun 18, 2010

Is there an app that captures what goes on my screen?

View 3 Replies View Related

Android :: Restart Video Preview After The SurfaceDestroyed()?

Jul 2, 2009

I have created a CapturePreview class and CameraManager class the following way:

CapturePreview:

CODE:...

The video preview works fine this way until the sub-activity starts in the main activity. When sub-activity starts the CaptureView.surfaceDestroyed(SurfaceHolder holder) is called and the video preview stops. Then when the sub-activity closes the CaptureView.surfaceCreated(SurfaceHolder holder) is executed, but the video preview doesn't start.

Does anyone know how to fix the problem in order to successfully restart video preview after surfaceDestroyed(SurfaceHolder holder) is executed?

View 2 Replies View Related

Android :: Capture And Loop Video To Screen?

Aug 9, 2010

I was wondering if anyone knows of a tutorial explaining how to capture the video from the camera on an Android device and then display the video in real time on the screen? I have looked up MediaRecorder, MediaPlayer, Videoview but they all seem concerned with recording audio/video to a file or playing audio/video from a file or a URL. I simply want to be able to take the data from what the camera is seeing and display it on the screen.

View 1 Replies View Related

Android :: Method To Capture Video From OpenGL App?

Sep 16, 2010

Does anyone knows some convinient method to capture video from OpenGL app on Android device? For example can we capture video from a view, opengl view? I just stopped on: 1) We can get frames using glReadPixels. (No video on this step?) 2) MediaRecorder can encode video, but how can we provide it our raw source, if possible? 3) Any working ports of ffmpeg(for example) or other encoding library? There are some tutorials of portng ffmpeg to use withing NDK. So, having raw frames and working port of ffmeg we can create video? Any issues on this step? Anyone managed to port any encoding library successfully?

View 3 Replies View Related

Android :: Capture Frames From Video File?

May 20, 2009

Iīm trying to capture frames from a video file, but I donīt know how to do it. Are there any classes like FrameGrabbingControl (in JMF) for Android? Is it possible with MediaPlayer and MediaRecorder classes?

View 2 Replies View Related

Android :: Video Capture Doesn't Work In 1.5

May 28, 2009

I am trying to capture video since a week but still no luck. can anybody help me to figure out what i am missing in the code below:

final MediaRecorder recorder = new MediaRecorder(); ContentValues values = new ContentValues(3); values.put(MediaStore.MediaColumns.TITLE, "Recorded video"); values.put (MediaStore.MediaColumns.DATE_ADDED, System.currentTimeMillis()); // values.put (MediaStore.MediaColumns.MIME_TYPE, recorder.getMimeContentType());.......

View 5 Replies View Related

Android :: Capture Frame From Video And Save It

Jul 15, 2010

Is it possible to capture a frame from a video in android and save it or use it in any way in the application?

View 1 Replies View Related

Android :: Real Time Video Screen Capture?

Jul 1, 2010

I need to make a video as a DEMO for one application I have developed. I know that there are some experimental applications that use DDMS and achieve a framerate of 5-6 fps. This framerate is completely insufficient for my purposes since the application has smooth animations that i would like to show. Is there anyone that has found a way to do a real time screen capture on android? Should I settle for a capture of the emulator or a real video done with a real camera?

View 2 Replies View Related

Android :: Application That Blanks Screen During Video Capture

Feb 19, 2010

I overheard someone say there was an app that blanked or put a decoy screen on the screen while taking video, does anyone know what this app is called, if it exists?

View 1 Replies View Related

Android :: Phone Application Supports Video Capture?

Oct 12, 2009

How can I determine if the phone my app is running on, supports video capture?

View 2 Replies View Related

Android :: Video Recorder As Alternative To Camera Preview Filter?

May 9, 2009

A number of previous posts imply that attempts to apply bespoke image processing on a Camera preview are hamstrung by a buggy API and will in any event run extremely slowly due to the need to manually decode the preview buffer. Can anyone comment on whether it is possible to use the video recorder as an alternative means of achieving this?

View 2 Replies View Related

Android :: Using DispatchDraw(Canvas) To Obtain Subsection Of Video Preview

Jul 29, 2010

The following is the overriden dispatchDraw in a subclass of SurfaceView. I'm trying to change the parameters of the Surface(getting only a subsection of the video preview.

CODE:......

Why does the above code not alter the dimensions of the SurfaceView at all?

View 1 Replies View Related

Android :: Method To Capture Video To File Or Stream From OpenGL App?

Sep 16, 2010

Does anyone knows some convinient method to capture video to file or stream from OpenGL app on Android device? For example, can we capture video from a view, opengl view?

I just found out the following:
1) We can get frames using glReadPixels. (No video on this step?)
2) MediaRecorder can encode video, but how can we provide it our raw source, if possible?
3) Any working ports of ffmpeg(for example) or other encoding libraries? There are some tutorials of portng ffmpeg to use withing NDK. So, having raw frames and working port of ffmeg we can create video? Any issues on this step? Anyone managed to port any encoding library successfully? What components do I need from ffpmeg?

View 1 Replies View Related

HTC Desire :: 720p Video Capture To Unlocked?

Jul 30, 2010

Official: HTC rolling out Android 2.2 and 720p video capture to unlocked European Desires this weekend -- Engadget. so i have jsut had a look on engadget web site and it saying that froyo 2.2 will be released to users whos desire is not carrier locked. my question is how do u tell if your htc desire is carrier locked i got my htc desire for vodafone and it has no sign of it having any vodafone features. dose any 1 no how to tell if myn is locked or open to this update that is ment to be coming this weekend. Could this be the week i finally get froyo to use on my phone..

View 49 Replies View Related

Samsung EPIC 4G :: Short Video Preview - 4G By Engadget

Jun 29, 2010

Short video preview of the Epic 4G by Engadget. YouTube - Samsung Epic 4G preview

View 1 Replies View Related

HTC Droid Eris :: Preview 2.2 - Free Downloads And Streaming Video

May 22, 2010

Videos - Free video downloads and streaming video - CNET TV

View 2 Replies View Related

HTC Desire :: Video Capture Not Working After Updating To 2.2 Froyo

Aug 15, 2010

after updating (the official update) my HTC Desire to Froyo 2.2 I cannot capture any Video (any resolution). It happens that I press the trackball and the timer (on the upper-right corner) disappears and nothing works anymore (menu, etc...), only the Home button allow me to go back to the home panel. After doing that, the battery die in a few minutes and the phone is very slow: i.e. some video camera service is still up and running and consuming battery.

View 4 Replies View Related

Android :: Android: How To Initialize MediaRecorder Without A Valid Surface For Video Preview

Aug 9, 2009

I am building a camera app, where videos are continuously being captured and saved to the SD card. The videos are short (few minutes), and their length are preset with setMaxDuration().

The whole process works fine, while the main activity is in the foreground. But, when I go to another activity (e.g. settings), the video recording works in the background only until max duration is reached. The file is saved, but a new sequence can not be started
because prepare() fails, apparently because setPreviewDisplay() doesn't like not having a proper surface to attach to.

I tried to use a dummy Surface, a dummy SurfaceHolder, lockCanvas(), and various other tricks, but nothing works. Is there a way to initialize MediaRecorder without a valid surface?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved