Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can i save one frame each time from a video stream to the flash card on my device?
    primarykey
    data
    text
    <p>Im using this code to open the Camera video mode on my device:</p> <pre><code>package com.example.camera_test; import java.io.ByteArrayOutputStream; import android.os.Build; import android.os.Bundle; import android.provider.MediaStore.Video; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.hardware.Camera; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; public class MainActivity extends Activity { private static final int CAMERA_PIC_REQUEST = 1337; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button button = (Button) findViewById(R.id.button1); button.setOnClickListener(new OnClickListener() { @SuppressLint("NewApi") @Override public void onClick(View arg0) { // TODO Auto-generated method stub Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE ); Intent videoIntent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); startActivityForResult( videoIntent,0); </code></pre> <p>And it's working good when clicking a button it will open the camera on a video. Now I want to get a video stream and not to record/save the video to the device disk but to get each time in real time one frame from the video save this frame to the flash memory card do something with the frame delete it after did something with it then the next frame and so on...</p> <p>So in the end when im moving my device around left right up down everywhere around it will all the time save one frame from the video to the flash memory do something and delete it and so on.</p> <p>Frame I mean one image wich is a frame. To extract the current frame to the flash memory do something and delete this frame and the next one.</p> <p>How can I start thinking and doing it ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload