I'm new to android. What I need is to play 2 videos at the same time exactly on top of each other. By applying a bitmap mask on the top video the bottom video will be revealed through the mask. I only found the answer of how to overlay an image with a bitmap mask. Any help would be appreciated. Please give a complete code if possible. Thank you
Related
I am working on image processing i have achieved color effect using ColorMatrix but i cant understand how to achieved one effect that is not on whole image but only around the image like i have attached image. Actually i m working on image editor app like : BeFunkey
Here original image and processed image i have attached. You can see in effect on second image that is only around the image black shadow. Please can anybody tell me how to do this. Thank you in advance.
You need to set RGB colors of you bitmaps. Have a look over android-image-filter
This demo will fulfill your requirements.
I want to make a small part of the image glow whenever the activity is loaded. Do I need to take the exact coordinates of the image part?
I recommend using a GIF. It can be loaded as an image and won't require any changes in your code. A smallish tutorial can be found in this Youtube video.
i am using SurfaceView for play video and i want to get image from running video, i have tried with getDrawingCache() but i am getting blank image or Black screen but when i draw image of any other layout which dont have video then this is working fine,
so please anybody can solve this issue that How to get bitmap images from video or surfaceView. Thanks in advance please answer my question if you know.
I have used this code but not getting result.
mVideo.setDrawingCacheEnabled(true);
mVideo.buildDrawingCache();
Bitmap b = mVideo.getDrawingCache();
This won't work because the video content is not "exposed" to the normal view layers.
If you are using API Level >= 10 you can use MediaMetadataRetriever getFrameAtTime. It's described here.
Even this may not return the exact frame as it is fairly hardware dependent.
The most sure way to do this is to use something like FFMPEG to access the stream yourself.
It can be easily view the doted rectangle over the video, so, please suggest how to get rid of these issue.. thank you for your concern
Is it possible to extract a Video Thumbnail using other frames than the first frame? Usually the first frame of a Video File is a black screen so I'm thinking its better to use other frame number or a frame anywhere in the middle of a video file that is not a black screen.
Take a look at ThumbnailUtils at this page:
http://developer.android.com/reference/android/media/ThumbnailUtils.html
That should help.