How to retrieve a Bitmap/image from videoview - android

I'm trying to get a snapshot of the current position of playback of a video, but I couldn't find an appropriate way to do that. Is there a method I can use?
Any help would be appreciated.
Thanks.

VideoView extends SurfaceView, so it seems there is no easy way to do it. Take a look at this post: http://groups.google.com/group/android-platform/browse_thread/thread/c4720072d659f4f0/9b207dc411c5e800?lnk=raot
You may need to read the movie raw file, implement your own drawing mechanism, and access directly the file instead of the Canvas for the screenshot.

Related

How to display part of video use TextureView?

My video datasource is 1920*1080, and my textureView is 622px * 540px. and I only want to display part of the video in the TextureView. How to do this? please help me , thanks.
I have solved it, i want it. https://github.com/dmytrodanylyk/video-crop/blob/master/library/src/com/dd/crop/TextureVideoView.java

Vuforia: Manipulate Current Image Before Showing it in GLSurfaceView

I would like to do a vuforia android application including some image processing operations.
I can do what I want by showing processed current image in ImageView. But it is too slow. I have tried to resize current image but it is not good like showing image in GLSurfaceView.
So, I thought that if I do manipulation on current image then show it in GLSurfaceView, it will be faster.
I wonder that if it is possible. If so, how can I do this? Could someone help me about this problem? Thanks in advance.

Add to Camera preview a frame showing position in Android

I need to add to user interface in Android application using Camera API a frame showing ID card position with specific dimension on the screen, when the user is taking a picture.
like this:
Any suggestion?
Thank you.
You will have to make your own camera and process each frame to find and highlight edges.
It's not an easy task :)
https://www.tensorflow.org/ or OpenCV might be of interest to you.
I think you cant use android API (Android.Camera) for doing that. You can use the OpenCV to do anything in your application.

Android RenderScript to blur video in VideoView

I know that I can use RenderScript on Android to blur images, but does anybody know if I can apply the same to video views so that my complete video is gaussian blurred?
VideoView, which extends SurfaceView, does not utilize the drawing cache due to being hardware accelerated. This means you won't be able to get stills. I was forced to scrap the design I had using the paused video still.
Check out: VideoView getDrawingCache is returning black
Edit: As I look into this more, there might be a way through https://github.com/google/grafika, but I haven't seen anyone verify it as a performant workaround.
You should use a thumbnail of the video in front of it. You can then, blur the image using this lib: https://github.com/jrvansuita/GaussianBlur

Android full screen animation, what's the best way?

Wanted to ask what's the best way to play a full-screen animation on android, say a few hundred frames?
I think it too short for putting it into a movie and messing with videoview. So I guess maybe just rendering each frame as a separate PNG file and having an imageView change its picture by a timer, what do you think?
Thanks!
I think you can use 30 frames/second will be efficient and very useful to you

Categories

Resources