Tag Archives: screenshot

How to take screenshots on the Huawei Ascend P6? Tips, Tricks and Tutorials 23 MAY 2014

I’ve had my Huawei Ascend P6 (on a well priced Vodacom contract) for more than just a couple of months now, and I have to say, this definitely was one of my better choices when it came to selecting a follow up phone for my aging Samsung Galaxy Ace towards the end of last year.

huawei-ascend-p6-take-screenshotEssentially the Chinese-made Huawei Ascend P6 can best be described as a well priced, upper tier mid-range Android smartphone. It features a gorgeous full metallic body that is ultra thin and ultra light, and features 1.5 GHz quad core processor supported by the Huawei K3V2 chipset as its internal guts. It is powered by Android Jellybean 4.2.2 and has 2 GB RAM, 8 GB of storage capacity (internal), with microSD card memory expansion of up to 32 GB.

All the generally expected connectivity options are there, and like I said, this gorgeous, generously proportioned smartphone is genuinely a pleasure to use.

Anyway, the point of this quick note to myself is how to take screenshots on the P6 – seeing as I need to generate a presentation based on Touchwork’s newly developed app which obviously could do with some pretty pictures.

As it turns out, the method of taking a screenshot remains a pretty stock affair. Simply place a finger on the down volume rocker and another on the power button. Press and hold simultaneously for about 3 seconds, after which you’ll hear the shutter sound and a preview of the captured screenshot will appear. This quickly disappears, leaving you back in the application sandbox, as if you had never left it in the first place.

The screenshot images are saved in the internal memory, under /Pictures/Screenshots, so use them as you will.

huawei-ascend-p6-android-smartphone-colour-range

Easy as that.

PHP: How to Create a Thumbnail from a Video file on an Ubuntu Linux Apache Webserver Programming 26 NOV 2013

green php elephants - elephpantsThanks to the powerful command line ffmpeg package and PHP’s ability to execute server commands through shell_exec, generating a thumbnail image from a given video file becomes a snap!

First, install the ffmpeg package onto your Ubuntu server with:

sudo apt-get install ffmpeg

Once installed, we can then turn our attention to the PHP script that will be doing the slog work. Essentially it uses ffmpeg to process the video file and create the image for us, meaning that in actual fact, the PHP script has very little to do with the actual donkey work!

function createVideoThumbnails($videopath,$imagepath) {
    $status = false;

    // where ffmpeg is located, such as /usr/sbin/ffmpeg
    $ffmpeg = '/usr/bin/ffmpeg';

    // the input video file
    $video = $videopath;

    if (file_exists($video)) {

        // where you'll save the image
        $image = $imagepath;

        // default time to get the image
        $second = 1;

        // get the duration and a random place within the video file
        $cmd = "$ffmpeg -i \"$video\" 2>&1";
        if (preg_match('/Duration: ((\d+):(\d+):(\d+))/s', `$cmd`, $time)) {
            $total = ($time[2] * 3600) + ($time[3] * 60) + $time[4];
            $second = rand(1, ($total - 1));
        }

        // get the screenshot
        $cmd = "$ffmpeg -i \"$video\" -deinterlace -an -ss $second -t 00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg \"$image\" 2>&1";
        $return = `$cmd`;

        if (file_exists($image)) {
            $status = true;
        } else {
            $status = false;
        }
    } else {
        $status = false;
    }
    return $status;
}

We make two calls to the ffmpeg function, the first to work out the duration of the video which we then use to make a random call as to where to take the thumbnail from in terms of starting point. The second call actually generates the thumbnail image, using the fully qualified video and image paths that we passed to the function right at the start.

So pretty simple stuff in other words. Note that if you want to specify the size of the generated screenshot, you can make use of the -s parameter. For example:

$cmd = "$ffmpeg -i \"$video\" -deinterlace -an -ss $second -t 00:00:01 -r 1 -y -vcodec mjpeg -s 180x135 -f mjpeg \"$image\" 2>&1";

Nifty.

How to Take a Screenshot on a Samsung Galaxy Ace GT-S5830 CodeUnit 23 JAN 2012

