Android :: Obtaining Video Frames For Processing
Dec 31, 2009
I am trying to decode and obtain all frames in a video stream, each of which would be processed by a native signal processing engine and re-encoded back to a MPEG4/MP4 file. I noticed that there was a getFrameAt() function in earlier versions of SDK but its not available in v 1.6 on which I am working. As I am fairly new to Android, I would like to know from more experienced people around here as to how I can extract video frames into a buffer for processing.
View 2 Replies
Jan 26, 2010
Possible Duplicate:
Getting frames from Video Image in Android
I wanted to know if it is possible to extract frames from a running Video in Android? I need to extract frames at regular intervals and send them for further processing.
Would someone be able to find an answer for me?
View 1 Replies
View Related
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
Apr 10, 2009
So with Cupcake looming, does anyone know what kinda Frames per second the video recorder will have?
View 2 Replies
View Related
May 19, 2010
I want to merge a sound file and a video file (remove the sound from the video file and replace it with my own sound) and this should happen on the phone.I have done this through ffmpeg, but I can't do that now.Any help appreciated,
View 1 Replies
View Related
Jun 15, 2010
HTC Incredible came pre-loaded with Photo Frames Widget.It shows a full page frame with your photo albums and you can swish between photos while viewing your home page. While using ADW Launcher, I no longer get that as a choice to install any one know of another app that's similar? Or a way to get the HTC apps used on ADW Launcher?
View 1 Replies
View Related
Jul 22, 2010
Trying to play animated GIFs on Android here
(see http://stackoverflow.com/questions/809878/android-how-do-a-display-a-large-animated-gif-given-a-url).
It's anything but smooth. On Android 1.5, the Movie.decodeStream()/decodeFile() returns a null. On Android 1.6, with the GIF files I've got, it returns a zero-sized movie with zero duration - clearly not adequate.
The referenced question suggests splitting the GIF into frames (and then rendering these). How exactly do i accomplish that, please? Tried opening one of my GIFs with GNU giflib in Windows. It choked on the very first frame. The GIF itself is all right, all browsers (save Android's) display and animate it fine. Worked with giflib 4.1.4. Not sure what was broken in 4.1.6, but there you go. Next step: build giflib for Android via NDK, somehow integrate with the Bitmap class. giflib it is. In conjuction with Bitmap.copyPixelsFromBuffer. The colors are all askew right now, but the basic design seems workable.
View 1 Replies
View Related
Nov 11, 2010
Is there an app that lets you view your frames per second in real time in video games and emulators?
View 2 Replies
View Related
Dec 30, 2013
i know how to create bootanimaton.zip file but i want to know how do you create animation frames for that zip file
View 3 Replies
View Related
Aug 25, 2010
I've been trying to make a simple live wallpaper out of a boot animation. So basically i have about 50 .pngs in my drawable folder. I'm able to set the animation to about 10-20 frames and it works great. But once i set it to about 30 frames...I get an OutOfMemory Error. I was hoping maybe someone could take a look at my code and maybe give an example of how I could achieve more frames? That would help so much i've been looking at this for hours > <
Here's my code:..................
And here's a logcat if that'll help at all:
CODE:...............
View 4 Replies
View Related
Feb 3, 2009
I would like to know how to read in an image file which has multiple frames in it. Something like an animated gif file. I would like to perform frame by frame animation with a file of this type. I don't want to have each frame as drawables in the resource directory. Can anyone throw some light on how to perform the above mentioned tasks.
P.S - I have already checked the example in the API demos where an animated gif is read as an object of type Movie. I don't want to read it in as a movie file.
View 3 Replies
View Related
Feb 1, 2010
I would like to know if it is possible to remove one of the frames I added using addFrame in Android?
View 1 Replies
View Related
Sep 7, 2010
I want to display animated gifs in my aplication.
As I found out the hard way Android doesn't support animated gifs natively.
However it can display animations using AnimationDrawable:
http://developer.android.com/guide/topics/graphics/2d-graphics.html#frame-animation
The example uses animation saved as frames in application resources but what I need is to display animated gif directly.
My plan is to break animated gif to frames and add each frame as drawable to AnimationDrawable.
Does anyone know how to extract frames from animated gif and convert each of them into Drawable?
View 2 Replies
View Related
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
Dec 5, 2010
I have built a face detection app where I get the frames from onPreviewFrame, do the face detection and then draw a circle on a canvas above my surfaceView. The problem is frames are automatically displayed using the surfaceview thread when Camera.StartPreview() is started. This is obviously necessary for the PreviewCallback to kick in. As the processing, face detection and drawing, is done in a separate thread(I am assuming here), there is a 2 second delay between the frame being displayed and the result of that frame being processed and drawn on the canvas.
What I want to do is stop the camera preview displaying the frames and display them myself after processing. I believe this has three benefits:
The delay with disappear.I can draw straight to the bitmap instead of on a canvas which is useless as you can not undo what you have done.It will keep memory consumption low by not having two threads using the same image.
I've read that it is possible to display frames from the previewCallback, how to stop the frames being displayed automatically?
View 2 Replies
View Related
Jan 14, 2012
For 2D or 3D applications (like GTA III for instance), I would like to be able to tell what FPS the game is running at pretty much for benchmarking purposes.
A game called osu!droid can show FPS in the bottom right corner, but this option can be enabled or disabled via it's options:
I would figure Android SDK for Windows to have some sort of way to see this, but I couldn't find anything. If there is a way to display FPS via the SDK (or maybe an app).
View 8 Replies
View Related
Sep 2, 2009
I was hoping someone could give me instructions to obtain the *exact *source code for the current SDK. What I have so far is as discussed here; http://androidforums.com/android-developers/1045-source-code-android- By using commands such as; repo init -u git://android . git . kernel .org/platform/manifest.git -b android-sdk-1.5_r3 jar cvf ../android-src.jar -C core/java . etc. my issue is that the source is still inconsistent, some extra methods are available and some are not. For example, I want to make a progress bar with two sliders (To select a range) but the version of Progress bar I have; http:// android .git.kernel.org/?=platform/frameworks /base.git;a=blob ;.http://android .git.kernel .org/?p=platform/ frameworks /base.git;a=blob;> I cannot mimic (as an initial implementation), despite using the same package and extending View I do not have access to 'mMinWidth' for example. In addition the progress bar uses methods of the class StateList Drawable which are not available in this SDK (e.g. getStateSet(int i)). It's obvious that there's an inconsistency between the source I have and that which was compiled into the android SDK but I don't know why given my GIT repo commands. Can someone link to the version of ProgressBar which was shipped with android-sdk-1.5_r3? Has anyone managed to get the branch which maps directly to this release? This might well be due my inexperience with Git, please let me know if anyone has this set up correctly and I will try again. I seem, in all honesty, to have the head revision still.
View 6 Replies
View Related
Nov 3, 2010
Object getThisObjName= new Object();
I'd like to get the name of an object reference.
Is this possible via reflection in Android?
View 10 Replies
View Related
Jul 6, 2010
I'm trying to develop a little game, with 2D Graphics. I want my "gaming board" to be at a specific position on my screen, so that I can display in-game informations above and below the box. But since there is beginning to be a lot of Android phones out there, I was thinking about getting "dynamic" values so that I can adapt my font size to every device.
My game is not in full screen (but it could be, it's no big deal), but in a window with no title bar.
I'm using an extension of the default SurfaceView class, implementing SurfaceHolder.Callback. I tried writing the following method :
CODE:................
But the values returned are zeroes.
(even if it means changing display strategy) ?
View 1 Replies
View Related
Mar 26, 2010
I want to obtain the index of the selected item in a spinner.
I am aware of the method getSelectedItem() which returns the item selected (which might be a String). But i want the index of the selected item.
Something equivalent to the setSelection(index) to set the selected item.
Of course I can get the selected item and compare it against the array of items to obtain the index, but I hope there is a better way of doing this.
View 2 Replies
View Related
May 4, 2009
How can I get/calculate current process CPU usage? ActivityManager provides method that returns a list of all active processes (list of RunningAppProcessInfo), but that class doesn't provide any CPU usage information.
View 10 Replies
View Related
May 18, 2009
Is there any way to programmatically retrieve data that reports on application usage as shown in the Spare Parts application? I know what calls need to be made, but it seems that they all use internal APIs...is this true?
View 2 Replies
View Related
May 14, 2009
Is there a method of obtaining the field of view for a phones camera (horizontal and vertical)?
View 2 Replies
View Related
Nov 24, 2010
I can't find a tutorial online that gives me the step by step process on how to generate a suitable key using the keytool in the JDK.
This: http://developer.android.com/guide/publishing/app-signing.html
Talks about it and gives commands, but it doesn't actually say where and in what folder to key in the commands. I am sure I am missing something easy here, but could anyone guide me to where I need to start with this?
View 1 Replies
View Related
May 24, 2010
I have following code:
CODE:...........
Code is working but here goes my problem: when I call it from main activity in this way:
CODE:........
Then i can see 10 times result of 'doing sth else!!!' and when loop is over i can see then result from activity. So sensor activity waits for some reason and then when main activity has nothing to do, sensors are doing their job.
of course I have well implemented: onActivityResult(int requestCode, int resultCode, Intent intent)
I want to read sensord data directly, not using listeners, is it possible?
View 1 Replies
View Related
Aug 18, 2010
Now that SENSOR_ORIENTATION is deprecated, what's the best practice for obtaining compass reading? The old way was so simple.
View 1 Replies
View Related
Jul 10, 2012
I had to factory reset my router and now when i try to connect my phone to the wifi all i get is "Obtaining IP address".
View 9 Replies
View Related
Apr 10, 2009
I want to develop an app that lets one intercept raw audio data sent for playback (possibly by a different app), and apply audio enhancements over this raw data.Does Cupcake allow such filtering of audio data? If so, which API should I use? I understand this may not be possible at an application level for security reasons.I'm trying to see if this is possible with native code linking to public or private API of Android.
View 3 Replies
View Related
Dec 15, 2009
I want to know that android has a touchscreen requirement about hardware and software.And how does touch gesture processing where, for example, in driver layer or framework or application,
View 4 Replies
View Related
Apr 23, 2010
I'm trying to write an XML parser that takes an RSS feed & fetches the image urls shown in the url attribute of the <media:thumbnail> tag. This is all being done via android.Util.Xml, & is an adaptation of the code shown here. An example RSS feed that I'm trying to use is the BBC News RSS feed. However, media is an additional namespace & (probably) as a result my parser isn't working as it should. A version of my parse method is below. Is there any (no doubt simple) way to get my list of image URLs working?
..................
View 2 Replies
View Related