Quack-Ware.com Free Software & Tutorials

28Dec/110

GIFDroid – The Free Video to GIF Converter for Android

market.android.com GIFDroid is a free video to GIF converter. Record a video or select a video from the gallery and easily choose a video interval and individual frames. Features: - Convert videos on the fly or select previously created videos. - Choose specific video intervals - Adjust preferences such as frames per second, frame delay, and GIF dimensions. - Choose specific frames to create a perfect GIF - Built in sharing features to show your GIF to everyone! Created by QuackWare www.Quack-Ware.com

24Dec/111

Interview Questions #3 – Reversing a String – C Sharp C# Visual Studio 2010

In this tutorial I show you how to solve common interview questions. In this specific video I go over the simple interview question of reversing a string and talk about what might happen if the interviewer asks a more difficult problem afterwards. WEBSITE: www.Quack-Ware.com

20Dec/110

Interview Questions #2 – Check if a Number is Prime – C Sharp C# Visual Studio 2010

In this tutorial I show you how to solve common interview questions. In this specific video I go over the problem of checking whether a number is prime or not. I also talk about the importance of efficiency in interview questions. WEBSITE: www.Quack-Ware.com

19Dec/110

Interview Questions #1 – Clock Angle Problem – C Sharp C# Visual Studio 2010

In this tutorial I show you how to solve common interview questions. In this specific video we go over the "Clock Angle Problem" where you are given a time and you have the find the angle in between the two hands. WEBSITE: www.Quack-Ware.com

11Oct/117

Include FFMpeg in Android and grab a frame from a 3gp video.

Thought I would write about the recent pain I experienced in trying to get FFMpeg into Android and subsequently grab a frame from a video. Hopefully this tutorial will help out a bunch of people, so anyway here we go.

 

The first thing you are going to want to get is JavaCV (Website here) and follow the EXACT instructions under "Quick Start for OpenCV"

 

If you followed the instructions you should have 2 jar files in your build path along with a large amount of .so files in your libs/armeabi folder. Now the class you are going to be looking at is called "FFMpegFrameGrabber" (Code here). Here is some sample code to give you a general idea of how to grab a frame from your video.

//Path is the path to your .3gp or whatever file on your sdcard
FrameGrabber f = new FFMpegFrameGrabber(path);
f.start();
IplImage _image = f.grab();
//We need to convert from 3 channels to 4 channels so that we can convert
//from IplImage to Bitmap
IplImage image = IplImage.create(return_image.width() ,return_image.height(),IPL_DEPTH_8U,4);
//source, dest, code
cvCvtColor(_image,image,CV_BGR2RGBA);
int width = image.width();
int height = image.height();
Bitmap b = Bitmap.createBitmap(width,height, Config.ARGB_8888);
//Make sure you use getByteBuffer()!
b.copyPixelsFromBuffer(image.getByteBuffer());
//MAKE SURE YOU DO NOT CALL stop() BEFORE YOU CREATE A BITMAP FROM IMAGE
f.stop();

You might see an error about cvCvtColor, in which case you need to add the following in your import statements:

import static com.googlecode.javacv.cpp.opencv_imgproc.*;

Now you can display your new bitmap in whichever way you want.

Tagged as: , , 7 Comments
16Aug/113

Inheritance, Abstract Classes, and Interfaces – C# C Sharp Visual Studio 2010

In this tutorial I show you how to use inheritance, abstract classes, and interfaces and talk about how they help your programming style. WEBSITE: www.Quack-Ware.com FREE CODE SNIPPETS http

14Aug/113

VideoToGif – Android App From Scratch – #8 – Working with MediaMetaDataRetriever

Hello, In this tutorial we look into the MediaMetaDataRetriever class in android 10 sdk. We also work on figuring out what we need to create a GIF and run into a few problems with the video format.

1Aug/110

VideoToGif – Android App From Scratch – #7 – Preferences & Preference Activity

In this part of the series I create a preference activity and a couple of different preferences that we are going to need later. I also talk about the changes I made to JMF. Source code available here: code.google.com

30Jul/110

VideoToGif – Android App From Scratch – #6 – Creating Options Menu

In this part of the series I begin creating an options menu, grab a few good looking icons and create the .xml file so that I can have a settings activity to set many needed settings for my application.

30Jul/110

Using Enums – C# C Sharp Visual Studio 2010

In this tutorial I show you how to use enums and also a few tricks in using them. WEBSITE: www.Quack-Ware.com FREE CODE SNIPPETS http