Usually on an Android smartphone you need to root and install a special app in order to be able to take a screenshot or screen capture if you will. Not so on a Samsung Galaxy Ace GT-S5830 running Android 2.2.1 Froyo, as pleasingly it comes with a built in screen capture functionality!

To take a screenshot of your home screen or any other screen for that matter is actually pretty simple. All you need to do is press and hold the physical Back button on the phone, usually the button to the right of the big main button in the centre, i.e. the Home button, and while you are doing that, press the Home button just once. You will hear the camera snapping sound and if you release the buttons and browse through to your Gallery, you’ll see the screenshots under the ScreenCapture menu item.

Handy if you like pictures to go along with your app reviews or phone tutorials!

Just a note though, but sometimes applications pick up the Back button hold as a Back button press, meaning that the application keeps exiting or going back, making it impossible to take a screen capture of the screen that you need – to get around this, simply exit completely to the home screen, press and hold the back button, and then reopen the application whilst holding the back button down and browse through to the required screen. Then it is a simple matter of tapping the Home button to grab the shot.

[subvertedgallery link=”file” columns=”4″ orderby=”title”]

Nifty!

Screenshot Saturday: Mezzo DSA (Episode 1) Anime 01 JAN 2011

Mikura, Kurokawa, and Harada are the 3 members of the Danger Service Agency (DSA). Mikura is the brawn of the group, Harada is the brains, and Kurokawa is just a bitter ex-cop who likes to think he’s in charge. They’ll take on any job as long as it involves lots of danger and, of course, money.

Not that much of it ever seems to come their way of course.

Mikura taking aim with her Colt...

Mikura taking aim with her Colt…

Episode 1, Shell of Love kicks off with some explosive action, with Mikura in the thick of things battling some big masked, purple dudes. The big guys are tough, able to pound holes into concrete and would most certainly take Mikura head off in order to get what they both want.

Continue reading

Images of Iron Man Episode 1 Anime 30 OCT 2010

As I mentioned previously in these pages, the Marvel Anime team-up between Marvel Animation and anime powerhouse Madhouse is now properly under way, with the release of what looks to be an exciting Japanese take on Iron Man, current media poster boy for Marvel.

The first episode does little more than introduce us to all the main characters, lay down the reason for Tony finding himself in the land of the rising sun in the first place, and then proceeds to tease us with the introduction of a rather nasty looking villain: Scopio!

(Not to mention the mutterings around a certain sinister-sounding Zodiac group).

The following a couple of screenshots from episode 1, just to get you more in the mood for this explosive new title! ;)

[subvertedgallery link=”file” columns=”4″]

Images of Highschool of the Dead Episode 12 Anime 27 OCT 2010

Fan service drenched panties and tits with zombies anime series, Highschool of the Dead drew to a close with its final episode ringing in at the number 12 mark. In return, we got a return to some great zombie action, loads of bullets, dynamite and sword slashes – complemented by the usual uber stylish CG action shots.

And all this thanks to a single high altitude nuke detonating and wiping out all electronics.

Not a good thing when you’re locked behind gates of the only fortress capable of stemming the unrelenting tide of the undead…

Car needs to be fixed, you need to hold down the fort

Anyway, here’s a boatload of images from episode 12 in order to wet your appetite just in case you haven’t picked it up yet!

[subvertedgallery link=”file”]

highschool-of-the-dead-screenshot-1

Screenshot Saturday: Trigun (Episode 10) Anime 29 MAY 2010

Screenshot Saturday time once again, and this time we dig out the history books, going all the way back to June 1998 to pick out on the classic action comedy sci-fi western, Trigun, featuring everyone’s favourite rogue gunman: Vash the Stampede!

Back to back, this has got to be the stupidest way to fight ever invented!

Episode 10, entitled “Quick Draw”, sees Vash and the fairly new character Nicholas D. Wolfwood find themselves drawn into a terrible quick draw event in order to free the current town they were passing through. And although Vash is pretty successful at stopping the various contestants from hurting one another thanks to some ingenious and sneaky action, there is no stopping the fact that soon Vash and Wolfwood will find themselves in the thick of things!

Point in case, one of Vash’s first deadly opponents is a man who appear to have the ability to shoot behind his back!

However, even when taken by surprise, Vash the Stampede’s legendary cat-like reflexes are enough to see him bound out the way and return fire, revealing his opponent’s deadly secret!

(Talk about a cheap shot!)

Oi, is a man's elbow meant to be able to bend back that way?

Vash demonstrating his cat-like reflexes and finesse

Now if that isn't cheating, then I don't know what is! :P

Related Link: http://en.wikipedia.org/wiki/Trigun

Screenshot Saturday: Mazinkaiser (Episode 7) Anime 08 MAY 2010

The brilliantly retro Go Nagai 2001 to 2002 OVA classic, Mazinkaiser, came to an end with the fiery action-packed episode seven, entitled “A Decisive Battle!! Flaming Hell Castle!” Hell, with a title like that, how could anyone go wrong? ;)

A reinvigorated Kouji Kabuto and his makeshift pilot stick prepare for the final battle!

Having arisen from the fiery depths of an active Mount Fuji thanks to the assistance of Kaiser Scrander, the wings of Mazinkaiser, Kouji Kabuto decides to avenge the destroyed Photon Power Labratory and his lost friends by striking directly at the heart of Dr Hell’s operations – Hell Island! While the Great Mazinger piloted by Tetsuya keeps the attaching mechanical beasts at bay, Kouji in his Mazinkaiser comes face to face with the hellish Baron Ashura, now integrated into the body of a gigantic, fearsome mechanical beast. Multi-armed and standing three times as tall as Mazinkaiser, Baron Ashura inflicts punishing damage on Mazinkaiser with his huge sword, only to be eventually be beaten back after a revelation frees Mazinkaiser’s ultimate weapon – the Final Blade!

And as you can see from the images below, the final battle really is final. Loads of action and goofy drama, dark atmosphere, giant robots and exploding islands – seriously, what more could a classic anime mecha fan ask for?

As you can see, Mazinkaiser doesn't quite measure up to Baron Ashura's stature - thankfully the oversized sword helps even things up a bit!

The Final Blade, Mazinkaiser's new ultimate weapon looks to be pretty damn good at making pretty sparks and getting rid of the bad guys all at once

Related Link: http://en.wikipedia.org/wiki/Mazinkaiser

Screenshot Saturday: Dante’s Inferno: An Animated Epic Animation 01 MAY 2010

Just in case you were wondering, Dante’s Inferno: An Animated Epic is a direct to DVD animated movie spin-off of EA Games’ Dante Inferno 2010 video game release. Now you know.

Demonic hands can be so touchy-feely at times...

This week’s Screenshot Saturday takes a look at the birth of the Hell-crusading Dante who charges in after the shadow form Lucifer stole Beatrice’s soul and whisked it away with him through the Gates of Hell.

Unable to break through Hell’s Gates after they closed right before him, an anguished Dante falls to his knees in despair, but this state does not last long as terrifying demonic hands break free from the ground behind him and snatch him up, binding him with blood red ribbon which then gets sewn into his flesh. The ribbon contains endless moving montages of his transgressions committed during his time out on the Crusades and also acts as his eternal source of power as the constant reminder of what he has done and how he is truly the reason behind Beatrice’s awful fate.

However, with the enigmatic poet Virgil at his side, Dante finds renewed strength in his quest to save his beloved and manages to break his way into Hell’s inferno – though this proves to only be the start of his long, torturous and bloody journey that will see him go on and face the very might of Lucifer himself!

The demonic blood red ribbon... that for some or other reason resembles a cross? I think the reason could only be that sewing by touch alone turns out to be a rather tricky affair - or at least far more tricky than these demon spawned hands reckoned.

Needles, flesh and demonic hands. Never a good combination if you ask me!

Related Link: http://en.wikipedia.org/wiki/Dante’s_Inferno:_An_Animated_Epic